Difference between revisions of "Template:PGVillagerInfo"

From Nookipedia, the Animal Crossing wiki
m
(Fruit preferences label.)
(27 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|url = String
 
|url = String
 
|name = String
 
|name = String
 +
|ja_name = String
 +
|fr_name = String
 +
|de_name = String
 +
|it_name = String
 +
|es_name = String
 +
|zh_name = String
 
|romanized_name = String
 
|romanized_name = String
 
|image = String
 
|image = String
Line 11: Line 17:
 
|sign = String
 
|sign = String
 
|catchphrase = String
 
|catchphrase = String
 +
|ja_phrase = String
 +
|fr_phrase = String
 +
|de_phrase = String
 +
|it_phrase = String
 +
|es_phrase = String
 +
|zh_phrase = String
 
|clothing = String
 
|clothing = String
 +
|clothing_ique = String
 +
|clothing_e_plus = String
 
|clothing_plus = String
 
|clothing_plus = String
 
|clothing_dnm = String
 
|clothing_dnm = String
 
|umbrella = String
 
|umbrella = String
|ac_debut = Boolean
+
|in_dnm = Boolean
|e_plus = Boolean
+
|in_plus = Boolean
 +
|in_pg = Boolean
 +
|in_e_plus = Boolean
 +
|in_ique = Boolean
 
|islander = Boolean
 
|islander = Boolean
 
|fav_fruit = String
 
|fav_fruit = String
Line 23: Line 40:
 
|least_fav_clothing = String
 
|least_fav_clothing = String
 
|song_gift = String
 
|song_gift = String
 +
|starter = Boolean
 
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 
_table=pg_villager
 
_table=pg_villager
 
|url = {{canonicalurl:{{PAGENAME}}}}
 
|url = {{canonicalurl:{{PAGENAME}}}}
 
|name = {{{name|}}}
 
|name = {{{name|}}}
 +
|ja_name = {{{ja-name|}}}
 +
|fr_name = {{{fr-name|}}}
 +
|de_name = {{{de-name|}}}
 +
|it_name = {{{it-name|}}}
 +
|es_name = {{{es-name|}}}
 +
|zh_name = {{{zh-name|}}}
 
|romanized_name = {{{romanized-name|}}}
 
|romanized_name = {{{romanized-name|}}}
|image = {{{image|{{#incat:New characters in Doubutsu no Mori e+|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} DnMe+.png|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} PG Model.png}}}}}
+
|image = {{{image|{{#incat:New characters in Doubutsu no Mori e+|{{{romanized-name|}}} DnMe+ Model.png|{{{romanized-name|}}} PG Model.png}}}}}
|image_url = {{filepath:{{{image|{{#incat:New characters in Doubutsu no Mori e+|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} DnMe+.png|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} PG Model.png}}}}}}}
+
|image_url = {{filepath:{{{image|{{#incat:New characters in Doubutsu no Mori e+|{{{romanized-name|}}} DnMe+ Model.png|{{{romanized-name|}}} PG Model.png}}}}}}}
|sprite = {{#incat:Islanders|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} AI.png|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} DnMe+ Minigame.png}}
+
|sprite = {{#if:{{{islander|}}}|{{{romanized-name|}}} AI.png|{{{romanized-name|}}} DnMe+ Minigame.png}}
|sprite_url = {{filepath:{{#incat:Islanders|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} AI.png|{{#cargo_query:table=villager|fields=name|where=_pageTitle="{{PAGENAME}}"|no html}} DnMe+ Minigame.png}}}}
+
|sprite_url = {{filepath:{{#if:{{{islander|}}}|{{{romanized-name|}}} AI.png|{{{romanized-name|}}} DnMe+ Minigame.png}}}}
 
|species = {{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}
 
|species = {{#cargo_query:table=villager|fields=species|where=_pageTitle="{{PAGENAME}}"|no html}}
 
|gender = {{#cargo_query:table=villager|fields=gender|where=_pageTitle="{{PAGENAME}}"|no html}}
 
|gender = {{#cargo_query:table=villager|fields=gender|where=_pageTitle="{{PAGENAME}}"|no html}}
Line 37: Line 61:
 
|sign = {{{sign|}}}
 
|sign = {{{sign|}}}
 
|catchphrase = {{{catchphrase|}}}
 
|catchphrase = {{{catchphrase|}}}
 +
|ja_phrase = {{{ja-phrase|}}}
 +
|fr_phrase = {{{fr-phrase|}}}
 +
|de_phrase = {{{de-phrase|}}}
 +
|it_phrase = {{{it-phrase|}}}
 +
|es_phrase = {{{es-phrase|}}}
 +
|zh_phrase = {{{zh-phrase|}}}
 
|clothing = {{{clothes|}}}
 
|clothing = {{{clothes|}}}
 +
|clothing_ique = {{{clothes-ique|}}}
 +
|clothing_e_plus = {{{clothes-e-plus|}}}
 
|clothing_plus = {{{clothes-plus|}}}
 
|clothing_plus = {{{clothes-plus|}}}
 
|clothing_dnm = {{{clothes-dnm|}}}
 
|clothing_dnm = {{{clothes-dnm|}}}
 
|umbrella = {{{umbrella|}}}
 
|umbrella = {{{umbrella|}}}
|ac_debut = {{#incat:New characters in Animal Crossing|Yes|No}}
+
|in_dnm = {{#if:{{{in-dnm|}}}|Yes|No}}
|e_plus = {{#incat:New characters in Doubutsu no Mori e+|Yes|No}}
+
|in_plus = {{#if:{{{in-pg|}}}|Yes|No}}
|islander = {{#incat:Islanders|Yes|No}}
+
|in_pg = {{#if:{{{in-pg|}}}|Yes|No}}
 +
|in_e_plus = {{#if:{{{in-e-plus|}}}|Yes|No}}
 +
|in_ique = {{#if:{{{in-dnm|}}}|Yes|No}}
 +
|islander = {{#if:{{{islander|}}}|Yes|No}}
 
|fav_fruit = {{{favfruit|}}}
 
|fav_fruit = {{{favfruit|}}}
 
|allergic_fruit = {{{allergicfruit|}}}
 
|allergic_fruit = {{{allergicfruit|}}}
Line 49: Line 84:
 
|least_fav_clothing = {{{leastfavclothing|}}}
 
|least_fav_clothing = {{{leastfavclothing|}}}
 
|song_gift = {{{songgift|}}}
 
|song_gift = {{{songgift|}}}
 +
|starter = {{#ifeq:{{{starter|Yes}}}|Yes|Yes|No}}
 
}}}}</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}}}}}}}
|label         = Species
+
|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}}}}
|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}}]]
+
|label             = Species
|label2         = Personality
+
|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}}]]
|data2         = [[{{{personality|}}}]]
+
|label2           = Personality
|label3         = Catchphrase
+
|data2             = [[{{{personality|}}}]]
|data3         = {{{catchphrase|}}}
+
|label3           = Catchphrase
|label4         = Default clothing
+
|data3             = {{{catchphrase|}}}
|data4         = [[File:{{{clothes|}}} PG Model.png|32px|link=Item:{{{clothes|}}} (Animal Crossing)]] {{I|{{{clothes|}}}|Animal Crossing}}
+
|label4           = Default clothing
|label5        = {{#if:{{{clothes-plus|}}}|Default clothing ({{DnM+|shortest|nolink}})|}}
+
|data4             = [[File:{{#invoke:TitleCase|main|{{{clothes|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes|}}}}}|PG}}
|data5          = [[File:{{{clothes-plus|}}} DnM+ Model.png|32px|link=Item:{{{clothes-plus|}}} (Doubutsu no Mori+)]] {{I|{{{clothes-plus|}}}|Doubutsu no Mori+}}
+
|label5            = {{#if:{{{clothes-ique|}}}|Default clothing ({{iQue|shortest|nolink}})|}}
|label6        = {{#if:{{{clothes-dnm|}}}|Default clothing ({{DnM|shortest|nolink}})|}}
+
|data5            = [[File:{{#invoke:TitleCase|main|{{{clothes-ique|}}}}} iQue Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-ique|}}}}}|iQue}}
|data6          = [[File:{{{clothes-dnm|}}} DnM Model.png|32px|link=Item:{{{clothes-dnm|}}} (Doubutsu no Mori)]] {{I|{{{clothes-dnm|}}}|Doubutsu no Mori}}
+
|label6            = {{#if:{{{clothes-e-plus|}}}|Default clothing ({{DnM|shortest|nolink}}, {{DnM+|shortest|nolink}}, {{DnMe+|shortest|nolink}})|}}
|label7        = Default umbrella
+
|data6            = [[File:{{#invoke:TitleCase|main|{{{clothes-e-plus|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-e-plus|}}}}}|PG}}
|data7          = [[File:{{{umbrella|}}} PG Model.png|32px|link=Item:{{{umbrella|}}} (Animal Crossing)]] {{I|{{{umbrella|}}}|Animal Crossing}}
+
|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}})}}|}}}}
|label8        = Star sign ({{DnMe+|shortest|nolink}})
+
|data7            = [[File:{{#invoke:TitleCase|main|{{{clothes-plus|}}}}} DnM+ Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-plus|}}}}}|DnM+}}
|data8          = [[File:Starsign {{{sign|}}} NH Icon.png|32px|{{{sign|}}}|link=Star sign]] {{{sign|}}}
+
|label8            = {{#if:{{{clothes-e-plus|}}}||{{#if:{{{clothes-dnm|}}}|{{#if:{{{clothes-plus|}}}|{{#if:{{{clothes-ique|}}}|Default clothing ({{DnM|shortest|nolink}})|}}|Default clothing ({{DnM|shortest|nolink}})}}|}}}}
|label9        = {{#if:{{{favfruit|}}}|[[File:Smallcheckmark.png]] Favorite fruit|}}
+
|data8            = [[File:{{#invoke:TitleCase|main|{{{clothes-dnm|}}}}} DnM Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothes-dnm|}}}}}|DnM}}
|data9          = [[File:{{{favfruit|}}} PG Sprite.png]] {{{favfruit|}}}
+
|label9            = Default umbrella
|label10        = {{#if:{{{allergicfruit|}}}|[[File:Smallxmark.png]] Allergic fruit|}}
+
|data9            = [[File:{{#invoke:TitleCase|main|{{{umbrella|}}}}} PG Model.png|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{umbrella|}}}}}|PG}}
|data10        = [[File:{{{allergicfruit|}}} PG Sprite.png]] {{{allergicfruit|}}}
+
|labelbetween9-10  = {{#if:{{{favfruit|}}}|Fruit preferences|}}
|label11        = [[File:Smallcheckmark.png]] Favorite style ({{DnMe+|shortest|nolink}})
+
|label10          = {{#if:{{{favfruit|}}}|[[File:Smallcheckmark.png]] Favorite fruit|}}
|data11        = [[Clothing/Doubutsu no Mori e+/{{{favclothing|}}}|{{{favclothing|}}}]]
+
|data10            = [[File:{{#invoke:TitleCase|main|{{{favfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{favfruit|}}}}}|PG}}
|label12        = [[File:Smallxmark.png]] Least favorite style ({{DnMe+|shortest|nolink}})
+
|label11          = {{#if:{{{allergicfruit|}}}|[[File:Smallxmark.png|link=]] Allergic fruit|}}
|data12        = [[Clothing/Doubutsu no Mori e+/{{{leastfavclothing|}}}|{{{leastfavclothing|}}}]]
+
|data11            = [[File:{{#invoke:TitleCase|main|{{{allergicfruit|}}}}} PG Sprite.png|link=]] {{I|{{#invoke:SentenceCase|main|{{{allergicfruit|}}}}}|PG}}
|labelend       = {{#if:{{{songgift|}}}|Live song gift ({{DnMe+|shortest|nolink}})|}}
+
|labelbetween11-12 = {{#incat:Animal Crossing characters|{{DnMe+|nolink}} traits|}}
|dataend        = {{#if:{{{songgift|}}}|[[{{{songgift|}}}]]|}}
+
|label12          = Star sign
 +
|data12            = [[File:Starsign {{{sign|}}} NH Icon.png|32px|{{{sign|}}}|link={{{sign|}}}]] {{{sign|}}}
 +
|label13          = [[File:Smallcheckmark.png|link=]] Favorite style
 +
|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><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.