Difference between revisions of "Template:HHDVillagerInfo"

From Nookipedia, the Animal Crossing wiki
m (Quote closer to Tia picture.)
(Reflect three columns style from Template:HHPVillagerInfo: https://nookipedia.com/w/index.php?title=Template:HHPVillagerInfo&action=history)
Line 62: Line 62:
 
{{!-}}
 
{{!-}}
 
! style="background: #{{{secondarycolor|C8E2ED}}}; text-align:center;  {{roundybl|9px}}" {{!}} '''Favorite song'''
 
! style="background: #{{{secondarycolor|C8E2ED}}}; text-align:center;  {{roundybl|9px}}" {{!}} '''Favorite song'''
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px; {{roundybr|9px}}" {{!}} [[File:{{{song|}}}_(Album Cover)_HHD_Icon.png|27px|alt=|link=]] [[{{{song|}}}]]}}
+
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px; {{roundybr|9px}}" {{!}} [[File:{{{song|}}}_(Album Cover)_HHD_Icon.png|x29px|alt=|link=]] [[{{{song|}}}]]}}
 
|}
 
|}
 
</div>
 
</div>
Line 73: Line 73:
 
{{#if:{{{furn1|}}}|
 
{{#if:{{{furn1|}}}|
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Furniture:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Furniture:'''
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}
+
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}}; width:85%;" align="left" {{!}}{{Columns-list|colwidth=170px|{{#forargs: furn
{{(!}} style{{=}}"text-align:left;"
 
{{#forargs: furn
 
 
  | key
 
  | key
 
  | value
 
  | value
  | <nowiki />
+
  | <nowiki /><li style="list-style: none;">[[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}}}}_HHD_Icon.png|x29px|alt=|link=]]&nbsp;<span style="font-size:0.9em;>{{{f{{#var: key }}|{{{furn{{#var: key }}|}}}}}}</span></li>
{{!}} [[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}}}}_HHD_Icon.png|30px|alt=|link=]]&nbsp;{{{f{{#var: key }}|{{{furn{{#var: key }}|}}}}}}&nbsp;&nbsp;
 
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
 
 
}}
 
}}
{{!)}}}}
+
}}
 +
}}
 +
|-
 
{{#if:{{{fnNLWa1|}}}|
 
{{#if:{{{fnNLWa1|}}}|
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Furniture:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Furniture:'''
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}
+
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}}; width:85%;" align="left" {{!}}{{Columns-list|colwidth=170px|{{#forargs: fnNLWa
{{(!}} style{{=}}"text-align:left;"
 
{{#forargs: fnNLWa
 
 
  | key
 
  | key
 
  | value
 
  | value
  | <nowiki />
+
  | <nowiki /><li style="list-style: none;">[[File:{{{fn{{#var: key }}-img|{{{fnNLWa{{#var: key }}|}}}}}}_NLWa_Model.png|x29px|alt=|link=]]&nbsp;<span style="font-size:0.9em;>{{{fn{{#var: key }}|{{{fnNLWa{{#var: key }}|}}}}}}</span></li>
{{!}} [[File:{{{fn{{#var: key }}-img|{{{fnNLWa{{#var: key }}|}}}}}}_NLWa_Model.png|30px|alt=|link=]]&nbsp;{{{fn{{#var: key }}|{{{fnNLWa{{#var: key }}|}}}}}}&nbsp;&nbsp;
+
}}
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
+
}}
 
}}
 
}}
{{!)}}}}
+
|-  
|-
 
 
{{#if:{{{inter1|}}}|
 
{{#if:{{{inter1|}}}|
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Interior:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Interior:'''
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}  
+
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}}; width:85%;" align="left" {{!}}{{Columns-list|colwidth=170px|{{#forargs: inter
{{(!}} style{{=}}"text-align:left;"
 
{{#forargs: inter
 
 
  | key
 
  | key
 
  | value
 
  | value
  | <nowiki />
+
  | <nowiki /><li style="list-style: none;">[[File:{{{i{{#var: key }}-img|{{{inter{{#var: key }}|}}}}}}_HHD_Icon.png|x29px|alt=|link=]]&nbsp;<span style="font-size:0.9em;>{{{i{{#var: key }}|{{{inter{{#var: key }}|}}}}}}</span></li>
{{!}} [[File:{{{i{{#var: key }}-img|{{{inter{{#var: key }}|}}}}}}_HHD_Icon.png|30px|alt=|link=]]&nbsp;{{{i{{#var: key }}|{{{inter{{#var: key }}|}}}}}}&nbsp;&nbsp;
+
}}
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
+
}}
 
}}
 
}}
{{!)}}}}
 
 
|-
 
|-
 
{{#if:{{{cloth1|}}}|
 
{{#if:{{{cloth1|}}}|
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Clothing:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Clothing:'''
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}  
+
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}}; width:85%;" align="left" {{!}}{{Columns-list|colwidth=170px|{{#forargs: cloth
{{(!}} style{{=}}"text-align:left;"
 
{{#forargs: cloth
 
 
  | key
 
  | key
 
  | value
 
  | value
  | <nowiki />
+
  | <nowiki /><li style="list-style: none;">[[File:{{{c{{#var: key }}-img|{{{cloth{{#var: key }}|}}}}}}_HHD_Icon.png|x29px|alt=|link=]]&nbsp;<span style="font-size:0.9em;>{{{c{{#var: key }}|{{{cloth{{#var: key }}|}}}}}}</span></li>
{{!}} [[File:{{{c{{#var: key }}-img|{{{cloth{{#var: key }}|}}}}}}_HHD_Icon.png|30px|alt=|link=]]&nbsp;{{{c{{#var: key }}|{{{cloth{{#var: key }}|}}}}}}&nbsp;&nbsp;
 
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
 
 
}}
 
}}
{{!)}}}}
+
}}
|-  
+
}}
 +
|-
 
{{#if:{{{plant1|}}}|
 
{{#if:{{{plant1|}}}|
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Nature:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Nature:'''
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}  
+
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}}; width:85%;" align="left" {{!}}{{Columns-list|colwidth=170px|{{#forargs: plant
{{(!}} style{{=}}"text-align:left;"
 
{{#forargs: plant
 
 
  | key
 
  | key
 
  | value
 
  | value
  | <nowiki />
+
  | <nowiki /><li style="list-style: none;">[[File:{{{p{{#var: key }}-img|{{{plant{{#var: key }}|}}}}}}_HHD_Icon.png|x29px|alt=|link=]]&nbsp;<span style="font-size:0.9em;>{{{p{{#var: key }}|{{{plant{{#var: key }}|}}}}}}</span></li>
{{!}} [[File:{{{p{{#var: key }}-img|{{{plant{{#var: key }}|}}}}}}_HHD_Icon.png|30px|alt=|link=]]&nbsp;{{{p{{#var: key }}|{{{plant{{#var: key }}|}}}}}}&nbsp;&nbsp;
 
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}}}}
 
 
}}
 
}}
{{!)}}}}
+
}}
|-  
+
}}
 +
|-
 
{{#if:{{{house1|}}}|
 
{{#if:{{{house1|}}}|
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Housing:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Housing:'''
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}  
+
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}}; width:85%;" align="left" {{!}}{{Columns-list|colwidth=170px|{{#forargs: house
{{(!}} style{{=}}"text-align:left;"
 
{{#forargs: house
 
 
  | key
 
  | key
 
  | value
 
  | value
  | <nowiki />
+
  | <nowiki /><li style="list-style: none;">[[File:{{{h{{#var: key }}-img|{{{house{{#var: key }}|}}}}}}_HHD_Icon.png|x29px|alt=|link=]]&nbsp;<span style="font-size:0.9em;>{{{h{{#var: key }}|{{{house{{#var: key }}|}}}}}}</span></li>
{{!}} [[File:{{{h{{#var: key }}-img|{{{house{{#var: key }}|}}}}}}_HHD_Icon.png|30px|alt=|link=]]&nbsp;{{{h{{#var: key }}|{{{house{{#var: key }}|}}}}}}&nbsp;&nbsp;
+
}}
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} &nbsp;}}
+
}}
 
}}
 
}}
{{!)}}}}
 
 
|-
 
|-
 
{{#ifexist:File:House_of_{{{start-house|{{PAGENAME}}}}}_HHD_Exterior.png|
 
{{#ifexist:File:House_of_{{{start-house|{{PAGENAME}}}}}_HHD_Exterior.png|

Revision as of 02:08, March 11, 2022

This template defines the table "hhd_villager". View table.

Happy Home Designer client information
HHDVillagerInfo
Unlocked items

Template documentation (view)


More Cargo templates

Usage

General Example

{{HHDVillagerInfo
|name = 
|image = 
|example = 
|birthday-month = 
|birthday = 
|sign = 
|personality = 
|catchphrase = 
|top = 
|umbrella = 
|thought = 
|request = 
|item1 = 
|item2 = 
|item3 = 
|song = 
|quote = 
|furn1 = 
|furn2 = 
...
|inter1 = 
|inter2 = 
...
|cloth1 = 
|cloth2 = 
...
|plant1= 
|plant2= 
...
|house1 = 
|house2 = 
...
|start-house = 
}}

Maple Example

Happy Home Designer client information
Maple's Happy Home Designer icon
Waste not, want not.
Maple
Thought bubble Wouldn't it be fun to be surrounded by teddy bears?
Client's vision A plush bear den.
Required items 30pxPapa bear
30pxMama bear
30pxranch dresser
Favorite song  Neapolitan
Unlocked items
Furniture:
  • x29px ranch bed
  • x29px ranch table
  • x29px ranch chair
  • x29px ranch armchair
  • x29px ranch couch
  • x29px ranch wardrobe
  • x29px ranch dresser
  • x29px ranch bookcase
  • x29px ranch hutch
  •  pancakes
  • x29px Baby bear
  • x29px Mama bear
  • x29px Papa bear
  • x29px wooden bear
  •  Neapolitan
  •  beehive
  • x29px Maple's pic
  • x29px ranch wall rack
  • Interior:
  • x29px ranch rug
  • x29px rococo wall
  • Clothing:
  • x29px bear costume
  • x29px bear-costume pants
  • x29px bear cap
  • x29px petal parasol
  • Starting house: House of Maple HHD Exterior.png
    {{HHDVillagerInfo
    |name = Maple
    |image = Maple HHD Villager Icon.png
    |example = Maple HHD Request.png
    |birthday-month = June
    |birthday = 15
    |sign = Gemini
    |personality = Normal
    |catchphrase = honey
    |top = dapper tee
    |umbrella = petal parasol
    |thought = Wouldn't it be fun to be <span style="color:hotpink">surrounded by teddy bears</span>?
    |request = A plush bear den.
    |item1 = Papa bear
    |item2 = Mama bear
    |item3 = ranch dresser
    |song = Neapolitan
    |quote = Waste not, want not.
    |furn1 = ranch bed
    |furn2 = ranch table
    |furn3 = ranch chair
    |furn4 = ranch armchair
    |furn5 = ranch couch
    |furn6 = ranch wardrobe
    |furn7 = ranch dresser
    |furn8 = ranch bookcase
    |furn9 = ranch hutch
    |furn10 = pancakes
    |furn11 = Baby bear
    |furn12 = Mama bear
    |furn13 = Papa bear
    |furn14 = wooden bear
    |furn15 = Neapolitan
    |furn16 = beehive
    |furn17 = Maple's pic
    |furn18 = ranch wall rack
    |inter1 = ranch rug
    |inter2 = rococo wall
    |cloth1 = bear costume
    |cloth2 = bear-costume pants
    |cloth3 = bear cap
    |cloth4 = petal parasol
    |start-house = Maple
    }}