Difference between revisions of "Template:HHDVillagerInfo"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) m (lowercasing "share") |
PanchamBro (talk | contribs) (moving housemate info to a row; changing colors depending if it is a special character) |
||
Line 34: | Line 34: | ||
|housemates = {{{housemates|}}} | |housemates = {{{housemates|}}} | ||
}}}}</includeonly> | }}}}</includeonly> | ||
− | <div style="display: grid; vertical-align: top; background: #{{{ | + | <div style="display: grid; vertical-align: top; background: #{{#if:{{{special-character|}}}|c6f570|93C5D9}}; margin-left: 10px; margin-bottom: 10px; {{roundy|15px}} border: 3px solid #{{#if:{{{special-character|}}}|c6f570|93C5D9}}; max-width: 700px; padding: 2px; {{#if:{{{minwidth|}}}|min-width: {{{minwidth}}}}};"> |
{{#if: {{{collapse|}}} | <div class="infobox mw-customtoggle-{{{collapse-id|1}}}">Click to toggle.</div>}} | {{#if: {{{collapse|}}} | <div class="infobox mw-customtoggle-{{{collapse-id|1}}}">Click to toggle.</div>}} | ||
<div style="text-align: center">'''[[Animal Crossing: Happy Home Designer/Client information|{{HHD|nolink|short}} client information]]'''</div> | <div style="text-align: center">'''[[Animal Crossing: Happy Home Designer/Client information|{{HHD|nolink|short}} client information]]'''</div> | ||
Line 50: | Line 50: | ||
<div class="flex-item"> | <div class="flex-item"> | ||
{| style="display: inline-table; width: 100%; height: 100%;" | | {| style="display: inline-table; width: 100%; height: 100%;" | | ||
− | ! colspan="3" style="background: #{{{ | + | ! colspan="3" style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; {{roundytl|9px}}; {{roundytr|10px}}; text-align:center; | {{{name|{{PAGENAME}}}}} {{#if:{{{name-note|}}}|({{{name-note|}}})}} |
|- | |- | ||
|- {{#if:{{{special-character|}}}|| | |- {{#if:{{{special-character|}}}|| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; width:40%" {{!}} Birthday |
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center;" {{!}} Personality |
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center;" {{!}} Catchphrase |
{{!-}} | {{!-}} | ||
{{!}} style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{!}} {{{birthday-month|{{#cargo_query:table=villager|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}} [[File:Starsign {{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}} NH Icon.png|32px|{{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}|link={{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]] | {{!}} style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{!}} {{{birthday-month|{{#cargo_query:table=villager|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}} [[File:Starsign {{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}} NH Icon.png|32px|{{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}|link={{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]] | ||
Line 62: | Line 62: | ||
{{!}} style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{!}} {{{catchphrase|{{#cargo_query:table=nl_villager|fields=catchphrase|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{#if:{{{catchphrase-note|}}}|{{Note|{{{catchphrase-note|}}}}}}}{{#if:{{{catchphrase2|}}}|<br>{{{catchphrase2|}}} {{#if:{{{catchphrase2-note|}}}|{{Note|{{{catchphrase2-note|}}}}}}}}} | {{!}} style="background:#ffffff; padding:0 0 0 6px; text-align:center;" {{!}} {{{catchphrase|{{#cargo_query:table=nl_villager|fields=catchphrase|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{#if:{{{catchphrase-note|}}}|{{Note|{{{catchphrase-note|}}}}}}}{{#if:{{{catchphrase2|}}}|<br>{{{catchphrase2|}}} {{#if:{{{catchphrase2-note|}}}|{{Note|{{{catchphrase2-note|}}}}}}}}} | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center;" {{!}} '''Default clothing''' |
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:{{{top|{{#cargo_query:table=nl_villager|fields=clothing|where=_pageTitle="{{PAGENAME}}"|no html}}}}} HHD Icon.png|30px|link=]] {{{top|{{#cargo_query:table=nl_villager|fields=clothing|where=_pageTitle="{{PAGENAME}}"|no html}}}}} | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:{{{top|{{#cargo_query:table=nl_villager|fields=clothing|where=_pageTitle="{{PAGENAME}}"|no html}}}}} HHD Icon.png|30px|link=]] {{{top|{{#cargo_query:table=nl_villager|fields=clothing|where=_pageTitle="{{PAGENAME}}"|no html}}}}} | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; width:40%" {{!}} '''Default umbrella''' |
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:{{{umbrella|{{#cargo_query:table=nl_villager|fields=umbrella|where=_pageTitle="{{PAGENAME}}"|no html}}}}} HHD Icon.png|30px|link=]] {{{umbrella|{{#cargo_query:table=nl_villager|fields=umbrella|where=_pageTitle="{{PAGENAME}}"|no html}}}}}}} | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:{{{umbrella|{{#cargo_query:table=nl_villager|fields=umbrella|where=_pageTitle="{{PAGENAME}}"|no html}}}}} HHD Icon.png|30px|link=]] {{{umbrella|{{#cargo_query:table=nl_villager|fields=umbrella|where=_pageTitle="{{PAGENAME}}"|no html}}}}}}} | ||
|- {{#if:{{{special-character|}}}| | |- {{#if:{{{special-character|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; width:40%" {{!}} '''Birthday''' |
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{birthday-month|{{#cargo_query:table=special_character|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}} [[File:Starsign {{{sign|{{#cargo_query:table=special_character|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}} NH Icon.png|32px|{{{sign|{{#cargo_query:table=special_character|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}|link={{{sign|{{#cargo_query:table=special_character|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]] | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{birthday-month|{{#cargo_query:table=special_character|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}} [[File:Starsign {{{sign|{{#cargo_query:table=special_character|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}} NH Icon.png|32px|{{{sign|{{#cargo_query:table=special_character|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}|link={{{sign|{{#cargo_query:table=special_character|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]] | ||
{{!-}} {{#if:{{{umbrella|}}}| | {{!-}} {{#if:{{{umbrella|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; width:40%" {{!}} '''Default umbrella''' |
− | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:{{{umbrella|}}} HHD Icon.png|30px|link=]] {{{umbrella|}}}}}}} | + | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} [[File:{{{umbrella|}}} HHD Icon.png|30px|link=]] {{{umbrella|}}}}} |
+ | {{!-}} {{#if:{{{housemates|}}}| | ||
+ | {{!-}} | ||
+ | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; width:40%" {{!}} '''Shares house with''' | ||
+ | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#invoke: Items | outputHousemates | {{{housemates|}}} }}}}}} | ||
|- | |- | ||
− | {{!}} colspan="3" style="background: #{{{ | + | {{!}} colspan="3" style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; | '''House request''' |
|- {{#if:{{{thought|}}}| | |- {{#if:{{{thought|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center; width:40%" {{!}} '''Thought bubble''' |
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{thought|}}}}}{{#if:{{{thought-note|}}}|{{Note|{{{thought-note|}}}}}}} | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{thought|}}}}}{{#if:{{{thought-note|}}}|{{Note|{{{thought-note|}}}}}}} | ||
|- {{#if:{{{request|}}}| | |- {{#if:{{{request|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center;" {{!}} '''Client's vision''' |
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{request|}}}}} | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{{request|}}}}} | ||
|- {{#if:{{{item1|}}}| | |- {{#if:{{{item1|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|C8E2ED}}; text-align:center;" {{!}} '''Required items''' |
{{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#if:{{{items|}}}|{{{items|-}}}|{{#forargs: item | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px;" {{!}} {{#if:{{{items|}}}|{{{items|-}}}|{{#forargs: item | ||
| key | | key | ||
Line 94: | Line 98: | ||
|- {{#if:{{{song|}}}| | |- {{#if:{{{song|}}}| | ||
{{!-}} | {{!-}} | ||
− | ! style="background: #{{{ | + | ! style="background: #{{#if:{{{special-character|}}}|e3fab7|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|x29px|alt=|link=]] [[{{{song-link|{{{song|}}}}}}|{{{song|}}}]]}} | {{!}} colspan="2" style="background:#ffffff; padding:0 0 0 6px; {{roundybr|9px}}" {{!}} [[File:{{{song|}}}_(Album Cover)_HHD_Icon.png|x29px|alt=|link=]] [[{{{song-link|{{{song|}}}}}}|{{{song|}}}]]}} | ||
|} | |} |
Revision as of 16:32, October 13, 2022
This template defines the table "hhd_villager". View table.
HHDVillagerInfo | ||
---|---|---|
Birthday | Personality | Catchphrase |
No results [[File:Starsign No results NH Icon.png|32px|No results|link=No results]] | [[No results]] | No results |
Default clothing | [[File:No results HHD Icon.png|30px|link=]] No results | |
Default umbrella | [[File:No results HHD Icon.png|30px|link=]] No results | |
House request |
Unlocked items |
---|
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.
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
Maple | ||
---|---|---|
Birthday | Personality | Catchphrase |
June 15 | Normal | honey |
Default clothing | 30px dapper tee | |
Default umbrella | 30px petal parasol | |
House request | ||
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 |
{{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 }}