Difference between revisions of "Template:Villager Header"

From Nookipedia, the Animal Crossing wiki
(-)
 
(Correcting template usage for special characters)
 
(66 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{| width="100%"  align="center" style="background-color: #{{ColorPrimary}}; border:2px solid #{{ColorPrimary}}; border-spacing:0px; {{Roundy|10px}}"
+
{{Header Box
|-
+
|bg-color       = #{{#switch:{{lc:{{{pers|}}}}}| lazy | jock | cranky | smug | normal | peppy | snooty | big sister = c7dfeb | special = e6f8b9 | #default = d9d9d9}}
| style="background-color: #{{ColorSecondary}}; text-align:center; {{Roundyleft|10px}}" | [[{{{species|:Category:Species}}}|{{Colorshow|000000|More {{{species|(Species)}}} Villagers}}]]
+
|cell-border    = #{{#switch:{{lc:{{{pers|}}}}}| lazy | jock | cranky | smug | normal | peppy | snooty | big sister = 569ec2 | special = b5ea2e | #default = 8c8c8c}}
| style="background-color: #{{ColorSecondary}}; border-left:2px solid #{{ColorPrimary}}; border-right:2px solid #{{ColorPrimary}}; text-align:center;" | '''[[List of villagers|{{Colorshow|000000|Villagers}}]]'''
+
|left-link      = {{#if:{{{species|}}} | {{#switch:{{lc:{{{species|}}}}} | octopus = Octopus (species) | frog = Frog (species) | #default = {{{species}}} }} | :Category:Species }}
| style="background-color: #{{ColorSecondary}}; text-align:center; {{Roundyright|10px}}" | [[{{{pers|Villager#Personalities}}}|{{Colorshow|000000|More {{{pers|(Personality)}}} Villagers}}]]
+
|left-text      = More {{#if:{{{species|}}}|'''{{{species}}}''' characters|'''character species'''}}
{{#if:{{{cardnum|showing e-Card row for now}}}|{{!-}}
+
|middle-link    = {{#ifeq: {{{pers|special}}} | special | Special characters | List of villagers }}
{{!}} style="background-color: #{{ColorPrimary}}; text-align: left; padding-left:5%; {{Roundybl|10px}}" {{!}} [[{{{prevcard|List of villagers}}}|{{Colorshow|{{ColorSecondary}}|← {{{prevnum|X-000}}} {{{prevcard|Previous}}}}}]]
+
|middle-text    = {{#ifeq: {{{pers|special}}} | special | Special characters list | Villager list }}
{{!}} style="background-color: #{{ColorPrimary}}; text-align: center;" {{!}} '''[[Merchandise/Animal Crossing-e|{{Colorshow|{{ColorSecondary}}|{{{cardnum|X-000}}} {{{name|{{PAGENAME}}}}}}}]]'''
+
|right-link      = {{#if:{{{pers|}}} | {{#switch:{{{pers|}}} | special = Special character | #default = {{{pers}}} }} | Villager#Personalities }}
{{!}} style="background-color: #{{ColorPrimary}}; text-align: right; padding-right:5%;  {{Roundybr|10px}}" {{!}} [[{{{nextcard|List of villagers}}}|{{Colorshow|{{ColorSecondary}}|{{{nextnum|X-000}}} {{{nextcard|Next}}} →}}]]
+
|right-text      = More {{#if:{{{pers|}}}| {{#switch:{{{pers|special}}} | special = '''special characters'''| #default = '''{{{pers}}}''' villagers}} | '''villager personalities'''}}
}}
+
|left-image      = {{#if:{{{species|}}}|File:{{#switch: {{lc:{{{species|}}}}} | bull | cow = Bovine | alpaca | beaver | axolotl | beaver | boar | camel | chameleon | frill-necked lizard | giraffe | seagull | hedgehog | human | kappa | kitsune | fox | mole | otter | owl | pelican | pigeon | pumpkin | reindeer | fur seal | skunk | sloth | raccoon | tapir | tortoise  | turkey | turtle | walrus | panther | peacock | dodo | langur | manatee = Special | {{{species}}} }}SpeciesIconSilhouette.png}}
|}<noinclude>{{clr}}
+
|left-imagesize  = 30px
 
+
|right-image    = {{#if: {{{pers|}}} | File:Emotion {{#switch: {{lc:{{{pers|}}}}} | cranky = Aggravation | jock = Pride | lazy = Sleepy | smug = Smirking | normal = Happiness | peppy = Encouraging | snooty = Disagreement | big sister = Mischief | special = Flourish}} NH Icon cropped.png}}
==Usage==
+
|right-imagesize = 30px
'''''Note:''' An additional "name" field can be added for villagers whose pages contain qualifiers, such as [[Apple (villager)]].''
+
}}<noinclude>{{Documentation}}[[Category:Header templates]]</noinclude>
 
 
===Basic===
 
<pre>
 
{{Villager Header
 
|species =  
 
|pers =
 
}}
 
</pre>
 
 
 
===e-Card Villagers===
 
<pre>
 
{{Villager Header
 
|species =  
 
|pers =  
 
|cardnum =  
 
|prevnum =  
 
|prevcard =  
 
|nextnum =  
 
|nextcard =  
 
}}
 
</pre>
 
 
 
==Guide==
 
===Basic===
 
<pre>
 
{{Villager Header
 
|name = name of the villager (if necessary)
 
|species = villager's species
 
|pers = villager's personality type
 
}}
 
</pre>
 
 
 
===e-Card Villagers===
 
<pre>
 
{{Villager Header
 
|name = name of the villager (if necessary)
 
|species = villager's species
 
|pers = villager's personality type
 
|cardnum = full number of villager's e-Card (ex. 1-001)
 
|prevnum = full number of previous e-Card
 
|prevcard = name of page for subject of previous e-Card
 
|nextnum = full number of following e-Card
 
|nextcard = name of page for subject of following e-Card
 
}}
 
</pre></noinclude>
 

Latest revision as of 16:02, November 3, 2022

Template documentation (view)


Usage

{{Villager Header
|species = 
|pers =
}}

Notes

  • The pers parameter takes the animal's personality type (Cranky, Jock, Lazy, Smug, Normal, Peppy, Snooty, Big sister, Special)
– For villagers that do not have a typical personality (e.g. Tom Nook) enter "Special" as the personality type.