Difference between revisions of "Template:PGVillagerInfo"

From Nookipedia, the Animal Crossing wiki
(adding TitleCase and SentenceCase modules)
(DnMe+ just has 1 label if it's a PG character so it doesn't say DnMe+ several times.)
Line 87: Line 87:
 
}}}}</includeonly>
 
}}}}</includeonly>
 
{{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       = {{#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}}}}{{#if:{{{in-dnm|}}}|{{Infobox Appearance|game={{iQue|shortest}}|appears=yes}}|{{Infobox Appearance|game={{iQue|shortest}}|appears=no}}}}
+
|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}}}}{{#if:{{{in-dnm|}}}|{{Infobox Appearance|game={{iQue|shortest}}|appears=yes}}|{{Infobox Appearance|game={{iQue|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}}]]
|label2         = Personality
+
|label2           = Personality
|data2         = [[{{{personality|}}}]]
+
|data2             = [[{{{personality|}}}]]
|label3         = Catchphrase
+
|label3           = Catchphrase
|data3         = {{{catchphrase|}}}
+
|data3             = {{{catchphrase|}}}
|label4         = Default clothing
+
|label4           = Default clothing
|data4         = [[File:{{#invoke:TitleCase|main|{{{clothes|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes|}}}}}|PG}}
+
|data4             = [[File:{{#invoke:TitleCase|main|{{{clothes|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes|}}}}}|PG}}
|label5         = {{#if:{{{clothes-ique|}}}|Default clothing ({{iQue|shortest|nolink}})|}}
+
|label5           = {{#if:{{{clothes-ique|}}}|Default clothing ({{iQue|shortest|nolink}})|}}
|data5         = [[File:{{#invoke:TitleCase|main|{{{clothes-ique|}}}}} iQue Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-ique|}}}}}|iQue}}
+
|data5             = [[File:{{#invoke:TitleCase|main|{{{clothes-ique|}}}}} iQue Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-ique|}}}}}|iQue}}
|label6         = {{#if:{{{clothes-e-plus|}}}|Default clothing ({{DnM|shortest|nolink}}, {{DnM+|shortest|nolink}}, {{DnMe+|shortest|nolink}})|}}
+
|label6           = {{#if:{{{clothes-e-plus|}}}|Default clothing ({{DnM|shortest|nolink}}, {{DnM+|shortest|nolink}}, {{DnMe+|shortest|nolink}})|}}
|data6         = [[File:{{#invoke:TitleCase|main|{{{clothes-e-plus|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-e-plus|}}}}}|PG}}
+
|data6             = [[File:{{#invoke:TitleCase|main|{{{clothes-e-plus|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-e-plus|}}}}}|PG}}
|label7         = {{#if:{{{clothes-e-plus|}}}||{{#if:{{{clothes-plus|}}}|{{#if:{{{clothes-dnm|}}}|{{#if:{{{clothes-ique|}}}|Default clothing ({{DnM+|shortest|nolink}})|Default clothing ({{DnM|shortest|nolink}}, {{DnM+|shortest|nolink}})}}|Default clothing ({{DnM+|shortest|nolink}})}}|}}}}
+
|label7           = {{#if:{{{clothes-e-plus|}}}||{{#if:{{{clothes-plus|}}}|{{#if:{{{clothes-dnm|}}}|{{#if:{{{clothes-ique|}}}|Default clothing ({{DnM+|shortest|nolink}})|Default clothing ({{DnM|shortest|nolink}}, {{DnM+|shortest|nolink}})}}|Default clothing ({{DnM+|shortest|nolink}})}}|}}}}
|data7         = [[File:{{#invoke:TitleCase|main|{{{clothes-plus|}}}}} DnM+ Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-plus|}}}}}|DnM+}}
+
|data7             = [[File:{{#invoke:TitleCase|main|{{{clothes-plus|}}}}} DnM+ Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-plus|}}}}}|DnM+}}
|label8         = {{#if:{{{clothes-e-plus|}}}||{{#if:{{{clothes-dnm|}}}|{{#if:{{{clothes-plus|}}}|{{#if:{{{clothes-ique|}}}|Default clothing ({{DnM|shortest|nolink}})|}}|Default clothing ({{DnM|shortest|nolink}})}}|}}}}
+
|label8           = {{#if:{{{clothes-e-plus|}}}||{{#if:{{{clothes-dnm|}}}|{{#if:{{{clothes-plus|}}}|{{#if:{{{clothes-ique|}}}|Default clothing ({{DnM|shortest|nolink}})|}}|Default clothing ({{DnM|shortest|nolink}})}}|}}}}
|data8         = [[File:{{#invoke:TitleCase|main|{{{clothes-dnm|}}}}} DnM Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-dnm|}}}}}|DnM}}
+
|data8             = [[File:{{#invoke:TitleCase|main|{{{clothes-dnm|}}}}} DnM Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-dnm|}}}}}|DnM}}
|label9         = Default umbrella
+
|label9           = Default umbrella
|data9         = [[File:{{#invoke:TitleCase|main|{{{umbrella|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{umbrella|}}}}}|PG}}
+
|data9             = [[File:{{#invoke:TitleCase|main|{{{umbrella|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{umbrella|}}}}}|PG}}
|label10       = Star sign ({{DnMe+|shortest|nolink}})
+
|label10           = {{#if:{{{favfruit|}}}|[[File:Smallcheckmark.png]] Favorite fruit|}}
|data10         = [[File:Starsign {{{sign|}}} NH Icon.png|32px|{{{sign|}}}|link={{{sign|}}}]] {{{sign|}}}
+
|data10           = [[File:{{#invoke:TitleCase|main|{{{favfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{favfruit|}}}}}|PG}}
|label11       = {{#if:{{{favfruit|}}}|[[File:Smallcheckmark.png]] Favorite fruit|}}
+
|label11           = {{#if:{{{allergicfruit|}}}|[[File:Smallxmark.png|link=]] Allergic fruit|}}
|data11         = [[File:{{#invoke:TitleCase|main|{{{favfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{favfruit|}}}}}|PG}}
+
|data11           = [[File:{{#invoke:TitleCase|main|{{{allergicfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{allergicfruit|}}}}}|PG}}
|label12        = {{#if:{{{allergicfruit|}}}|[[File:Smallxmark.png|link=]] Allergic fruit|}}
+
|labelbetween11-12 = {{#incat:Animal Crossing characters|{{DnMe+|nolink}} traits|}}
|data12        = [[File:{{#invoke:TitleCase|main|{{{allergicfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{allergicfruit|}}}}}|PG}}
+
|label12          = Star sign
|label13        = [[File:Smallcheckmark.png|link=]] Favorite style ({{DnMe+|shortest|nolink}})
+
|data12            = [[File:Starsign {{{sign|}}} NH Icon.png|32px|{{{sign|}}}|link={{{sign|}}}]] {{{sign|}}}
|data13        = [[Clothing/Doubutsu no Mori e+/{{{favclothing|}}}|{{{favclothing|}}}]]
+
|label13          = [[File:Smallcheckmark.png|link=]] Favorite style
|label14        = [[File:Smallxmark.png|link=]] Least favorite style ({{DnMe+|shortest|nolink}})
+
|data13            = [[Clothing/Doubutsu no Mori e+/{{{favclothing|}}}|{{{favclothing|}}}]]
|data14        = [[Clothing/Doubutsu no Mori e+/{{{leastfavclothing|}}}|{{{leastfavclothing|}}}]]
+
|label14          = [[File:Smallxmark.png|link=]] Least favorite style
|labelend      = Live song gift ({{DnMe+|shortest|nolink}})
+
|data14            = [[Clothing/Doubutsu no Mori e+/{{{leastfavclothing|}}}|{{{leastfavclothing|}}}]]
|dataend       = {{#if:{{{songgift|}}}|[[{{{songgift-link|{{{songgift|}}}}}}|{{{songgift|}}}]]|Unknown<includeonly>[[Category:Villagers missing Doubutsu no Mori e+ song gift data]]</includeonly>}}
+
|labelend          = Live song gift
 +
|dataend           = {{#if:{{{songgift|}}}|[[{{{songgift-link|{{{songgift|}}}}}}|{{{songgift|}}}]]|Unknown<includeonly>[[Category:Villagers missing Doubutsu no Mori e+ song gift data]]</includeonly>}}
 
}}
 
}}
 
</div><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{in-dnm|}}}|[[Category:Doubutsu no Mori characters]]}}{{#if:{{{in-pg|}}}|[[Category:Doubutsu no Mori+ characters]][[Category:Animal Crossing characters]]}}{{#if:{{{in-e-plus|}}}|[[Category:Doubutsu no Mori e+ characters]]}}{{#if:{{{in-dnm|}}}|[[Category:Dòngwù Sēnlín characters]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Villager info templates]]</noinclude>
 
</div><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{in-dnm|}}}|[[Category:Doubutsu no Mori characters]]}}{{#if:{{{in-pg|}}}|[[Category:Doubutsu no Mori+ characters]][[Category:Animal Crossing characters]]}}{{#if:{{{in-e-plus|}}}|[[Category:Doubutsu no Mori e+ characters]]}}{{#if:{{{in-dnm|}}}|[[Category:Dòngwù Sēnlín characters]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Villager info templates]]</noinclude>

Revision as of 20:07, December 31, 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 32px link=
Smallcheckmark.png Favorite style [[Clothing/Doubutsu no Mori e+/|]]
Smallxmark.png Least favorite style [[Clothing/Doubutsu no Mori e+/|]]
Live song gift Unknown

No documentation for Template:PGVillagerInfo exists. Create it.