Difference between revisions of "Template:PGVillagerInfo"

From Nookipedia, the Animal Crossing wiki
(adding links to fruit item pages)
(declaring categories from villager template; replacing appearance template incat parsers w/ in-dnm, in-pg, and in-e-plus parameter)
Line 82: Line 82:
 
{{Villager Info Box
 
{{Villager Info Box
 
|image          = {{#ifexist:File:{{{image|{{{name|}}} PG Model.png}}}|{{{image|{{{name|}}} PG Model.png}}}|{{#incat:New characters in Doubutsu no Mori e+|{{{image|{{PAGENAME}} DnMe+ Model.png}}}|{{{image|{{PAGENAME}} DnMe+.png}}}}}}}
 
|image          = {{#ifexist:File:{{{image|{{{name|}}} PG Model.png}}}|{{{image|{{{name|}}} PG Model.png}}}|{{#incat:New characters in Doubutsu no Mori e+|{{{image|{{PAGENAME}} DnMe+ Model.png}}}|{{{image|{{PAGENAME}} DnMe+.png}}}}}}}
|caption        = {{#incat:Doubutsu no Mori characters|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=no}}}}{{#incat:New characters in Doubutsu no Mori e+|{{Infobox Appearance|game={{DnM+|shortest}}|appears=no}}|{{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}}}{{#incat:New characters in Doubutsu no Mori e+|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}}}{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}
+
|caption        = {{#if:{{{in-dnm|}}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=no}}}}{{#if:{{{in-pg|}}}|{{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM+|shortest}}|appears=no}}{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}}{{#if:{{{in-e-plus|}}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}}}}
 
|label          = Species
 
|label          = Species
 
|data          = [[{{#switch:{{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}|Frog|Octopus={{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}} (species)|{{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}}}|{{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}]]
 
|data          = [[{{#switch:{{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}|Frog|Octopus={{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}} (species)|{{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}}}|{{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}]]
Line 112: Line 112:
 
|dataend        = {{#if:{{{songgift|}}}|[[{{{songgift-link|{{{songgift|}}}}}}|{{{songgift|}}}]]|Unknown<includeonly>[[Category:Villagers missing Doubutsu no Mori e+ song gift data]]</includeonly>}}
 
|dataend        = {{#if:{{{songgift|}}}|[[{{{songgift-link|{{{songgift|}}}}}}|{{{songgift|}}}]]|Unknown<includeonly>[[Category:Villagers missing Doubutsu no Mori e+ song gift data]]</includeonly>}}
 
}}
 
}}
</div><noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Villager info templates]]</noinclude>
+
</div><includeonly>{{#if:{{{in-dnm|}}}|[[Category:Doubutsu no Mori characters]]}}{{#if:{{{in-pg|}}}|[[Category:Animal Crossing characters]]}}{{#if:{{{in-e-plus|}}}|[[Category:Doubutsu no Mori e+ characters]]}}</includeonly><noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Villager info templates]]</noinclude>

Revision as of 18:03, June 26, 2022

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

Species Personality Catchphrase
[[No results|No results]] [[]]
Default clothing 32px [[Item: (Animal Crossing)|]]
Default umbrella 32px [[Item: (Animal Crossing)|]]
Star sign (DnMe+) 32px link=Star sign
Smallcheckmark.png Favorite style (DnMe+) [[Clothing/Doubutsu no Mori e+/|]]
Smallxmark.png Least favorite style (DnMe+) [[Clothing/Doubutsu no Mori e+/|]]
Live song gift (DnMe+) Unknown

No documentation for Template:PGVillagerInfo exists. Create it.