Difference between revisions of "Template:NHUmbrellaVillagers"
(Creating) |
AlexBot2004 (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | {{#vardefine: result | {{#cargo_query: table=nh_villager|fields=CONCAT( '[[File:', nh_villager.icon, '|25px|', nh_villager.name, ']] [[', nh_villager._pageTitle, '|', nh_villager.name, ']]' )|where=nh_villager.umbrella='{{#replace:{{{item|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki/> <nowiki/>(New Horizons)|}}}}}|'|\'}}' AND species<>'Frog'|limit=300|default=}}}}{{#if: {{#var: result}}|This item is | + | {{#vardefine: result | {{#cargo_query: table=nh_villager|fields=CONCAT( '[[File:', nh_villager.icon, '|25px|', nh_villager.name, ']] [[', nh_villager._pageTitle, '|', nh_villager.name, ']]' )|where=nh_villager.umbrella='{{#replace:{{{item|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki/> <nowiki/>(New Horizons)|}}}}}|'|\'}}' AND species<>'Frog'|limit=300|default=}}}}{{#if: {{#var: result}}|This item is used by the following villagers: {{#var: result}}.|No villagers use this item as their default umbrella.}}<noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]]</noinclude> |
Revision as of 12:05, March 24, 2021
No villagers use this item as their default umbrella.
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.
When placed on a Animal Crossing: New Horizons umbrella page, this template will automatically produce a list of villagers whose worn this item by default. If no villagers have not wear this item, the template will output "No villagers has this as their default umbrella."
The template will also provide a list of villagers that will unlock the furniture item to use for house designing in Animal Crossing: New Horizons – Happy Home Paradise. If no villagers have the item available to be unlocked, the template will output "In Happy Home Paradise, no villagers or facility unlock this item for designing. It can only be used once the player's catalog is unlocked after completing the 27th vacation home.".
This template will automatically extract the umbrella name from the page title, so there is no need to specify any parameters; if needed, however, the item can be specified via the item
parameter.
This template pulls data from the nh_villager and hhp_villager Cargo table. If a villager's mention is inaccurate or if the Poki price is inaccurate, it should be fixed in NHVillagerInfo and Happy Home Paradise villager info template that appears on their article. For more information on Cargo, refer to our Cargo documentation.
Examples
{{NHUmbrellaVillagers|item=Bat Umbrella}}
![Admiral](https://dodo.ac/np/images/thumb/8/82/Admiral_NH_Villager_Icon.png/25px-Admiral_NH_Villager_Icon.png)
![Angus](https://dodo.ac/np/images/thumb/e/e4/Angus_NH_Villager_Icon.png/25px-Angus_NH_Villager_Icon.png)
![Apollo](https://dodo.ac/np/images/thumb/0/0b/Apollo_NH_Villager_Icon.png/25px-Apollo_NH_Villager_Icon.png)
![Biff](https://dodo.ac/np/images/thumb/0/07/Biff_NH_Villager_Icon.png/25px-Biff_NH_Villager_Icon.png)
![Boomer](https://dodo.ac/np/images/thumb/5/5e/Boomer_NH_Villager_Icon.png/25px-Boomer_NH_Villager_Icon.png)
![Boris](https://dodo.ac/np/images/thumb/c/cc/Boris_NH_Villager_Icon.png/25px-Boris_NH_Villager_Icon.png)
![Bruce](https://dodo.ac/np/images/thumb/9/9b/Bruce_NH_Villager_Icon.png/25px-Bruce_NH_Villager_Icon.png)
![Butch](https://dodo.ac/np/images/thumb/5/52/Butch_NH_Villager_Icon.png/25px-Butch_NH_Villager_Icon.png)
![Curt](https://dodo.ac/np/images/thumb/f/f5/Curt_NH_Villager_Icon.png/25px-Curt_NH_Villager_Icon.png)
![Cyd](https://dodo.ac/np/images/thumb/4/42/Cyd_NH_Villager_Icon.png/25px-Cyd_NH_Villager_Icon.png)
![Del](https://dodo.ac/np/images/thumb/8/8b/Del_NH_Villager_Icon.png/25px-Del_NH_Villager_Icon.png)
![Elvis](https://dodo.ac/np/images/thumb/2/2a/Elvis_NH_Villager_Icon.png/25px-Elvis_NH_Villager_Icon.png)
![Gaston](https://dodo.ac/np/images/thumb/c/cd/Gaston_NH_Villager_Icon.png/25px-Gaston_NH_Villager_Icon.png)
![Gruff](https://dodo.ac/np/images/thumb/9/9c/Gruff_NH_Villager_Icon.png/25px-Gruff_NH_Villager_Icon.png)
![Hopper](https://dodo.ac/np/images/thumb/8/82/Hopper_NH_Villager_Icon.png/25px-Hopper_NH_Villager_Icon.png)
![Limberg](https://dodo.ac/np/images/thumb/2/21/Limberg_NH_Villager_Icon.png/25px-Limberg_NH_Villager_Icon.png)
![Marlo](https://dodo.ac/np/images/thumb/0/03/Marlo_NH_Villager_Icon.png/25px-Marlo_NH_Villager_Icon.png)
![Peewee](https://dodo.ac/np/images/thumb/2/24/Peewee_NH_Villager_Icon.png/25px-Peewee_NH_Villager_Icon.png)
![Rasher](https://dodo.ac/np/images/thumb/3/38/Rasher_NH_Villager_Icon.png/25px-Rasher_NH_Villager_Icon.png)
![Raymond](https://dodo.ac/np/images/thumb/f/f2/Raymond_NH_Villager_Icon.png/25px-Raymond_NH_Villager_Icon.png)
![Ricky](https://dodo.ac/np/images/thumb/d/dd/Ricky_NH_Villager_Icon.png/25px-Ricky_NH_Villager_Icon.png)
![Roscoe](https://dodo.ac/np/images/thumb/f/f9/Roscoe_NH_Villager_Icon.png/25px-Roscoe_NH_Villager_Icon.png)
![Tom](https://dodo.ac/np/images/thumb/6/6f/Tom_NH_Villager_Icon.png/25px-Tom_NH_Villager_Icon.png)
![Vic](https://dodo.ac/np/images/thumb/a/a1/Vic_NH_Villager_Icon.png/25px-Vic_NH_Villager_Icon.png)
![Wolfgang](https://dodo.ac/np/images/thumb/1/1a/Wolfgang_NH_Villager_Icon.png/25px-Wolfgang_NH_Villager_Icon.png)