Difference between revisions of "Template:PGHouse"
From Nookipedia, the Animal Crossing wiki
m (applying only on main namespace) |
AlexBot2004 (talk | contribs) m (Using "×" instead of "x") |
||
(21 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
_table=pg_house | _table=pg_house | ||
|villager = String | |villager = String | ||
+ | |islander = Boolean | ||
|game = List (,) of String | |game = List (,) of String | ||
|interior_image = String | |interior_image = String | ||
Line 16: | Line 17: | ||
|music_note = String | |music_note = String | ||
|items = Text | |items = Text | ||
+ | |request_items = Text | ||
|notes = Wikitext string | |notes = Wikitext string | ||
}} | }} | ||
Line 21: | Line 23: | ||
{{#ifeq:{{NAMESPACE}}||{{#cargo_store: | {{#ifeq:{{NAMESPACE}}||{{#cargo_store: | ||
_table=pg_house | _table=pg_house | ||
− | |villager = {{ | + | |villager = {{{name|{{PAGENAME}}}}} |
+ | |islander = {{#if:{{{islander|}}}|Yes|No}} | ||
|game = {{#if:{{{game|}}}|{{{game|}}}|PG}} | |game = {{#if:{{{game|}}}|{{{game|}}}|PG}} | ||
|interior_image = {{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}} | |interior_image = {{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}} | ||
Line 36: | Line 39: | ||
|music_note = {{{music-note|}}} | |music_note = {{{music-note|}}} | ||
|items = [ {{#forargs: furn | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} {"name": "{{{furn{{#var: key}}|}}}", "count": {{{f{{#var: key}}-count|1}}}, "img": "{{{f{{#var: key}}-img|}}}", "note": "{{{furn{{#var: key }}-note|}}}"} | |items = [ {{#forargs: furn | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} {"name": "{{{furn{{#var: key}}|}}}", "count": {{{f{{#var: key}}-count|1}}}, "img": "{{{f{{#var: key}}-img|}}}", "note": "{{{furn{{#var: key }}-note|}}}"} | ||
+ | }} ] | ||
+ | |request_items = [ {{#forargs: req | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} {"name": "{{{req{{#var: key}}|}}}", "count": {{{r{{#var: key}}-count|1}}}, "img": "{{{r{{#var: key}}-img|}}}", "note": "{{{req{{#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:nia blue upload.png|link=Special:Upload]]}}</div> | + | <div class="house-flex-item house-img" style="padding:5px;">{{#if:{{{ext|}}}|[[File:{{{ext|}}}|Exterior of {{PAGENAME}}'s house in {{{{#ifexist:{{{game|}}}|{{{game|}}}|{{#switch: {{{game|}}}| DnM, iQue = DnM| DnM, DnM+ = DnM+| DnM, DnM+, iQue = DnM+| DnM, DnM+, PG, DnMe+ = PG| DnM, DnM+, PG, DnMe+, iQue = PG| DnM+, PG, DnMe+ = PG| PG, DnMe+ = PG}}}}|nolink}}]]|[[File:nia blue upload.png|link=Special:Upload]]}}</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 {{PAGENAME}}'s house in {{{{#ifexist:{{{game|}}}|{{{game|}}}|{{#switch: {{{game|}}}| DnM, iQue = DnM| DnM, DnM+ = DnM+| DnM, DnM+, iQue = DnM+| DnM, DnM+, PG, DnMe+ = PG| DnM, DnM+, PG, DnMe+, iQue = PG| DnM+, PG, DnMe+ = PG| PG, DnMe+ = PG}}}}|nolink}}]]|[[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;" |
− | | style="padding: 3px; vertical-align:top;" | '''Items:''' | + | | style="padding: 3px; vertical-align:top;" | '''{{#if:{{{islander|}}}|Item:|Items:}}''' |
| style="background: #ffffff; padding: 0 3px 0 7px; {{roundytop|8px}}; text-align:{{#if:{{{furniture|}}}|left|center}};" | {{#if:{{{furniture|}}}|{{{furniture|}}}<includeonly>[[Category:Pages with an outdated house template]]</includeonly>| | | style="background: #ffffff; padding: 0 3px 0 7px; {{roundytop|8px}}; text-align:{{#if:{{{furniture|}}}|left|center}};" | {{#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;" | ||
Line 50: | Line 55: | ||
| value | | value | ||
| <nowiki /> | | <nowiki /> | ||
− | {{!}} [[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}_PG_Model.png}}}|24px|link={{{f{{#var: key }}-link|Item:{{{furn{{#var: key }}|}}} (Animal Crossing)}}}]] <span style="font-size:.85em">[[{{{ | + | {{!}} [[File:{{{f{{#var: key }}-img|{{#invoke:TitleCase|main|{{{furn{{#var: key }}|}}}}}_PG_Model.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{f{{#var: key }}-link|Item:{{{furn{{#var: key }}|}}} (Animal Crossing)}}}|{{#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 | | {{!-}} }} | ||
+ | }} | ||
+ | {{!)}}</div> | ||
+ | }} | ||
+ | |- {{#if: {{{req1|}}} | | style="display: none;" }} | ||
+ | | style="padding: 3px; vertical-align:top;" | '''Requested<br>items:''' | ||
+ | | style="background: #ffffff; padding: 0 3px 0 7px; text-align:{{#if:{{{furniture|}}}|left|center}};" | {{#if:{{{furniture|}}}|{{{furniture|}}}<includeonly>[[Category:Pages with an outdated house template]]</includeonly>| | ||
+ | <div style="display:inline-block;">{{(!}} style{{=}}"text-align:left;" | ||
+ | {{#forargs: req | ||
+ | | key | ||
+ | | value | ||
+ | | <nowiki /> | ||
+ | {{!}} [[File:{{{r{{#var: key }}-img|{{#invoke:TitleCase|main|{{{req{{#var: key }}|}}}}}_PG_Model.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{r{{#var: key }}-link|Item:{{{req{{#var: key }}|}}} (Animal Crossing)}}}|{{#invoke:SentenceCase|main|{{{req{{#var: key }}|}}}}}]]{{#if: {{{r{{#var: key }}-count|}}} | <nowiki /> (×{{{freq{{#var: key }}-count|}}}) | }}{{#if: {{{r{{#var: key }}-note|}}} | {{Note|{{{r{{#var: key }}-note|}}}}} }}</span> | ||
{{#ifexpr: {{#var: key }} mod 2 | | {{!-}} }} | {{#ifexpr: {{#var: key }} mod 2 | | {{!-}} }} | ||
}} | }} | ||
Line 56: | Line 74: | ||
}} | }} | ||
|- | |- | ||
− | | style="padding: 3px; vertical-align:top;" | ''' | + | | style="padding: 3px; vertical-align:top;" | '''Wall:''' |
− | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{wallpaper|}}} | + | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{wallpaper-img|{{#invoke:TitleCase|main|{{{wallpaper|}}}}}_PG_Texture.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{wall-link|Item:{{{wallpaper|}}} (Animal Crossing)}}}|{{#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;" | [[File:{{{floor|}}} | + | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{floor-img|{{#invoke:TitleCase|main|{{{floor|}}}}}_PG_Texture.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{floor-link|Item:{{{floor|}}} (Animal Crossing)}}}|{{#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|}}}|[[{{{music|}}}]]|No music}} {{#if: {{{music-note|}}} | {{Note|{{{music-note|}}}}}}} | + | | style="background: #ffffff; padding: 0 0 0 10px; text-align:left; {{roundybl|8px}}; {{roundybr|8px}}" | {{#if:{{{music|}}}|[[{{{music-link|{{{music|}}}}}}|{{{music|}}}]]|No music}} {{#if: {{{music-note|}}} | {{Note|{{{music-note|}}}}}}} |
|} | |} | ||
</div> | </div> | ||
</div><includeonly>{{#if:{{{wallpaper|}}}||[[Category:ACGC house info missing]]}}{{#if:{{{floor|}}}||[[Category:ACGC house info missing]]}}</includeonly><noinclude><br>{{Documentation}}</noinclude> | </div><includeonly>{{#if:{{{wallpaper|}}}||[[Category:ACGC house info missing]]}}{{#if:{{{floor|}}}||[[Category:ACGC house info missing]]}}</includeonly><noinclude><br>{{Documentation}}</noinclude> |
Revision as of 00:37, April 26, 2024
This template defines the table "pg_house". View table.
No documentation for Template:PGHouse exists. Create it.