Difference between revisions of "Template:PGVillagerInfo"

From Nookipedia, the Animal Crossing wiki
(Adding categories for DnM+ and iQue)
(Fruit preferences label.)
(7 intermediate revisions by 3 users not shown)
Line 24: Line 24:
 
|zh_phrase = String
 
|zh_phrase = String
 
|clothing = String
 
|clothing = String
 +
|clothing_ique = String
 
|clothing_e_plus = String
 
|clothing_e_plus = String
 
|clothing_plus = String
 
|clothing_plus = String
Line 29: Line 30:
 
|umbrella = String
 
|umbrella = String
 
|in_dnm = Boolean
 
|in_dnm = Boolean
 +
|in_plus = Boolean
 
|in_pg = Boolean
 
|in_pg = Boolean
 
|in_e_plus = Boolean
 
|in_e_plus = Boolean
 +
|in_ique = Boolean
 
|islander = Boolean
 
|islander = Boolean
 
|fav_fruit = String
 
|fav_fruit = String
Line 65: Line 68:
 
|zh_phrase = {{{zh-phrase|}}}
 
|zh_phrase = {{{zh-phrase|}}}
 
|clothing = {{{clothes|}}}
 
|clothing = {{{clothes|}}}
 +
|clothing_ique = {{{clothes-ique|}}}
 
|clothing_e_plus = {{{clothes-e-plus|}}}
 
|clothing_e_plus = {{{clothes-e-plus|}}}
 
|clothing_plus = {{{clothes-plus|}}}
 
|clothing_plus = {{{clothes-plus|}}}
Line 70: Line 74:
 
|umbrella = {{{umbrella|}}}
 
|umbrella = {{{umbrella|}}}
 
