Difference between revisions of "Template:NLWaRV"

From Nookipedia, the Animal Crossing wiki
(adding TitleCase and SentenceCase modules)
 
(17 intermediate revisions by 5 users not shown)
Line 2: Line 2:
 
_table=nlwa_rv
 
_table=nlwa_rv
 
|name = String
 
|name = String
 +
|name_sort = String
 +
|icon = String
 
|description = String
 
|description = String
 
|interior_image = String
 
|interior_image = String
Line 19: Line 21:
 
}}
 
}}
 
[[Category:Cargo templates]]</noinclude><includeonly>
 
[[Category:Cargo templates]]</noinclude><includeonly>
{{#cargo_store:
+
{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
_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}}}}
 +
|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 28: 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|}}}_HHD_Icon.png}}
+
|wallpaper_image = {{#if:{{{wallpaper-img|}}}|{{{wallpaper-img|}}}|{{{wallpaper|}}}_NL_Model.png}}
|wallpaper_image_url = {{filepath:{{#if:{{{wallpaper-img|}}}|{{{wallpaper-img|}}}|{{{wallpaper|}}}_HHD_Icon.png}}}}
+
|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|}}}_HHD_Icon.png}}
+
|flooring_image = {{#if:{{{floor-img|}}}|{{{floor-img|}}}|{{{floor|}}}_NL_Model.png}}
|flooring_image_url = {{filepath:{{#if:{{{floor-img|}}}|{{{floor-img|}}}|{{{floor|}}}_HHD_Icon.png}}}}
+
|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 38: Line 42:
 
}} ]
 
}} ]
 
|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: #{{#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|}}}]]|[[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|}}}]]|[[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" 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;" | '''Description:'''
 
| style="padding: 3px; vertical-align:top;" | '''Description:'''
 
| style="background: #ffffff; padding: 7px 7px 7px 7px; {{roundytop|8px}} text-align:left;" | ''{{{description|No description.}}}''
 
| style="background: #ffffff; padding: 7px 7px 7px 7px; {{roundytop|8px}} text-align:left;" | ''{{{description|No description.}}}''
Line 53: Line 57:
 
  | value
 
  | value
 
  | <nowiki />
 
  | <nowiki />
{{!}} [[File:{{{f{{#var: key }}-img|{{{furn{{#var: key }}|}}}_HHD_Icon.png}}}|24px|link=]]&nbsp;<span style="font-size:.85em">{{{furn{{#var: key }}|}}}{{#if: {{{f{{#var: key }}-count|}}} | <nowiki /> (x{{{f{{#var: key }}-count|}}}) | }}{{#if: {{{f{{#var: key }}-note|}}} | {{tt|*|{{{f{{#var: key }}-note|}}}}} }}</span>
+
{{!}} [[File:{{{f{{#var: key }}-img|{{#invoke:TitleCase|main|{{{furn{{#var: key }}|}}}}}_NL_Model.png}}}|24px|alt=|link=]]&nbsp;<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 59: Line 63:
 
}}
 
}}
 
|-
 
|-
| style="padding: 3px; vertical-align:top;" | '''Wallpaper:'''
+
| 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|}}}_HHD_Icon.png|24px|link=]]}}&nbsp;<span style="font-size:.85em">{{{wallpaper|}}}</span>
+
| style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{wallpaper-img|{{#invoke:TitleCase|main|{{{wallpaper|}}}}}_NL_Model.png}}}|24px|alt=|link=]]&nbsp;<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;" | {{#if:{{{floor-img|}}}|[[File:{{{floor-img|}}}|24px|link=]]|[[File:{{{floor|}}}_HHD_Icon.png|24px|link=]]}}&nbsp;<span style="font-size:.85em">{{{floor|}}}</span>
+
| style="background: #ffffff; padding: 0 0 0 7px; text-align:left;" | [[File:{{{floor-img|{{#invoke:TitleCase|main|{{{floor|}}}}}_NL_Model.png}}}|24px|alt=|link=]]&nbsp;<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:'''
| 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|}}}|[[File:{{{music|}}}_NL_Texture.png|24px|link={{{music|}}}]]&nbsp;<span style="font-size:.85em">[[{{{music|}}}]]|No music}} {{#if: {{{music-note|}}} | {{Note|{{{music-note|}}}}}}}
 
|}
 
|}
 
</div>
 
</div>
 
</div><includeonly>{{#if:{{{int|}}}||[[Category:Villagers missing a Welcome amiibo RV interior photo]]}}{{#if:{{{ext|}}}||[[Category:Villagers missing a Welcome amiibo RV exterior photo]]}}{{#if:{{{wallpaper|}}}||[[Category:ACNLWa RV info missing]]}}{{#if:{{{floor|}}}||[[Category:ACNLWa RV info missing]]}}</includeonly><noinclude><br>{{Documentation}}</noinclude>
 
</div><includeonly>{{#if:{{{int|}}}||[[Category:Villagers missing a Welcome amiibo RV interior photo]]}}{{#if:{{{ext|}}}||[[Category:Villagers missing a Welcome amiibo RV exterior photo]]}}{{#if:{{{wallpaper|}}}||[[Category:ACNLWa RV info missing]]}}{{#if:{{{floor|}}}||[[Category:ACNLWa RV info missing]]}}</includeonly><noinclude><br>{{Documentation}}</noinclude>

Latest revision as of 00:56, December 25, 2022

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

Nia blue upload.png
Nia blue upload.png
Description: No description.
Items:
Wall: 24px [[Item: (New Leaf)|]]
Floor: 24px [[Item: (New Leaf)|]]
Music: No music


Template documentation (view)


More Cargo templates