Difference between revisions of "Template:Infobox Counts"

From Nookipedia, the Animal Crossing wiki
m (variables don't allow overriding from template parameters apparently)
(Switching to CSS colour class)
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<!-- defaulting to terrible colors so user is forced to change them -->
+
{{Infobox 2.0
 +
| colorclass    = {{#switch: {{{type|}}}| Bugs = color-bug | Fish = color-fish | Sea Creatures = color-seacreature | Fossils = color-fossil | default = 0 0}}
 +
| title          = {{#switch: {{{type|}}}| Bugs = {{{title|Bugs}}} | Fish = {{{title|Fish}}} | Sea Creatures = {{{title|Sea creatures}}} | Fossils = {{{title|Fossils}}} | #default = {{SUBPAGENAME}} }}
 +
| primarycolor  = {{#switch: {{{type|}}}| Bugs = 78 76 | Fish = 200 100 | Sea Creatures = 215 100 | Fossils = 43 74 | #default = 0 0}}
 +
| image          = {{{image|[[File:Nia.png]]}}}
 +
| caption        = {{{caption|}}}
 +
| widelabel      = Series total count:
 +
| widedata      = [[:Category:{{#switch: {{{type|}}}| Bugs = Bugs | Fish = Fish | Sea Creatures = Sea creatures | Fossils = Fossils | #default = {{{title|{{SUBPAGENAME}}}}}}}|{{{total|Unknown}}}]] {{#switch: {{{type|}}}| Bugs = bugs | Fish = fish | Sea Creatures = sea creatures | Shells = shells | Fossils = fossils | #default = }}
  
{| style="background: #{{{background_color|FF0000}}}; margin-left: 10px; margin-bottom: 10px; {{roundy|15px}}; border: 3px solid #{{{accent_color|FF11FF}}}; width: 25%; padding: 2px; float: right; text-align:center;"
+
| group          = Count by game
|-
+
| labelspan      = wide
| colspan="2" style="padding:5px 0 4px 0;"| <big><big>'''{{{title}}} in the {{SER|nolink}}'''</big></big>
+
| label          = {{DnM}}
|-
+
| data          = {{#if:{{{DnM}}}|{{{DnM|}}}|}}
| style="background: #fff; {{roundy|10px}}; padding:8px;" colspan="2" | [[File:{{{image}}}|325px]]
+
| label2        = {{DnM+}}
|-
+
| data2          = {{#if:{{{DnM+}}}|{{{DnM+|}}}|}}
|
+
| label3        = {{PG}}
|-
+
| data3          = {{#if:{{{AC}}}|{{{AC|}}}|}}
! style="cell-spacing: 10px; background: #{{{accent_color|FF11FF}}}; {{roundyleft|10px}}; padding:2px 3px 2px 0;" align="right" | Series total count:
+
| label4        = {{DnMe+}}
| style="background:#fff; {{roundyright|10px}};" | [[:Category:{{{title}}}|{{{total}}}]]
+
| data4          = {{#if:{{{DnMe+}}}|{{{DnMe+|}}}|}}
|-
+
| label5        = {{iQue}}
|
+
| data5          = {{#if:{{{iQue}}}|{{{iQue|}}}|}}
|-
+
| label6        = [[First generation]]
! style="{{roundytl|10px}}; background: #{{{accent_color|FF11FF}}}; padding:2px 0 0 0;" | Game
+
| data6          = {{#if:{{{gen1}}}|{{{gen1|}}}|}}
! style="{{roundytr|10px}}; background: #{{{accent_color|FF11FF}}}; padding:2px 0 0 0;" | Count
+
| label7        = {{WW|short}}
|-
+
| data7          = {{#if:{{{WW}}}|{{{WW|}}}|}}
| style="background:#fff;" | {{DnM}}
+
| label8        = {{CF|short}}
| style="background:#fff;" | {{{DnM_count}}}
+
| data8          = {{#if:{{{CF}}}|{{{CF|}}}|}}
|-
+
| label9        = {{NL|short}}
| style="background:#fff; text-align:center;" | {{DnM+}}
+
| data9          = {{#if:{{{NL|}}}|{{{NL|}}}|}}
| style="background:#fff;" | {{{DnM_plus_count}}}
+
| label10        = {{NH|short}}
|-
+
| data10        = {{#if:{{{NH}}}|{{{NH|}}}|}}
| style="background:#fff; text-align:center;" | {{PG}}
+
}}<noinclude>{{Documentation}}[[Category:Infobox templates]]</noinclude>
| style="background:#fff;" | {{{ACGC_count}}}
 
|-
 
| style="background:#fff; text-align:center;" | {{DnMe+}}
 
| style="background:#fff;" | {{{DnMe_plus_count}}}
 
|-
 
| style="background:#fff; text-align:center;" | {{WW}}
 
| style="background:#fff;" | {{{ACWW_count}}}
 
|-
 
| style="background:#fff; text-align:center;" | {{CF}}
 
| style="background:#fff;" | {{{ACCF_count}}}
 
|-
 
| style="background:#fff; text-align:center;" | {{NL}}
 
| style="background:#fff;" | {{{ACNL_count}}}
 
|-
 
| style="background:#fff; text-align:center; {{roundybl|10px}};" | {{NH}}
 
| style="background:#fff; text-align:center; {{roundybr|10px}}" | {{{ACNH_count}}}
 
|}<noinclude>
 
<pre>
 
All parameters are required
 
 
 
See Example Infobox for count parameters
 
 
 
{{Infobox Counts
 
|title = (header title, also links to category)
 
|background_color = (background color, red in the example)
 
|accent_color|FF11FF = (color behind headers, pink in the example)
 
|image = (do not include "File:")
 
|total = (total count across all games)
 
...
 
}}</pre>
 
[[Category:Infobox templates]]</noinclude>
 

Latest revision as of 03:58, May 18, 2024

Nia.png
Series total count:
Unknown
Count by game

Template documentation (view)


{{Infobox Counts
 | type    = 
 | image   = 
 | caption = 
 | total   = 
 | DnM     = 
 | DnM+    =
 | AC      = 
 | DnMe+   = 
 | iQue    =
 | WW      = 
 | CF      = 
 | NL      = 
 | NH      = 
}}