Difference between revisions of "Template:NLClothingVillagers"

From Nookipedia, the Animal Crossing wiki
m
(removing unnecessary parameters)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#vardefine: result | {{#cargo_query: table=nl_villager|fields=CONCAT( '[[File:', nl_villager.icon, '|x25px|', nl_villager.name, ']] [[', nl_villager._pageTitle, '|', nl_villager.name, ']]' )|where=nl_villager.clothing='{{#replace:{{{item|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki/> <nowiki/>(New Leaf)|}}}}}|'|\'}}'|limit=300|default=}}}}{{#vardefine: result-house | {{#cargo_query: table=nl_house,nl_villager|join on=nl_villager.name = nl_house.villager|fields=CONCAT( '[[File:', nl_villager.icon, '|x25px|', nl_house.villager, ']] [[', nl_house._pageTitle, '|', nl_house.villager, ']]' )|where=nl_house.items LIKE '%"{{#replace:{{{item|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki/> <nowiki/>(New Leaf)|}}}}}|'|\'}}"%'|limit=300|default=}}}}{{#vardefine: result-rv | {{#cargo_query: table=nlwa_rv|fields=CONCAT( '[[File:', nlwa_rv.icon, '|x25px|', nlwa_rv.name, ']] [[', nlwa_rv._pageTitle, '|', nlwa_rv.name, ']]' )|where=nlwa_rv.items LIKE '%"{{#replace:{{{item|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki/> <nowiki/>(New Leaf)|}}}}}|'|\'}}"%'|limit=300|group by=nlwa_rv._pageTitle|default=}}}}{{#if: {{#var: result}}|This item is worn by the following villagers: {{#var: result}}.|No villagers wear this item as their default outfit.}}{{#if: {{#var: result-house}}|&#32;This item appears in the homes of the following villagers: {{#var: result-house}}.{{#if: {{#var: result-rv}}|&#32;This item also appears in the [[RV]] of the following characters: {{#var: result-rv}}}}|{{#if: {{#var: result-rv}}|&#32;This item appears in the [[RV]] of the following characters: {{#var: result-rv}}|}}}}<noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]]</noinclude>
+
{{#invoke:NLVillagerItemOutput|clothingOutput|{{{item|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki/> <nowiki/>(New Leaf)|}}}}}}}<noinclude>{{clear}}{{Documentation}}[[Category:Cargo templates]]</noinclude>

Latest revision as of 18:49, October 28, 2022

No villagers wear this item as their default outfit.

No documentation for Template:NLClothingVillagers exists. Create it.