|in_dnm = {{#if:{{{in-dnm|}}}|Yes|No}}
 
|in_dnm = {{#if:{{{in-dnm|}}}|Yes|No}}
 +
|in_plus = {{#if:{{{in-pg|}}}|Yes|No}}
 
|in_pg = {{#if:{{{in-pg|}}}|Yes|No}}
 
|in_pg = {{#if:{{{in-pg|}}}|Yes|No}}
 
|in_e_plus = {{#if:{{{in-e-plus|}}}|Yes|No}}
 
|in_e_plus = {{#if:{{{in-e-plus|}}}|Yes|No}}
 +
|in_ique = {{#if:{{{in-dnm|}}}|Yes|No}}
 
|islander = {{#if:{{{islander|}}}|Yes|No}}
 
|islander = {{#if:{{{islander|}}}|Yes|No}}
 
|fav_fruit = {{{favfruit|}}}
 
|fav_fruit = {{{favfruit|}}}
Line 81: 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}}}}
+
|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:{{{clothes|}}} PG Model.png|32px|link=]] {{I|{{{clothes|}}}|Animal Crossing}}
+
|data4            = [[File:{{#invoke:TitleCase|main|{{{clothes|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes|}}}}}|PG}}
|label5        = {{#if:{{{clothes-e-plus|}}}|Default clothing ({{DnMe+|shortest|nolink}})|}}
+
|label5            = {{#if:{{{clothes-ique|}}}|Default clothing ({{iQue|shortest|nolink}})|}}
|data5          = [[File:{{{clothes-e-plus|}}} PG Model.png|32px|link=]] {{I|{{{clothes-e-plus|}}}|Animal Crossing}}
+
|data5            = [[File:{{#invoke:TitleCase|main|{{{clothes-ique|}}}}} iQue Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-ique|}}}}}|iQue}}
|label6        = {{#if:{{{clothes-plus|}}}|Default clothing ({{DnM+|shortest|nolink}})|}}
+
|label6            = {{#if:{{{clothes-e-plus|}}}|Default clothing ({{DnM|shortest|nolink}}, {{DnM+|shortest|nolink}}, {{DnMe+|shortest|nolink}})|}}
|data6          = [[File:{{{clothes-plus|}}} DnM+ Model.png|32px|link=]] {{I|{{{clothes-plus|}}}|Doubutsu no Mori+}}
+
|data6            = [[File:{{#invoke:TitleCase|main|{{{clothes-e-plus|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-e-plus|}}}}}|PG}}
|label7        = {{#if:{{{clothes-dnm|}}}|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:{{{clothes-dnm|}}} DnM Model.png|32px|link=]] {{I|{{{clothes-dnm|}}}|Doubutsu no Mori}}
+
|data7            = [[File:{{#invoke:TitleCase|main|{{{clothes-plus|}}}}} DnM+ Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-plus|}}}}}|DnM+}}
|label8        = Default umbrella
+
|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:{{{umbrella|}}} PG Model.png|32px|link=]] {{I|{{{umbrella|}}}|Animal Crossing}}
+
|data8            = [[File:{{#invoke:TitleCase|main|{{{clothes-dnm|}}}}} DnM Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-dnm|}}}}}|DnM}}
|label9        = Star sign ({{DnMe+|shortest|nolink}})
+
|label9            = Default umbrella
|data9          = [[File:Starsign {{{sign|}}} NH Icon.png|32px|{{{sign|}}}|link={{{sign|}}}]] {{{sign|}}}
+
|data9            = [[File:{{#invoke:TitleCase|main|{{{umbrella|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{umbrella|}}}}}|PG}}
|label10        = {{#if:{{{favfruit|}}}|[[File:Smallcheckmark.png]] Favorite fruit|}}
+
|labelbetween9-10  = {{#if:{{{favfruit|}}}|Fruit preferences|}}
|data10        = [[File:{{{favfruit|}}} PG Sprite.png|link=]] {{I|{{{favfruit|}}}|PG}}
+
|label10          = {{#if:{{{favfruit|}}}|[[File:Smallcheckmark.png]] Favorite fruit|}}
|label11        = {{#if:{{{allergicfruit|}}}|[[File:Smallxmark.png|link=]] Allergic fruit|}}
+
|data10            = [[File:{{#invoke:TitleCase|main|{{{favfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{favfruit|}}}}}|PG}}
|data11        = [[File:{{{allergicfruit|}}} PG Sprite.png|link=]] {{I|{{{allergicfruit|}}}|PG}}
+
|label11          = {{#if:{{{allergicfruit|}}}|[[File:Smallxmark.png|link=]] Allergic fruit|}}
|label12        = [[File:Smallcheckmark.png|link=]] Favorite style ({{DnMe+|shortest|nolink}})
+
|data11            = [[File:{{#invoke:TitleCase|main|{{{allergicfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{allergicfruit|}}}}}|PG}}
|data12        = [[Clothing/Doubutsu no Mori e+/{{{favclothing|}}}|{{{favclothing|}}}]]
+
|labelbetween11-12 = {{#incat:Animal Crossing characters|{{DnMe+|nolink}} traits|}}
|label13        = [[File:Smallxmark.png|link=]] Least favorite style ({{DnMe+|shortest|nolink}})
+
|label12          = Star sign
|data13        = [[Clothing/Doubutsu no Mori e+/{{{leastfavclothing|}}}|{{{leastfavclothing|}}}]]
+
|data12            = [[File:Starsign {{{sign|}}} NH Icon.png|32px|{{{sign|}}}|link={{{sign|}}}]] {{{sign|}}}
|labelend      = Live song gift ({{DnMe+|shortest|nolink}})
+
|label13          = [[File:Smallcheckmark.png|link=]] Favorite style
|dataend       = {{#if:{{{songgift|}}}|[[{{{songgift-link|{{{songgift|}}}}}}|{{{songgift|}}}]]|Unknown<includeonly>[[Category:Villagers missing Doubutsu no Mori e+ song gift data]]</includeonly>}}
+
|data13            = [[Clothing/Doubutsu no Mori e+/{{{favclothing|}}}|{{{favclothing|}}}]]
 +
|label14          = [[File:Smallxmark.png|link=]] Least favorite style
 +
|data14            = [[Clothing/Doubutsu no Mori e+/{{{leastfavclothing|}}}|{{{leastfavclothing|}}}]]
 +
|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]][[Category:Dòngwù Sēnlín characters]]}}{{#if:{{{in-pg|}}}|[[Category:Doubutsu no Mori+ characters]][[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>
+
</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 22:39, 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.