Difference between revisions of "Template:Infobox Counts"

From Nookipedia, the Animal Crossing wiki
m (Fix issue with title parameter not expanding correctly)
m (variables don't allow overriding from template parameters apparently)
Line 1: Line 1:
{{#vardefine:background_color|FF0000}} <!-- defaulting to terrible colors so user is forced to change them -->
+
<!-- defaulting to terrible colors so user is forced to change them -->
{{#vardefine:accent_color|FF11FF}}
 
  
 
+
{| 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;"
{| style="background: #{{#var:background_color}}; margin-left: 10px; margin-bottom: 10px; {{roundy|15px}}; border: 3px solid #{{#var:accent_color}}; width: 25%; padding: 2px; float: right; text-align:center;"
 
 
|-
 
|-
 
| colspan="2" style="padding:5px 0 4px 0;"| <big><big>'''{{{title}}} in the {{SER|nolink}}'''</big></big>
 
| colspan="2" style="padding:5px 0 4px 0;"| <big><big>'''{{{title}}} in the {{SER|nolink}}'''</big></big>
Line 11: Line 9:
 
|
 
|
 
|-
 
|-
! style="cell-spacing: 10px; background: #{{#var:accent_color}}; {{roundyleft|10px}}; padding:2px 3px 2px 0;" align="right" | Series total count:
+
! style="cell-spacing: 10px; background: #{{{accent_color|FF11FF}}}; {{roundyleft|10px}}; padding:2px 3px 2px 0;" align="right" | Series total count:
 
| style="background:#fff; {{roundyright|10px}};" | [[:Category:{{{title}}}|{{{total}}}]]
 
| style="background:#fff; {{roundyright|10px}};" | [[:Category:{{{title}}}|{{{total}}}]]
 
|-
 
|-
 
|
 
|
 
|-
 
|-
! style="{{roundytl|10px}}; background: #{{#var:accent_color}}; padding:2px 0 0 0;" | Game
+
! style="{{roundytl|10px}}; background: #{{{accent_color|FF11FF}}}; padding:2px 0 0 0;" | Game
! style="{{roundytr|10px}}; background: #{{#var:accent_color}}; padding:2px 0 0 0;" | Count
+
! style="{{roundytr|10px}}; background: #{{{accent_color|FF11FF}}}; padding:2px 0 0 0;" | Count
 
|-
 
|-
 
| style="background:#fff;" | {{DnM}}
 
| style="background:#fff;" | {{DnM}}
Line 51: Line 49:
 
|title = (header title, also links to category)
 
|title = (header title, also links to category)
 
|background_color = (background color, red in the example)
 
|background_color = (background color, red in the example)
|accent_color = (color behind headers, pink in the example)
+
|accent_color|FF11FF = (color behind headers, pink in the example)
 
|image = (do not include "File:")
 
|image = (do not include "File:")
 
|total = (total count across all games)
 
|total = (total count across all games)

Revision as of 16:11, April 22, 2020


{{{title}}} in the Animal Crossing series
[[File:{{{image}}}|325px]]
Series total count: [[:Category:{{{title}}}|{{{total}}}]]
Game Count
Doubutsu no Mori {{{DnM_count}}}
Doubutsu no Mori+ {{{DnM_plus_count}}}
Animal Crossing {{{ACGC_count}}}
Doubutsu no Mori e+ {{{DnMe_plus_count}}}
Animal Crossing: Wild World {{{ACWW_count}}}
Animal Crossing: City Folk {{{ACCF_count}}}
Animal Crossing: New Leaf {{{ACNL_count}}}
Animal Crossing: New Horizons {{{ACNH_count}}}
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)
...
}}