Difference between revisions of "Template:Villager Header"

From Nookipedia, the Animal Crossing wiki
(Adding more to margin-bottom. Think I've finished here. Sky if you can clean up any code or think something should be changed, feel free!)
(Adding category.)
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| width="100%" align="center" style="background-color: #{{ColorPrimary}}; border: 3px solid #{{ColorPrimary}}; border-spacing:0px; margin-bottom: 15px; {{Roundy|20px}}"
+
{| 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|←}}]]}}  {{#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 | mole | otter | owl | pelican | pigeon | pumpkin | reindeer | sea lion | skunk | sloth | tanuki | tapir | tortoise  | turkey | turtle | walrus | panther | peacock = Special | {{{species|}}}}}SpeciesIconSilhouette.png|32px|link={{#switch: {{lc:{{{species|}}}}} | octopus = Octopus (species) | frog = Frog (species) | {{{species|}}}}}]]}}}}  {{#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="35%" height="30" style="background-color: #{{ColorSecondary}}; text-align:center; {{Roundyleft|15px}}" | [[{{{species|:Category:Species}}} {{#ifeq:{{{species|}}}|Frog|(species)}}{{#ifeq:{{{species|}}}|Octopus|(species)}}|{{Colorshow|333333|More '''{{{species|(Species)}}}''' Villagers}}<br>]]
+
| width=30% style="border-left:3px solid #{{ColorPrimary}}; border-right:3px solid #{{ColorPrimary}};"| '''[[List of villagers|{{Colorshow|333|Villager List}}]]'''
| 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=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 Icon - {{#switch: {{lc:{{{pers|}}}}} | cranky = Outrage | jock = Pride | lazy = Sleepy | smug = Love | normal = Happiness | peppy = Glee | snooty = Disagreement | uchi = Mischief | special = Flourish}} (NL) 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|15px}}" | [[{{{pers|Villager#Personalities}}}|{{Colorshow|333333|More '''{{{pers|(Personality)}}}''' Villagers}}]]
+
|}<noinclude>
{{#if:{{{cardnum|}}}|{{!-}}
 
{{!}} colspan=3 style="border-bottom: 1px solid #{{ColorPrimary}}" {{!}}
 
{{!-}}
 
{{!}} colspan=3 style="background-color: #{{ColorSecondary}}; text-align:center; {{Roundytop|20px}}" {{!}} [[Merchandise/Animal Crossing-e|{{Colorshow|333333|Animal Crossing e-cards}}]]
 
{{!-}}
 
{{!}} style="background-color: #{{ColorPrimary}}; text-align: left; padding-left:5%; {{Roundybl|20px}}" {{!}} [[{{{prevcard|List of villagers}}}|{{Colorshow|{{ColorSecondary}}|← {{{prevnum|X-000}}} {{{prevcard|Previous}}}}}]]
 
{{!}} style="text-align: center;" {{!}} '''[[Merchandise/Animal Crossing-e|{{Colorshow|{{ColorSecondary}}|{{{cardnum|X-000}}} {{{name|{{PAGENAME}}}}}}}]]'''
 
{{!}} style="text-align: right; padding-right:5%; {{Roundybr|20px}}" {{!}} [[{{{nextcard|List of villagers}}}|{{Colorshow|{{ColorSecondary}}|{{{nextnum|X-000}}} {{{nextcard|Next}}} }}]]
 
}}
 
|}<noinclude>{{clr}}
 
  
 
==Usage==
 
==Usage==
===Basic===
 
 
<pre>
 
<pre>
 
{{Villager Header
 
{{Villager Header
Line 24: Line 13:
 
</pre>
 
</pre>
  
===e-Card Villagers===
+
==Notes==
<pre>
+
*The pers parameter takes the animal's personality type (Cranky, Jock, Lazy, Smug, Normal, Peppy, Snooty, Uchi, Special)
{{Villager Header
+
:– For villagers that do not have a typical personality (e.g. Tom Nook) enter "Special" as the personality type.
|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===
+
[[Category:Header Templates]]
<pre>
+
</noinclude>
{{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 12:05, September 18, 2019

   More villager species Villager List More villager personalities    

Usage

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

Notes

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