Difference between revisions of "Template:Infobox Species"

From Nookipedia, the Animal Crossing wiki
(A few subtle design tweaks for consistency)
(A few tweaks, adding New Horizons field, added feature to grey out unneeded appearance boxes (e.g. for use with Deer and Hamster))
Line 2: Line 2:
 
|-
 
|-
 
! align="center" | [[File:{{{icon|{{PAGENAME}}}}}SpeciesIconSilhouette.png|28px|left|link=]]
 
! align="center" | [[File:{{{icon|{{PAGENAME}}}}}SpeciesIconSilhouette.png|28px|left|link=]]
! colspan="5" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
+
! colspan="6" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
 
! colspan="2" | {{{japanese|}}}
 
! colspan="2" | {{{japanese|}}}
 
|-
 
|-
| style="background: #ffffff; text-align:center; {{roundy|9px}}" colspan="8" | [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
+
| colspan="9" style="background: #ffffff; text-align:center; {{roundy|9px}}" | [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
 
|-
 
|-
 
{{!-}}
 
{{!-}}
! colspan=8 style="background: #D6ADEB; text-align:center; {{roundytop|9px}}" {{!}} Conservation status
+
! colspan=9 style="background: #D6ADEB; text-align:center; {{roundytop|9px}}" {{!}} Conservation status
 
|-
 
|-
| colspan=8 style="background:#ffffff; text-align:center; {{roundybottom|9px}}" {{!}} {{{status|Unknown}}}
+
| colspan=9 style="background:#ffffff; text-align:center; {{roundybottom|9px}}" {{!}} {{{status|Unknown}}}
 
|-
 
|-
! colspan=8 style="background: #D6ADEB; text-align:center; {{roundytop|9px}}" {{!}} Scientific classification
+
! colspan=9 style="background: #D6ADEB; text-align:center; {{roundytop|9px}}" {{!}} Scientific classification
 
|-
 
|-
 
! colspan=4 style="background: #E1C1F0; text-align:center" | Domain
 
! colspan=4 style="background: #E1C1F0; text-align:center" | Domain
| colspan=4 style="background:#ffffff; text-align:center;" | {{{domain|Eukarya}}}
+
| colspan=5 style="background:#ffffff; text-align:center;" | {{{domain|Eukarya}}}
 
|- {{#if:{{{kingdom|}}}|
 
|- {{#if:{{{kingdom|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Kingdom
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Kingdom
{{!}} colspan=4 style="background:#ffffff; text-align:center" {{!}} {{{kingdom}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center" {{!}} {{{kingdom}}}}}
 
|- {{#if:{{{phylum|}}}|
 
|- {{#if:{{{phylum|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Phylum
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Phylum
{{!}} colspan=4 style="background:#ffffff; text-align:center" {{!}} {{{phylum|}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center" {{!}} {{{phylum|}}}}}
 
|- {{#if:{{{class|}}}|
 
|- {{#if:{{{class|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Class
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Class
{{!}} colspan=4 style="background:#ffffff; text-align:center" {{!}} {{{class|}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center" {{!}} {{{class|}}}}}
 
|- {{#if:{{{order|}}}|
 
|- {{#if:{{{order|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Order
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Order
{{!}} colspan=4 style="background:#ffffff; text-align:center" {{!}} {{{order|}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center" {{!}} {{{order|}}}}}
 
|- {{#if:{{{family|}}}|
 
|- {{#if:{{{family|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Family
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Family
{{!}} colspan=4 style="background:#ffffff; text-align:center" {{!}} {{{family|}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center" {{!}} {{{family|}}}}}
 
|- {{#if:{{{genus|}}}|
 
|- {{#if:{{{genus|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Genus
 
! colspan=4 style="background: #E1C1F0; text-align:center" {{!}} Genus
{{!}} colspan=4 style="background:#ffffff; text-align:center" {{!}} {{{genus|}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center" {{!}} {{{genus|}}}}}
 
|- {{#if:{{{species|}}}|
 
|- {{#if:{{{species|}}}|
 
{{!-}}
 
{{!-}}
 
! colspan=4 style="background: #E1C1F0; {{roundybl|10px}}; text-align:center" {{!}} Species
 
! colspan=4 style="background: #E1C1F0; {{roundybl|10px}}; text-align:center" {{!}} Species
{{!}} colspan=4 style="background:#ffffff; text-align:center; {{roundybr|10px}}" {{!}} {{{species|}}}}}
+
{{!}} colspan=5 style="background:#ffffff; text-align:center; {{roundybr|10px}}" {{!}} {{{species|}}}}}
 
|-
 
|-
 
{{!-}}
 
{{!-}}
! colspan=8 style="background: #D6ADEB; text-align:center {{roundytop|9px}}" {{!}} Species count by game
+
! colspan=9 style="background: #D6ADEB; text-align:center {{roundytop|9px}}" {{!}} Species count by game
 
|-
 
|-
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Doubutsu no Mori|DnM]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Doubutsu no Mori|DnM]]''</small></small>
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing (GCN)|ACGC]]''</small></small>
+
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Animal Crossing (GCN)|AC]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Doubutsu no Mori e+|e+]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Doubutsu no Mori e+|e+]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Wild World|WW]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Wild World|WW]]''</small></small>
Line 56: Line 56:
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Happy Home Designer|HHD]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Happy Home Designer|HHD]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Pocket Camp|PC]]''</small></small>
 
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[Pocket Camp|PC]]''</small></small>
 +
! style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>''[[New Horizons|NH]]''</small></small>
 
|-
 
|-
| style="background: #ffffff; text-align:center; {{roundybl|9px}}"| <small>{{{af|0}}}</small>
+
|{{#switch: {{{af|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center; {{roundybl|9px}}"{{!}} <small>{{{af|0}}}</small>}}
| style="background: #ffffff; text-align:center"| <small>{{{pg|0}}}</small>
+
|{{#switch: {{{pg|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{pg|0}}}</small>}}
| style="background: #ffffff; text-align:center"| <small>{{{e+|0}}}</small>
+
|{{#switch: {{{e+|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{e+|0}}}</small>}}
| style="background: #ffffff; text-align:center"| <small>{{{ww|0}}}</small>
+
|{{#switch: {{{ww|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{ww|0}}}</small>}}
| style="background: #ffffff; text-align:center"| <small>{{{cf|0}}}</small>
+
|{{#switch: {{{cf|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{cf|0}}}</small>}}
| style="background: #ffffff; text-align:center"| <small>{{{nl|0}}}</small>
+
|{{#switch: {{{nl|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{nl|0}}}</small>}}
| style="background: #ffffff; text-align:center"| <small>{{{hhd|0}}}</small>
+
|{{#switch: {{{hhd|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{hhd|0}}}</small>}}
| style="background: #ffffff; text-align:center; {{roundybr|9px}}"| <small>{{{pc|0}}}</small>
+
|{{#switch: {{{pc|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center"{{!}} <small>{{{pc|0}}}</small>}}
 +
|{{#switch: {{{nh|}}}|Na = {{Na}} |#default = style="background: #ffffff; text-align:center; {{roundybr|9px}}"{{!}} <small>{{{nh|0}}}</small>}}
 
|-
 
|-
! colspan=8 style="background: #D6ADEB; text-align:center {{roundytop|9px}}" {{!}} Species count by type
+
! colspan=9 style="background: #D6ADEB; text-align:center {{roundytop|9px}}" {{!}} Species count by type
 
|-
 
|-
 
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>[[Villager]]s</small></small>
 
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>[[Villager]]s</small></small>
 
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>[[Islander]]s</small></small>
 
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>[[Islander]]s</small></small>
 
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>[[:Category:Special Characters|Special]]</small></small>
 
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small><small>[[:Category:Special Characters|Special]]</small></small>
! colspan=2 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small>'''Total'''</small>
+
! colspan=3 style="background: #e1c1f0; width:40px; text-align:center" {{!}}<small>'''Total'''</small>
 
|-
 
|-
 
| colspan=2 style="background: #ffffff; text-align:center; {{roundybl|9px}}"| {{{villagers|0}}}
 
| colspan=2 style="background: #ffffff; text-align:center; {{roundybl|9px}}"| {{{villagers|0}}}
 
| colspan=2 style="background: #ffffff; text-align:center"| {{{islanders|0}}}
 
| colspan=2 style="background: #ffffff; text-align:center"| {{{islanders|0}}}
 
| colspan=2 style="background: #ffffff; text-align:center"| {{{special|0}}}
 
| colspan=2 style="background: #ffffff; text-align:center"| {{{special|0}}}
| colspan=2 style="background: #ffffff; text-align:center; {{roundybr|9px}}"| '''{{{total|0}}}'''
+
| colspan=3 style="background: #ffffff; text-align:center; {{roundybr|9px}}"| '''{{{total|0}}}'''
 
|}<noinclude>
 
|}<noinclude>
  

Revision as of 18:10, November 4, 2019

Infobox Species
Nia.png
Conservation status
Unknown
Scientific classification
Domain Eukarya
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

Documentation

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
}}