Difference between revisions of "Template:Infobox Species"

From Nookipedia, the Animal Crossing wiki
(Rounded corners.)
(Stopgap colour solution for now...)
 
(46 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{| style="float:right; width:250px; font-size:90%; text-align:left;border: 2px solid #9F7309;" cellpadding="3" class="roundy"
+
{| class="infobox roundlast" style="table-layout: fixed; background: #CC98E6; margin-left: 10px; margin-bottom: 10px; {{roundy|15px}} border: 3px solid #CC98E6; padding: 2px; float:right; margin-left: 10px; margin-bottom: 10px;"
! colspan="2" style="font-size:110%; text-align:center; background:#DarkGoldenrod;" class="roundytop" | ''{{{name}}}''
 
 
|-
 
|-
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|{{{image}}}|Have an image of this species?<br>Then please '''[[Special:Upload|upload]]''' it!}}{{#if:{{{caption|}}}|<br>{{{caption}}}}}
+
! align="center" style="background: #CC98E6;" | {{#ifexist:File:{{{icon|{{PAGENAME}}}}}SpeciesIconSilhouette.png|[[File:{{{icon|{{PAGENAME}}}}}SpeciesIconSilhouette.png|28px|left|link=]]}}
 +
! colspan="7" style="background: #CC98E6; padding: 5px 15px 5px 15px; font-size: 1.5em;" | {{{name|{{PAGENAME}}}}}
 +
! style="background: #CC98E6;" |
 
|-
 
|-
{{#if:{{{first<includeonly>|</includeonly>}}} |
+
| colspan="9" style="background: #ffffff; text-align:center; padding:8px; {{roundy|9px}}" | [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]{{#if:{{{caption|}}}|<br>{{{caption|}}}}}
{{!}}style="background:#Goldenrod;"{{!}}'''First villager appearance'''
+
|-
{{!}}{{{first}}}
+
{{!-}}
{{!}}-
+
! colspan=9 style="background: #E1C1F0; text-align:center {{roundytop|9px}}" {{!}} Species count by game
}}
+
|-
{{#if:{{{famous<includeonly>|</includeonly>}}} |
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Doubutsu no Mori|DnM]]''</small></small>
{{!}}style="background:#Goldenrod;"{{!}}'''Famous members'''
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing|AC]]''</small></small>
{{!}}{{{famous}}}
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Doubutsu no Mori e+|e+]]''</small></small>
{{!}}-
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing: Wild World|WW]]''</small></small>
}}
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing: City Folk|CF]]''</small></small>
{{#if:{{{islanders<includeonly>|</includeonly>}}} |
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing: New Leaf|NL]]''</small></small>
{{!}}style="background:#Goldenrod;"{{!}}'''[[Island]]ers'''
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing: Happy Home Designer|HHD]]''</small></small>
{{!}}{{{islanders}}}
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing: Pocket Camp|PC]]''</small></small>
{{!}}-
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing: New Horizons|NH]]''</small></small>
}}
+
|-
{{#if:{{{designer<includeonly>|</includeonly>}}} |
+
|{{#switch: {{{dnm|}}}|Na = {{Table cell|Na|style={{roundybl|9px}}}} |#default = style="background: #ffffff; text-align:center; {{roundybl|9px}}"{{!}} <small>{{{dnm|0}}}</small>}}
{{!}}style="background:#Goldenrod;"{{!}}'''Amount of villagers'''
+
|{{#switch: {{{pg|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{pg|0}}}</small>}}
{{!}}{{{designer}}}
+
|{{#switch: {{{e+|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{e+|0}}}</small>}}
}}
+
|{{#switch: {{{ww|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{ww|0}}}</small>}}
{{!}}- Amount of Villagers |
+
|{{#switch: {{{cf|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{cf|0}}}</small>}}
{{!}} style="background-color: #Goldenrod;{{roundybl}}"{{!}}'''Amount of Villagers'''
+
|{{#switch: {{{nl|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{nl|0}}}</small>}}
{{!}}''(<u>[[Dōbutsu no Mori (game)|Animal Forest]]</u>)''<br>{{{AF}}}<br>''(<u>[[Dōbutsu no Mori +|Animal Forest +]]</u>)''<br>{{{AF+}}}<br>''(<u>[[Animal Crossing (GCN)|Animal Crossing]]</u>)''<br>{{{PG}}}<br>''(<u>[[Dōbutsu no Mori e+|Animal Forest e+]]</u>)''<br>{{{AFe+}}}<br>''(<u>[[Animal Crossing: Wild World|Wild World]]</u>)''<br>{{{WW}}}<br>''(<u>[[Animal Crossing: City Folk|City Folk]]</u>)''<br>{{{CF}}}
+
|{{#switch: {{{hhd|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{hhd|0}}}</small>}}
|}<noinclude>
+
|{{#switch: {{{pc|}}}|Na = {{Table cell|Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{pc|0}}}</small>}}
==Usage==
+
|{{#switch: {{{nh|}}}|Na = {{Table cell|Na|style={{roundybr|9px}}}} |#default = style="background: #ffffff; text-align:center; {{roundybr|9px}}"{{!}} <small>{{{nh|0}}}</small>}}
<pre>
+
|-{{#if:{{{lazy|}}}{{{jock|}}}{{{cranky|}}}{{{smug|}}}{{{normal|}}}{{{peppy|}}}{{{snooty|}}}{{{bigsister|}}}|
{{Infobox Species
+
{{!-}}
|name=  
+
! colspan=9 style="background: #E1C1F0; text-align:center {{roundytop|9px}}" {{!}} Species count by personality
|image=  
+
{{!-}}
|caption=  
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Lazy]]''</small></small>
|first=
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Jock]]''</small></small>
|famous=  
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Cranky]]''</small></small>
|islanders=  
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Smug]]''</small></small>
|AF=  
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Normal]]''</small></small>
|AF+=  
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Peppy]]''</small></small>
|PG=  
+
! style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Snooty]]''</small></small>
|AFe+=
+
! colspan=2 style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>''[[Big sister]]''</small></small>
|WW=
+
{{!-}}
|CF=
+
{{!}}style="background: #ffffff; text-align:center; {{roundybl|9px}}"{{!}} <small>{{{lazy}}}</small>
}}</pre>
+
{{!}}style="background: #ffffff; text-align:center"{{!}} <small>{{{jock}}}</small>
[[Category:Templates]]
+
{{!}}style="background: #ffffff; text-align:center"{{!}} <small>{{{cranky}}}</small>
[[Category:Infobox Templates]]
+
{{!}}style="background: #ffffff; text-align:center"{{!}} <small>{{{smug}}}</small>
 +
{{!}}style="background: #ffffff; text-align:center"{{!}} <small>{{{normal}}}</small>
 +
{{!}}style="background: #ffffff; text-align:center"{{!}} <small>{{{peppy}}}</small>
 +
{{!}}style="background: #ffffff; text-align:center"{{!}} <small>{{{snooty}}}</small>
 +
{{!}}colspan=2 style="background: #ffffff; text-align:center; {{roundybr|9px}}"{{!}} <small>{{{bigsister}}}</small>}}
 +
|-
 +
! colspan=9 style="background: #E1C1F0; text-align:center {{roundytop|9px}}" {{!}} Species count by type
 +
|-
 +
! colspan=2 style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>[[Villager]]s</small></small>
 +
! colspan=2 style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>[[Islander]]s</small></small>
 +
! colspan=2 style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small><small>[[Special character|Special]]</small></small>
 +
! colspan=3 style="background: #EBD6F5; width:40px; text-align:center" {{!}}<small>'''Total'''</small>
 +
|-
 +
| colspan=2 style="background: #ffffff; text-align:center; {{roundybl|9px}}"| {{{villagers|0}}}
 +
|{{#switch: {{{islanders|}}}|Na = colspan=2 style="background: #E6E6E6; text-align:center"{{!}} |#default = colspan=2 style="background: #ffffff; text-align:center"{{!}} <small>{{{islanders|0}}}</small>}}
 +
| colspan=2 style="background: #ffffff; text-align:center"| {{{special|0}}}
 +
| colspan=3 style="background: #ffffff; text-align:center; {{roundybr|9px}}"| '''{{{total|0}}}'''
 +
|}<noinclude>{{clear}}{{Documentation}}
 +
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:52, May 17, 2024

Infobox Species
Nia.png
Species count by game
DnM AC e+ WW CF NL HHD PC NH
0 0 0 0 0 0 0 0 0
Species count by type
Villagers Islanders Special Total
0 0 0 0

Template documentation (view)


This is an infobox template used for all species articles, such as Alligator, Bear, Cat etc.

Code Function
icon Name of species for species-specific icon. Defaults to the page name, but a custom name can be input to use species icons that don't match the page name
name English name of species
japanese Japanese name of species. Use Template:JN
image Filename to image of an animal that represents the species
imagesize Determines the size (in pixels) the image will be displayed
status Conservation status. Defaults to "Unknown"
kingdom Scientific classification. These fields only appear if filled
phylum
class
order
family
genus
species
villagers Total Villager count. Do not include islanders who are regular villagers in later games. Defaults to 0
islanders Total Islander count. Defaults to 0
special Total Special Character count. Defaults to 0
total Total Species count. Defaults to 0
dnm Number of animals of this species that appear in each specific game. Defaults to 0
pg
e+
ww
cf
nl
hhd
pc

Example usage

Below is an example of usage, taken from Cat.

{{Infobox Species |icon = Cat |name = Cat |japanese = {{JN|ネコ|Neko}} |image = Bob NL.png |imagesize = 175px |status = Domesticated |kingdom = Animalia |phylum = Chordata |class = Mammalia |order = Carnivora |family = Felidae |genus = Felis |species = F. catus |af = 13 |pg = 15 |e+ = 22 |ww = 13 |cf = 20 |nl = 23 |hhd = 23 |pc = 6 |villagers = 24 |islanders = 1 |special = 4 |total = 29 }}