Difference between revisions of "Template:NLWaRV"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (adding icon parameter) |
PanchamBro (talk | contribs) (adding TitleCase and SentenceCase modules) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
_table=nlwa_rv | _table=nlwa_rv | ||
|name = String | |name = String | ||
+ | |name_sort = String | ||
|icon = String | |icon = String | ||
|description = String | |description = String | ||
Line 23: | Line 24: | ||
_table=nlwa_rv | _table=nlwa_rv | ||
|name = {{#incat:Villagers|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}}|{{#cargo_query:table=special_character|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}}}} | |name = {{#incat:Villagers|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}}|{{#cargo_query:table=special_character|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}}}} | ||
− | |icon = {{{icon|{{#incat:Villagers|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} NL Villager Icon.png|{{#cargo_query:table=special_character|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} NL Character Icon.png | + | |name_sort = {{{name-sort|{{#incat:Villagers|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}}|{{#cargo_query:table=special_character|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}}}}}}} |
+ | |icon = {{{icon|{{#incat:Villagers|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} NL Villager Icon.png|{{#cargo_query:table=special_character|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} NL Character Icon.png}}}}} | ||
|description = {{{description|}}} | |description = {{{description|}}} | ||
|interior_image = {{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}} | |interior_image = {{#if:{{{int|}}}|{{{int|}}}|{{#if:{{{image|}}}|{{{image|}}}}}}} | ||
Line 30: | Line 32: | ||
|exterior_image_url = {{filepath:{{#if: {{{ext|}}} | {{{ext|}}}}}}} | |exterior_image_url = {{filepath:{{#if: {{{ext|}}} | {{{ext|}}}}}}} | ||
|wallpaper = {{{wallpaper|}}} | |wallpaper = {{{wallpaper|}}} | ||
− | |wallpaper_image = {{#if:{{{wallpaper-img|}}}|{{{wallpaper-img|}}}|{{{wallpaper|}}} | + | |wallpaper_image = {{#if:{{{wallpaper-img|}}}|{{{wallpaper-img|}}}|{{{wallpaper|}}}_NL_Model.png}} |
− | |wallpaper_image_url = {{filepath:{{#if:{{{wallpaper-img|}}}|{{{wallpaper-img|}}}|{{{wallpaper|}}} | + | |wallpaper_image_url = {{filepath:{{#if:{{{wallpaper-img|}}}|{{{wallpaper-img|}}}|{{{wallpaper|}}}_NL_Model.png}}}} |
|flooring = {{{floor|}}} | |flooring = {{{floor|}}} | ||
− | |flooring_image = {{#if:{{{floor-img|}}}|{{{floor-img|}}}|{{{floor|}}} | + | |flooring_image = {{#if:{{{floor-img|}}}|{{{floor-img|}}}|{{{floor|}}}_NL_Model.png}} |
− | |flooring_image_url = {{filepath:{{#if:{{{floor-img|}}}|{{{floor-img|}}}|{{{floor|}}} | + | |flooring_image_url = {{filepath:{{#if:{{{floor-img|}}}|{{{floor-img|}}}|{{{floor|}}}_NL_Model.png}}}} |
|music = {{{music|}}} | |music = {{{music|}}} | ||
|music_note = {{{music-note|}}} | |music_note = {{{music-note|}}} | ||
Line 40: | Line 42: | ||
}} ] | }} ] | ||
|notes = | |notes = | ||
− | }}}}</includeonly><div class="house-flex-container" style="max-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: #{{#incat:Special characters|e3fab7|B3DAE7}}; border: 2px solid #{{#incat:Special characters|c6f570|8CBCD1}}; text-align: center; {{roundy|8px}};"> |
<div class="house-flex-item house-img" style="padding:5px;">{{#if:{{{ext|}}}|[[File:{{{ext|}}}|Exterior of {{PAGENAME}}'s RV in Animal Crossing: New Leaf]]|[[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 RV in Animal Crossing: New Leaf]]|[[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 RV in Animal Crossing: New Leaf]]|[[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 RV in Animal Crossing: New Leaf]]|[[File:nia blue upload.png|link=Special:Upload]]}}</div> | ||
Line 55: | Line 57: | ||
| value | | value | ||
| <nowiki /> | | <nowiki /> | ||
− | {{!}} [[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}} | + | {{!}} [[File:{{{f{{#var: key }}-img|{{#invoke:TitleCase|main|{{{furn{{#var: key }}|}}}}}_NL_Model.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{f{{#var: key }}-link|Item:{{{furn{{#var: key }}|}}} (New Leaf)}}}|{{#invoke:SentenceCase|main|{{{furn{{#var: key }}|}}}}}]]{{#if: {{{f{{#var: key }}-count|}}} | <nowiki /> (x{{{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 61: | Line 63: | ||
}} | }} | ||
|- | |- | ||
− | | style="padding: 3px; vertical-align:top;" | ''' | + | | style="padding: 3px; vertical-align:top;" | '''Wall:''' |
− | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | + | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{wallpaper-img|{{#invoke:TitleCase|main|{{{wallpaper|}}}}}_NL_Model.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{wall-link|Item:{{{wallpaper|}}} (New Leaf)}}}|{{#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;" | + | | style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{floor-img|{{#invoke:TitleCase|main|{{{floor|}}}}}_NL_Model.png}}}|24px|alt=|link=]] <span style="font-size:.85em">[[{{{floor-link|Item:{{{floor|}}} (New Leaf)}}}|{{#invoke:SentenceCase|main|{{{floor|}}}}}]]</span> |
|- | |- | ||
| style="padding: 3px; vertical-align:top;" | '''Music:''' | | style="padding: 3px; vertical-align:top;" | '''Music:''' |
Latest revision as of 00:56, December 25, 2022
This template defines the table "nlwa_rv". View table.
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.