Difference between revisions of "Template:Villager Header"

From Nookipedia, the Animal Crossing wiki
(Thickened border, increased cell height, changed font color and text of middle link (Villager List), increased curve of {{roundy}} templates, adjusted cell width)
m (Reverted edits by SuperHamster (talk) to last revision by Sunmarsh)
Tag: Rollback
(41 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{| width="100%" align="center" style="background-color: #{{ColorPrimary}}; border: 3px solid #{{ColorPrimary}}; border-spacing:0px; margin-bottom: 10px;{{Roundy|30px}}"
+
<div class="nomobile">
 +
{| width="100%" align="center" style="text-align:center; background-color: #{{ColorSecondary}}; border-spacing:0px; border: 3px solid #{{ColorPrimary}}; margin-bottom: 20px; {{Roundy|30px}}"
 +
| width=35% height=38px style="text-align:left; padding:0 0 0 18px;"| {{#switch: {{lc:{{{species|}}}}} | octopus = [[Octopus (species)|{{Colorshow|333|←}}]] | frog =  [[Frog (species)|{{Colorshow|333|←}}]] | unknown =  [[:Category:Species|{{Colorshow|333|←}}]] | [[{{{species|:Category:Species}}}|{{Colorshow|333|←}}]]}}&nbsp; {{#ifeq: {{lc:{{{species|}}}}} | unknown | | {{#if: {{{species|}}} | [[File:{{#switch: {{lc:{{{species|}}}}} | bull | cow = Bovine | alpaca | beaver | axolotl | beaver | boar | camel | chameleon | frill-necked lizard | giraffe | gull | hedgehog | human | kappa | kitsune | fox | mole | otter | owl | pelican | pigeon | pumpkin | reindeer | sea lion | skunk | sloth | raccoon | tapir | tortoise  | turkey | turtle | walrus | panther | peacock | dodo = Special | {{{species|}}}}}SpeciesIconSilhouette.png|32px|link={{#switch: {{lc:{{{species|}}}}} | octopus = Octopus (species) | frog =  Frog (species) | {{{species|}}}}}]]}}}} &nbsp;{{#switch: {{lc:{{{species|}}}}} | octopus = [[Octopus (species)|{{Colorshow|333|More '''octopus''' villagers}}]] | frog =  [[Frog (species)|{{Colorshow|333|More '''frog''' villagers}}]] | unknown =  [[:Category:Species|{{Colorshow|333|More '''villager species'''}}]] | [[{{{species|:Category:Species}}}|{{Colorshow|333|More '''{{lc:{{{species|villager species}}}}}''' {{#if:{{{species|}}} | villagers}}}}]]}}
 +
| width=30% style="border-left:3px solid #{{ColorPrimary}}; border-right:3px solid #{{ColorPrimary}};"| '''[[List of villagers|{{Colorshow|333|Villager List}}]]'''
 +
| width=35% style="text-align:right; padding:0 18px 0 0;"| [[{{#ifeq: {{lc: {{{pers|}}}}} | special | Special Characters | {{{pers|Villager#Personalities}}}}}|{{Colorshow|333|More '''{{lc:{{{pers|villager personalities}}}}}''' {{#if: {{{pers|}}} | villagers}}]]}}&nbsp; {{#if: {{{pers|}}} | [[File:Emotion {{#switch: {{lc:{{{pers|}}}}} | cranky = Aggravation | jock = Pride | lazy = Sleepy | smug = Smirking | normal = Happiness | peppy = Encouraging | snooty = Disagreement | sisterly = Mischief | special = Flourish}} NH Icon cropped.png|36px|link={{#ifeq: {{lc: {{{pers|}}}}} | special | Special Characters | {{{pers|Villager#Personalities}}}}}]]}} &nbsp;[[{{#ifeq: {{lc: {{{pers|}}}}} | special | Special Characters | {{{pers|Villager#Personalities}}}}}|→]]
 +
|}
 +
</div><div class="onlymobile">
 +
{| width="100%" align="center" style="text-align:center; background-color: #{{ColorSecondary}}; border-spacing:0px; border: 3px solid #{{ColorPrimary}}; margin-bottom: 20px; {{Roundy|30px}}"  
 +
| colspan=2 style="height:35px; border-bottom:3px solid #{{ColorPrimary}};"| '''[[List of villagers|{{Colorshow|333|Villager List}}]]'''
 
|-
 
|-
| width="35%" height="30" style="background-color: #{{ColorSecondary}}; text-align:center; {{Roundyleft|30px}}" | [[{{{species|:Category:Species}}} {{#ifeq:{{{species|}}}|Frog|(species)}}{{#ifeq:{{{species|}}}|Octopus|(species)}}|{{Colorshow|000000|More {{{species|(Species)}}} Villagers}}<br>]]
+
| width=50% height=38px style="border-right:2px solid #{{ColorPrimary}}; text-align:left; padding:0 0 0 18px;"| {{#switch: {{lc:{{{species|}}}}} | octopus = [[Octopus (species)|{{Colorshow|333|}}]] | frog = [[Frog (species)|{{Colorshow|333|}}]] | unknown [[:Category:Species|{{Colorshow|333|←}}]] | [[{{{species|:Category:Species}}}|{{Colorshow|333|←}}]]}}&nbsp; {{#ifeq: {{lc:{{{species|}}}}} | unknown | | {{#if: {{{species|}}} | [[File:{{#switch: {{lc:{{{species|}}}}} | bull | cow = Bovine | alpaca | beaver | axolotl | beaver | boar | camel | chameleon | frill-necked lizard | giraffe | gull | hedgehog | human | kappa | kitsune | fox | mole | otter | owl | pelican | pigeon | pumpkin | reindeer | sea lion | skunk | sloth |raccoon | tapir | tortoise  | turkey | turtle | walrus | panther | peacock = Special | {{{species|}}}}}SpeciesIconSilhouette.png|32px|link={{#switch: {{lc:{{{species|}}}}} | octopus = Octopus (species) | frog =  Frog (species) | {{{species|}}}}}]]}}}} &nbsp;{{#switch: {{lc:{{{species|}}}}} | octopus = [[Octopus (species)|{{Colorshow|333|More '''octopus''' villagers}}]] | frog =  [[Frog (species)|{{Colorshow|333|More '''frog''' villagers}}]] | unknown =  [[:Category:Species|{{Colorshow|333|More '''villager species'''}}]] | [[{{{species|:Category:Species}}}|{{Colorshow|333|More '''{{lc:{{{species|villager species}}}}}''' {{#if:{{{species|}}} | villagers}}}}]]}}
| width="30%" style="background-color: #{{ColorSecondary}}; border-left: 3px solid #{{ColorPrimary}}; border-right: 3px solid #{{ColorPrimary}}; text-align:center;" | '''[[List of villagers|{{Colorshow|333333|Villager List}}]]'''
+
| width=50% style="border-left:1px solid #{{ColorPrimary}}; text-align:right; padding:0 18px 0 0;"| [[{{#ifeq: {{lc: {{{pers|}}}}} | special | Special Characters | {{{pers|Villager#Personalities}}}}}|{{Colorshow|333|More '''{{lc:{{{pers|villager personalities}}}}}''' {{#if: {{{pers|}}} | villagers}}]]}}&nbsp; {{#if: {{{pers|}}} | [[File:Emotion {{#switch: {{lc:{{{pers|}}}}} | cranky = Aggravation | jock = Pride | lazy = Sleepy | smug = Smirking | normal = Happiness | peppy = Encouraging | snooty = Disagreement | sisterly = Mischief | special = Flourish}} NH Icon cropped.png|36px|link={{#ifeq: {{lc: {{{pers|}}}}} | special | Special Characters | {{{pers|Villager#Personalities}}}}}]]}} &nbsp;[[{{#ifeq: {{lc: {{{pers|}}}}} | special | Special Characters | {{{pers|Villager#Personalities}}}}}|→]]
| width="35%" style="background-color: #{{ColorSecondary}}; text-align:center; {{Roundyright|30px}}" | [[{{{pers|Villager#Personalities}}}|{{Colorshow|000000|More {{{pers|(Personality)}}} Villagers}}]]
+
|}
{{#if:{{{cardnum|}}}|{{!-}}
+
</div><noinclude>{{Documentation}}[[Category:Header Templates]]</noinclude>
{{!}} style="background-color: #{{ColorPrimary}}; text-align: left; padding-left:5%; {{Roundybl|30px}}" {{!}} [[{{{prevcard|List of villagers}}}|{{Colorshow|{{ColorSecondary}}|← {{{prevnum|X-000}}} {{{prevcard|Previous}}}}}]]
 
{{!}} style="background-color: #{{ColorPrimary}}; text-align: center;" {{!}} '''[[Merchandise/Animal Crossing-e|{{Colorshow|{{ColorSecondary}}|{{{cardnum|X-000}}} {{{name|{{PAGENAME}}}}}}}]]'''
 
{{!}} style="background-color: #{{ColorPrimary}}; text-align: right; padding-right:5%; {{Roundybr|30px}}" {{!}} [[{{{nextcard|List of villagers}}}|{{Colorshow|{{ColorSecondary}}|{{{nextnum|X-000}}} {{{nextcard|Next}}} }}]]
 
}}
 
|}<noinclude>{{clr}}
 
 
 
==Usage==
 
===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
 
|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>
 

Revision as of 02:08, October 22, 2020

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.