Difference between revisions of "Template:HHPVillagerInfo"

From Nookipedia, the Animal Crossing wiki
(extending to other categories)
(changing list of unlocked items format to become one column on mobile; more columns on a desktop)
Line 65: Line 65:
 
{{#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:80%;" align="left" {{!}}
{{(!}} style{{=}}"text-align:left;"
+
{{(!}} style{{=}}"text-align:left;" {{!}}
 +
{{Columns-list|colwidth=150px|
 
{{#forargs: furn
 
{{#forargs: furn
 
  | key
 
  | key
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}{{#if:{{{f{{#var: key }}-var|}}}|_({{{f{{#var: key }}-var|}}})}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{f{{#var: key }}|{{I|{{{furn{{#var: key }}|}}}|New Horizons}}}}}&nbsp;&nbsp;
+
<li style="list-style: none;">[[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}{{#if:{{{f{{#var: key }}-var|}}}|_({{{f{{#var: key }}-var|}}})}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{f{{#var: key }}|{{I|{{{furn{{#var: key }}|}}}|New Horizons}}}}}</li>
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
+
}}
 
}}
 
}}
 
{{!)}}}}
 
{{!)}}}}
Line 79: Line 80:
 
{{!}} 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}};" align="left" {{!}}  
{{(!}} style{{=}}"text-align:left;"
+
{{(!}} style{{=}}"text-align:left;" {{!}}
 +
{{Columns-list|colwidth=150px|
 
{{#forargs: inter
 
{{#forargs: inter
 
  | key
 
  | key
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{in{{#var: key }}-img|{{{inter{{#var: key }}|}}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{in{{#var: key }}|{{I|{{{inter{{#var: key }}|}}}|New Horizons}}}}}&nbsp;&nbsp;
+
<li style="list-style: none;">[[File:{{{in{{#var: key }}-img|{{{inter{{#var: key }}|}}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{in{{#var: key }}|{{I|{{{inter{{#var: key }}|}}}|New Horizons}}}}}</li>
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
+
}}
 
}}
 
}}
 
{{!)}}}}
 
{{!)}}}}
Line 92: Line 94:
 
{{!}} 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}};" align="left" {{!}}  
{{(!}} style{{=}}"text-align:left;"
+
{{(!}} style{{=}}"text-align:left;" {{!}}
 +
{{Columns-list|colwidth=150px|
 
{{#forargs: cloth
 
{{#forargs: cloth
 
  | key
 
  | key
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{c{{#var: key }}-img|{{{cloth{{#var: key }}|}}}{{#if:{{{c{{#var: key }}-var|}}}|_({{{c{{#var: key }}-var|}}})}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{c{{#var: key }}|{{I|{{{cloth{{#var: key }}|}}}|New Horizons}}}}}&nbsp;&nbsp;
+
<li style="list-style: none;">[[File:{{{c{{#var: key }}-img|{{{cloth{{#var: key }}|}}}{{#if:{{{c{{#var: key }}-var|}}}|_({{{c{{#var: key }}-var|}}})}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{c{{#var: key }}|{{I|{{{cloth{{#var: key }}|}}}|New Horizons}}}}}</li>
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} }}
+
}}
 
}}
 
}}
 
{{!)}}}}
 
{{!)}}}}
Line 105: Line 108:
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Other items:'''
 
{{!}} style="max-width: 100px; padding: 3px; text-align:right; vertical-align:top;" {{!}} '''Other items:'''
 
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}  
 
{{!}} style="background: #ffffff; padding: 0 0 0 9px; {{roundy}};" align="left" {{!}}  
{{(!}} style{{=}}"text-align:left;"
+
{{(!}} style{{=}}"text-align:left;" {{!}}
 +
{{Columns-list|colwidth=150px|
 
{{#forargs: otheritems
 
{{#forargs: otheritems
 
  | key
 
  | key
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{oi{{#var: key }}-img|{{{otheritems{{#var: key }}|}}}{{#if:{{{oi{{#var: key }}-var|}}}|_({{{oi{{#var: key }}-var|}}})}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{oi{{#var: key }}|{{I|{{{otheritems{{#var: key }}|}}}|New Horizons}}}}}&nbsp;&nbsp;
+
<li style="list-style: none;">[[File:{{{oi{{#var: key }}-img|{{{otheritems{{#var: key }}|}}}{{#if:{{{oi{{#var: key }}-var|}}}|_({{{oi{{#var: key }}-var|}}})}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{oi{{#var: key }}|{{I|{{{otheritems{{#var: key }}|}}}|New Horizons}}}}}</li>
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}}}}
+
}}
 
}}
 
}}
 
{{!)}}}}
 
{{!)}}}}
Line 118: Line 122:
 
{{!}} 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}};" align="left" {{!}}  
{{(!}} style{{=}}"text-align:left;"
+
{{(!}} style{{=}}"text-align:left;" {{!}}
 +
{{Columns-list|colwidth=150px|
 
{{#forargs: plant
 
{{#forargs: plant
 
  | key
 
  | key
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{p{{#var: key }}-img|{{{plant{{#var: key }}|}}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{p{{#var: key }}|{{I|{{{plant{{#var: key }}|}}}|New Horizons}}}}}&nbsp;&nbsp;
+
<li style="list-style: none;">[[File:{{{p{{#var: key }}-img|{{{plant{{#var: key }}|}}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{p{{#var: key }}|{{I|{{{plant{{#var: key }}|}}}|New Horizons}}}}}</li>
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}}}}
+
}}
 
}}
 
}}
 
{{!)}}}}
 
{{!)}}}}
Line 131: Line 136:
 
{{!}} 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}};" align="left" {{!}}  
{{(!}} style{{=}}"text-align:left;"
+
{{(!}} style{{=}}"text-align:left;" {{!}}
 +
{{Columns-list|colwidth=150px|
 
{{#forargs: house
 
{{#forargs: house
 
  | key
 
  | key
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{h{{#var: key }}-img|{{{house{{#var: key }}|}}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{h{{#var: key }}|{{I|{{{house{{#var: key }}|}}}|New Horizons}}}}}&nbsp;&nbsp;
+
<li style="list-style: none;">[[File:{{{h{{#var: key }}-img|{{{house{{#var: key }}|}}}}}}_NH_Icon.png|30px|alt=|link=]]&nbsp;{{{h{{#var: key }}|{{I|{{{house{{#var: key }}|}}}|New Horizons}}}}}</li>
{{#ifexpr: {{#var: key }} mod 3 | | {{!-}} &nbsp;}}
+
}}
 
}}
 
}}
 
{{!)}}}}
 
{{!)}}}}
 
|-
 
|-
 
|}</div>{{clear}}<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with Happy Home Paradise info]] {{#if:{{{special-character|}}}||{{#if:{{{thought|}}}||[[Category:Villagers with missing Happy Home Paradise thought bubble info]]}} {{#if:{{{request|}}}||[[Category:Villagers with missing Happy Home Paradise request info]]}} {{#if:{{{item1|}}}||[[Category:Villagers with missing Happy Home Paradise required items]]}} {{#if:{{{song|}}}||[[Category:Villagers with missing Happy Home Paradise song info]]}}}} {{#if:{{{furn1|}}}||[[Category:Villagers with missing Happy Home Paradise unlocked item info]]}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
|}</div>{{clear}}<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with Happy Home Paradise info]] {{#if:{{{special-character|}}}||{{#if:{{{thought|}}}||[[Category:Villagers with missing Happy Home Paradise thought bubble info]]}} {{#if:{{{request|}}}||[[Category:Villagers with missing Happy Home Paradise request info]]}} {{#if:{{{item1|}}}||[[Category:Villagers with missing Happy Home Paradise required items]]}} {{#if:{{{song|}}}||[[Category:Villagers with missing Happy Home Paradise song info]]}}}} {{#if:{{{furn1|}}}||[[Category:Villagers with missing Happy Home Paradise unlocked item info]]}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 22:52, December 22, 2021

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

Unlocked items

Template documentation (view)


Usage

General Example

Unlocked items
{{HHPVillagerInfo
|name = 
|thought = 
|request = 
|item1 = 
|img1 = 
|item2 = 
|img2 = 
|item3 = 
|img3 = 
|song = 
}}

Maple Example

Maple
Thought bubble I think a home with lots of plush bears would be so fun.
Client's vision A Bountiful Bear Bungalow
Required items Papa bear
Mama bear
ranch wardrobe
Favorite song  Neapolitan
Unlocked items
Furniture:
Interior:
Clothing:
Other items:
{{HHPVillagerInfo
|thought = I think a home with lots of <span style="color:dodgerblue">plush bears</span> would be so fun.
|request = A Bountiful Bear Bungalow
|item1 = Papa bear
|img1 = Papa Bear (Cream - None)
|item2 = Mama bear
|img2 = Mama Bear (Cream - None)
|item3 = ranch wardrobe
|img3 = Ranch Wardrobe (Natural)
|song = Neapolitan
|furn1 = garden chair
|f1-var = White
|furn2 = ranch chair
|f2-var = Natural
|furn3 = log stool
|f3-var = Dark wood
|furn4 = double sofa
|f4-var = Red
|furn5 = log bench
|f5-var = Dark wood
|furn6 = wild log bench
|f6-var = Dark wood
|furn7 = garden table
|f7-var = White
|furn8 = ranch tea table
|f8-var = Natural - None
|furn9 = ranch lowboard
|f9-var = Natural - None
|furn10 = log dining table
|f10-var = Dark wood - None
|furn11 = log round table
|f11-var = Dark wood - none
|furn12 = camping cot
|f12-var = Green
|furn13 = hammock
|f13-var = Brown - Colorful
|furn14 = sleeping bag
|f14-var = Green
|furn15 = ranch wardrobe
|f15-var = Natural
|furn16 = clothes closet
|f16-var = White
|furn17 = log decorative shelves
|f17-var = Dark wood - None
|furn18 = ranch cupboard
|f18-var = Natural
|furn19 = ranch kitchen
|f19-var = Natural
|furn20 = Mama bear
|f20-var = Cream - None
|furn21 = Papa bear
|f21-var = Cream - None
|furn22 = giant teddy bear
|f22-var = Cream - None
|furn23 = Mama panda
|furn24 = Papa panda
|furn25 = kids' tent
|f25-var = White
|furn26 = campfire cookware
|furn27 = picnic basket
|f27-var = Red
|furn28 = portable radio
|f28-var = White
|furn29 = camp stove
|f29-var = Yellow
|furn30 = Baby bear
|f30-var = Cream - None
|furn31 = Baby panda
|furn32 = Maple's photo
|f32-var = Natural wood
|furn33 = Maple's poster
|inter1 = cabin wall
|inter2 = tent wall
|inter3 = paw-print wall
|inter4 = glowing-moss forest wall
|inter5 = light herringbone flooring
|inter6 = natural-block flooring
|inter7 = tent flooring
|inter8 = glowing-moss flooring
|inter9 = simple medium avocado mat
|inter10 = red vinyl sheet
|inter11 = yellow vinyl sheet
|inter12 = glowing-moss rug
|inter13 = round glowing-moss rug
|cloth1 = bear tee
|cloth2 = bear costume
|c2-var = Brown
|cloth3 = bear costume
|c3-var = Black
|cloth4 = bear costume
|c4-var = Pink
|cloth5 = bear costume
|c5-var = Blue
|cloth6 = bear cap
|c6-var = Brown
|cloth7 = bear cap
|c7-var = Black
|cloth8 = bear cap
|c8-var = Pink
|cloth9 = bear cap
|c9-var = Blue
|cloth10 = bear umbrella
|cloth11 = panda umbrella
|otheritems1 = Neapolitan
|oi1 = [[Neapolitan]]
|otheritems2 = wasp nest
}}