Difference between revisions of "Template:NHHouse"
From Nookipedia, the Animal Crossing wiki
HylianAngel (talk | contribs) m |
AlexBot2004 (talk | contribs) m (Using "×" instead of "x") |
||
(27 intermediate revisions by 4 users not shown) | |||
Line 17: | Line 17: | ||
|music_image = String | |music_image = String | ||
|music_image_url = String | |music_image_url = String | ||
+ | |house_shape = Integer | ||
+ | |house_shape_image = String | ||
+ | |house_shape_url = String | ||
+ | |house_roof = String | ||
+ | |house_roof_image = String | ||
+ | |house_roof_url = String | ||
+ | |house_siding = String | ||
+ | |house_siding_image = String | ||
+ | |house_siding_url = String | ||
+ | |house_door = String | ||
+ | |house_door_image = String | ||
+ | |house_door_url = String | ||
|items = Text | |items = Text | ||
|notes = Wikitext string | |notes = Wikitext string | ||
}} | }} | ||
[[Category:Cargo templates]]</noinclude><includeonly> | [[Category:Cargo templates]]</noinclude><includeonly> | ||
− | {{#cargo_store: | + | {{#ifeq:{{{store-cargo|}}}|No||{{#ifeq:{{NAMESPACE}}||{{#cargo_store: |
_table=nh_house | _table=nh_house | ||
− | |villager = {{ | + | |villager = {{{name|{{PAGENAME}}}}} |
− | |name_sort = {{{name-sort|{{ | + | |name_sort = {{{name-sort|{{{name|{{PAGENAME}}}}}}}} |
|interior_image = {{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}} | |interior_image = {{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}} | ||
|interior_image_url = {{filepath:{{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}}}} | |interior_image_url = {{filepath:{{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}}}} | ||
Line 37: | Line 49: | ||
|music = {{{music|}}} | |music = {{{music|}}} | ||
|music_note = {{{music-note|}}} | |music_note = {{{music-note|}}} | ||
− | |music_image = {{#if:{{{music-img|}}}|{{{music-img|}}}|{{{ | + | |music_image = {{#if:{{{music-img|}}}|{{{music-img|}}}|{{{music|}}}_NH_Texture.png}} |
− | |music_image_url = {{filepath:{{#if:{{{music-img|}}}|{{{music-img|}}}|{{{ | + | |music_image_url = {{filepath:{{#if:{{{music-img|}}}|{{{music-img|}}}|{{{music|}}}_NH_Texture.png}}}} |
− | |items = [ {{#forargs: furn | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} {"name": "{{{furn{{#var: key}}|}}}", "count": {{{f{{#var: key}}-count|1}}}, "img": "{{{f{{#var: key}}- | + | |house_shape = {{{house-shape|}}} |
+ | |house_shape_image = {{#if:{{{house-shape-img|}}}|{{{house-shape-img|}}}|Villager_House_{{{house-shape|}}}_NH_Icon.png}} | ||
+ | |house_shape_url = {{filepath:{{#if:{{{house-shape-img|}}}|{{{house-shape-img|}}}|Villager_House_{{{house-shape|}}}_NH_Icon.png}}}} | ||
+ | |house_roof = {{{house-roof|}}} | ||
+ | |house_roof_image = {{#if:{{{house-roof-img|}}}|{{{house-roof-img|}}}|{{{house-roof|}}}_(Villager_House_{{{house-shape|}}})_NH_Icon.png}} | ||
+ | |house_roof_url = {{filepath:{{#if:{{{house-roof-img|}}}|{{{house-roof-img|}}}|{{{house-roof|}}}_(Villager_House_{{{house-shape|}}})_NH_Icon.png}}}} | ||
+ | |house_siding = {{{house-siding|}}} | ||
+ | |house_siding_image = {{#if:{{{house-siding-img|}}}|{{{house-siding-img|}}}|{{{house-siding|}}}_(Villager_House_{{{house-shape|}}})_NH_Icon.png}} | ||
+ | |house_siding_url = {{filepath:{{#if:{{{house-siding-img|}}}|{{{house-siding-img|}}}|{{{house-siding|}}}_(Villager_House_{{{house-shape|}}})_NH_Icon.png}}}} | ||
+ | |house_door = {{{house-door|}}} | ||
+ | |house_door_image = {{#if:{{{house-door-img|}}}|{{{house-door-img|}}}|{{{house-door|}}}_({{#switch:{{{house-shape|}}}|1|3=Rectangular|2|4=Round}})_NH_Icon.png}} | ||
+ | |house_door_url = {{filepath:{{#if:{{{house-door-img|}}}|{{{house-door-img|}}}|{{{house-door|}}}_({{#switch:{{{house-shape|}}}|1|3=Rectangular|2|4=Round}})_NH_Icon.png}}}} | ||
+ | |items = [ {{#forargs: furn | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} {"name": "{{{furn{{#var: key}}|}}}", "count": {{{f{{#var: key}}-count|1}}}, "image_url": "{{filepath:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}{{#if: {{{f{{#var: key }}-variation|}}} | {{#if: {{{f{{#var: key }}-pattern|}}} | _({{{f{{#var: key }}-variation|}}}_-_{{{f{{#var: key }}-pattern|}}}) | _({{{f{{#var: key }}-variation|}}}) }} | {{#if: {{{f{{#var: key }}-pattern|}}} | _({{{f{{#var: key }}-pattern|}}}) | }} }}_NH_Icon.png}}}}}", "link": "{{canonicalurl:{{{f{{#var: key }}-link|Item:{{{furn{{#var: key}}|}}} (New Horizons)}}}}}", "note": "{{{furn{{#var: key }}-note|}}}"} | ||
}} ] | }} ] | ||
|notes = | |notes = | ||
− | }}</includeonly><div class="house-flex-container" style="width: max-content; background: #B3DAE7; border: 2px solid #8CBCD1; text-align: center; {{roundy|8px}};"> | + | }}}}}}</includeonly><div class="house-flex-container" style="max-width: max-content; background: #B3DAE7; border: 2px solid #8CBCD1; text-align: center; {{roundy|8px}};"> |
− | <div class="house-flex-item house-img" style="padding:5px;">[[{{#if:{{{ext|}}}|File:{{{ext|}}}|File:House of {{PAGENAME}} NH Model.png}}]]</div> | + | <div class="house-flex-item house-img" style="padding:5px;">[[{{#if:{{{ext|}}}|File:{{{ext|}}}|File:House of {{PAGENAME}} NH Model.png}}|Exterior of {{{name|{{PAGENAME}}}}}'s house in Animal Crossing: New Horizons]]</div> |
− | <div class="house-flex-item house-img" style="padding:5px;">{{#if:{{{int|}}}|[[File:{{{int|}}}]]|[[File:nia blue upload.png|link=Special:Upload]]}}</div> | + | <div class="house-flex-item house-img" style="padding:5px;">{{#if:{{{int|}}}|[[File:{{{int|}}}|Interior of {{{name|{{PAGENAME}}}}}'s house in Animal Crossing: New Horizons]]|[[File:nia blue upload.png|link=Special:Upload]]}}</div> |
<div class="house-flex-item" style="display: table-cell; vertical-align: middle;"> | <div class="house-flex-item" style="display: table-cell; vertical-align: middle;"> | ||
− | {| style="width: 360px; padding:0px 6px 6px 3px; text-align:right;" | + | {| style="max-width: 360px; padding:0px 6px 6px 3px; text-align:right;" |
+ | | colspan=2 style="text-align:center" | '''Exterior:''' | ||
+ | |- | ||
+ | | style="padding: 3px; vertical-align:top;" | '''Shape:''' | ||
+ | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left; {{roundytop|8px}}" | {{#if:{{{house-shape-img|}}} | [[File:{{{house-shape-img|}}}|60px|House shape #{{{house-shape|}}}|link=]] | [[File:Villager House {{{house-shape|}}}_NH_Icon cropped.png|50px|House shape #{{{house-shape|}}}|link=]]}} | ||
+ | |- | ||
+ | | style="padding: 3px; vertical-align:top;" | '''Roof:''' | ||
+ | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | {{#if:{{{house-roof-img|}}} | [[File:{{{house-roof-img|}}}|30px|alt=|link=]] | [[File:{{#invoke:TitleCase|main|{{{house-roof|}}}}}_(Villager House {{{house-shape|}}})_NH_Icon.png|30px|alt=|link=]]}} <span style="font-size:.85em">{{#invoke:SentenceCase|main|{{{house-roof|}}}}}</span> | ||
+ | |- | ||
+ | | style="padding: 3px; vertical-align:top;" | '''Siding:''' | ||
+ | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | {{#if:{{{house-siding-img|}}} | [[File:{{{house-siding-img|}}}|30px|alt=|link=]] | [[File:{{#invoke:TitleCase|main|{{{house-siding|}}}}}_(Villager House {{{house-shape|}}})_NH_Icon.png|30px|alt=|link=]]}} <span style="font-size:.85em">{{#invoke:SentenceCase|main|{{{house-siding|}}}}}</span> | ||
+ | |- | ||
+ | | style="padding: 3px; vertical-align:top;" | '''Door:''' | ||
+ | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left; {{roundybl|8px}}; {{roundybr|8px}}" | {{#if:{{{house-door-img|}}} | [[File:{{{house-door-img|}}}|30px|alt=|link=]] | [[File:{{#invoke:TitleCase|main|{{{house-door|}}}}}_({{#switch:{{{house-shape|}}}|1|3=Rectangular|2|4=Round}})_NH_Icon.png|30px|alt=|link=]]}} <span style="font-size:.85em">{{#invoke:SentenceCase|main|{{{house-door|}}}}}</span> | ||
+ | |- | ||
+ | | colspan=2 style="text-align:center" | '''Interior:''' | ||
+ | |- | ||
| style="padding: 3px; vertical-align:top;" | '''Items:''' | | style="padding: 3px; vertical-align:top;" | '''Items:''' | ||
− | | style="background: #ffffff; padding: 0 3px 0 7px | + | | style="background: #ffffff; padding: 0 3px 0 7px; text-align:{{#if:{{{furniture|}}}|left|center}}; {{roundytop|8px}}" | {{#if:{{{furniture|}}}|{{{furniture|}}}<includeonly>[[Category:Pages with an outdated house template]]</includeonly>| |
<div style="display:inline-block;">{{(!}} style{{=}}"text-align:left;" | <div style="display:inline-block;">{{(!}} style{{=}}"text-align:left;" | ||
{{#forargs: furn | {{#forargs: furn | ||
Line 54: | Line 94: | ||
| value | | value | ||
| <nowiki /> | | <nowiki /> | ||
− | {{!}} [[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}{{#if: {{{f{{#var: key }}-variation|}}} | {{#if: {{{f{{#var: key }}-pattern|}}} | _({{{f{{#var: key }}-variation|}}}_-_{{{f{{#var: key }}-pattern|}}}) | _({{{f{{#var: key }}-variation|}}}) }} | {{#if: {{{f{{#var: key }}-pattern|}}} | _({{{f{{#var: key }}-pattern|}}}) | }} }}_NH_Icon.png}}}|24px|link= | + | {{!}} [[File:{{{f{{#var: key }}-img|{{#invoke:TitleCase|main|{{{furn{{#var: key }}|}}}}}{{#if: {{{f{{#var: key }}-variation|}}} | {{#if: {{{f{{#var: key }}-pattern|}}} | _({{#invoke:TitleCase|main|{{{f{{#var: key }}-variation|}}}}}_-_{{#invoke:TitleCase|main|{{{f{{#var: key }}-pattern|}}}}}) | _({{#invoke:TitleCase|main|{{{f{{#var: key }}-variation|}}}}}) }} | {{#if: {{{f{{#var: key }}-pattern|}}} | _({{#invoke:TitleCase|main|{{{f{{#var: key }}-pattern|}}}}}) | }} }}_NH_Icon.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{f{{#var: key }}-link|Item:{{{furn{{#var: key }}|}}} (New Horizons)}}}|{{#invoke:SentenceCase|main|{{{furn{{#var: key }}|}}}}}]]{{#if: {{{f{{#var: key }}-count|}}} | <nowiki /> (×{{{f{{#var: key }}-count|}}}) | }}{{#if: {{{f{{#var: key }}-note|}}} | {{Note|{{{f{{#var: key }}-note|}}}}} }}</span> |
{{#ifexpr: {{#var: key }} mod 2 | | {{!-}} }} | {{#ifexpr: {{#var: key }} mod 2 | | {{!-}} }} | ||
}} | }} | ||
Line 60: | Line 100: | ||
}} | }} | ||
|- | |- | ||
− | | style="padding: 3px; vertical-align:top;" | ''' | + | | style="padding: 3px; vertical-align:top;" | '''Wall:''' |
− | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | {{#if:{{{wallpaper-img|}}} | [[File:{{{wallpaper-img|}}}|24px|link=]] | [[File:{{{wallpaper|}}}_NH_Icon.png|24px|link= | + | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | {{#if:{{{wallpaper-img|}}} | [[File:{{{wallpaper-img|}}}|24px|alt=|link=]] | [[File:{{#invoke:TitleCase|main|{{{wallpaper|}}}}}_NH_Icon.png|24px|alt=|link=]]}} <span style="font-size:.85em">[[Item:{{{wallpaper|}}} (New Horizons)|{{#invoke:SentenceCase|main|{{{wallpaper|}}}}}]]</span> |
|- | |- | ||
| style="padding: 3px; vertical-align:top;" | '''Floor:''' | | style="padding: 3px; vertical-align:top;" | '''Floor:''' | ||
− | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | {{#if:{{{floor-img|}}} | [[File:{{{floor-img|}}}|24px|link=]] | [[File:{{{floor|}}}_NH_Icon.png|24px|link= | + | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | {{#if:{{{floor-img|}}} | [[File:{{{floor-img|}}}|24px|alt=|link=]] | [[File:{{#invoke:TitleCase|main|{{{floor|}}}}}_NH_Icon.png|24px|alt=|link=]]}} <span style="font-size:.85em">[[Item:{{{floor|}}} (New Horizons)|{{#invoke:SentenceCase|main|{{{floor|}}}}}]]</span> |
|- | |- | ||
| style="padding: 3px; vertical-align:top;" | '''Music:''' | | style="padding: 3px; vertical-align:top;" | '''Music:''' | ||
− | | style="background: #ffffff; padding: 0 0 0 10px; text-align:left; {{roundybl|8px}}; {{roundybr|8px}}" | {{#if:{{{music|}}}|[[File:{{{music|}}}_NH_Texture.png|24px|link= | + | | style="background: #ffffff; padding: 0 0 0 10px; text-align:left; {{roundybl|8px}}; {{roundybr|8px}}" | {{#if:{{{music|}}}|[[File:{{{music|}}}_NH_Texture.png|24px|alt=|link=]] <span style="font-size:.85em">[[{{{music|}}}]]|No music}} {{#if: {{{music-note|}}} | {{#ifeq:{{{music-note|}}}|Does not contain a stereo initially|{{Note|name=no-stereo|{{{music-note|}}}}}|{{Note|{{{music-note|}}}}}}}}} |
|} | |} | ||
</div> | </div> | ||
</div><includeonly>{{#if:{{{wallpaper|}}}||[[Category:ACNH house info missing]]}}{{#if:{{{floor|}}}||[[Category:ACNH house info missing]]}}{{#if:{{{music|}}}||[[Category:ACNH house info missing]]}}</includeonly><noinclude><br>{{Documentation}}</noinclude> | </div><includeonly>{{#if:{{{wallpaper|}}}||[[Category:ACNH house info missing]]}}{{#if:{{{floor|}}}||[[Category:ACNH house info missing]]}}{{#if:{{{music|}}}||[[Category:ACNH house info missing]]}}</includeonly><noinclude><br>{{Documentation}}</noinclude> |
Revision as of 00:39, April 26, 2024
This template defines the table "nh_house". View table.
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.