Difference between revisions of "Template:CFVillagerInfo"

From Nookipedia, the Animal Crossing wiki
(Adding umbrella to Cargo)
 
(22 intermediate revisions by 4 users not shown)
Line 8: Line 8:
 
|catchphrase  = String
 
|catchphrase  = String
 
|clothing      = String
 
|clothing      = String
 +
|umbrella      = String
 
|favstyle      = String
 
|favstyle      = String
 
|leastfavstyle = String
 
|leastfavstyle = String
Line 18: Line 19:
 
|name          = {{{name|{{PAGENAME}}}}}
 
|name          = {{{name|{{PAGENAME}}}}}
 
|name_sort    = {{{name_sort|{{{name|{{PAGENAME}}}}}}}}
 
|name_sort    = {{{name_sort|{{{name|{{PAGENAME}}}}}}}}
|pic          = {{{pic|[[File:{{{name|{{PAGENAME}}}}}PicACWW.png]]}}}
+
|birthday      = {{{birthday-month|{{#cargo_query:table=villager|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}}
|pic_url      = {{filepath:{{{pic|[[File:{{{name|{{PAGENAME}}}}}PicACWW.png]]}}}}}
+
|birthday_sort = {{#cargo_query:table=villager|fields=birthday_sort|where=_pageTitle="{{PAGENAME}}"|no html}}
|quote        = {{{quote|}}}
+
|sign          = {{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}
 +
|catchphrase  = {{{catchphrase|}}}
 +
|clothing      = {{{clothing|}}}
 +
|umbrella      = {{{umbrella|}}}
 
|favstyle      = {{{favstyle|}}}
 
|favstyle      = {{{favstyle|}}}
 
|leastfavstyle = {{{leastfavstyle|}}}
 
|leastfavstyle = {{{leastfavstyle|}}}
Line 29: Line 33:
 
}}}}</includeonly>
 
}}}}</includeonly>
 
{{Villager Info Box
 
{{Villager Info Box
|label         = Birthday
+
|label           = Birthday
|data           = {{{birthday-month|{{#cargo_query:table=villager|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}} [[File:Starsign {{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}} NH Icon.png|32px|{{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}|link=Star sign]]
+
|data           = {{{birthday-month|{{#cargo_query:table=villager|fields=birthday|where=_pageTitle="{{PAGENAME}}"|no html}}}}} {{{birthday|}}} [[File:Starsign {{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}} NH Icon.png|32px|{{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}|link={{{sign|{{#cargo_query:table=villager|fields=sign|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]]
|label2         = Personality
+
|label2         = Personality
|data2         = [[{{{personality|{{#cargo_query:table=villager|fields=personality|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]]
+
|data2           = [[{{{personality|{{#cargo_query:table=villager|fields=personality|where=_pageTitle="{{PAGENAME}}"|no html}}}}}]]
|label3         = Catchphrase
+
|label3         = Catchphrase
|data3          = {{{catchphrase|{{#cargo_query:table=villager|fields=phrase|where=_pageTitle="{{PAGENAME}}"|no html}}}}}
+
|data3           = {{{catchphrase|}}}
|label6        = Default Clothing
+
|label4         = Default clothing
|data6          = {{I|{{{clothing|}}}|City Folk}}
+
|data4          = [[File:{{{clothing-image|{{#invoke:TitleCase|main|{{{clothing|}}}}} CF Model.png}}}|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothing|}}}}}|CF}}
|label7        = [[File:Smallcheckmark.png]] Favorite Clothing Style
+
|label5          = Default umbrella
|data7          = [[Clothing/City Folk/{{{favstyle|}}}|{{{favstyle|}}}]]
+
|data5          = [[File:{{{umbrella-image|{{#invoke:TitleCase|main|{{{umbrella|}}}}} CF Model.png}}}|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{umbrella|}}}}}|CF}}
|label8        = [[File:Smallxmark.png]] Least Favorite Clothing Style
+
|labelbetween5-6 = Favorites
|data8          = [[Clothing/City Folk/{{{leastfavstyle|}}}|{{{leastfavstyle|}}}]]
+
|label6          = [[File:Smallcheckmark.png|link=]] Favorite clothing style
|label9        = Favorite Furniture Styles
+
|data6          = [[Clothing/City Folk/{{{favstyle|}}}|{{{favstyle|}}}]]
|data9          = [[Furniture/City Folk/{{{favfurnstyle1|}}}|{{{favfurnstyle1|}}}]] and [[Furniture/City Folk/{{{favfurnstyle2|}}}|{{{favfurnstyle2|}}}]]
+
|label7          = [[File:Smallxmark.png|link=]] Least favorite clothing style
|label10        = Favorite Color
+
|data7          = [[Clothing/City Folk/{{{leastfavstyle|}}}|{{{leastfavstyle|}}}]]
|data10        = [[Furniture/City Folk/{{{favcolor|}}}|{{Color|{{{favcolor|}}}}}]]
+
|label8          = Favorite furniture styles
|label11       = Favorite Series
+
|data8          = <!--[[Furniture/City Folk/-->{{{favfurnstyle1|}}}<!--|{{{favfurnstyle1|}}}]]--> and <!--[[Furniture/City Folk/-->{{{favfurnstyle2|}}}<!--|{{{favfurnstyle2|}}}]]-->
|data11         = [[{{{favseries|}}}]]
+
|label9          = Favorite furniture color
}}
+
|data9          = [[Furniture/City Folk/{{{favcolor|}}}|{{Color|{{{favcolor|}}}|small=yes}}]]
 +
|labelend       = Favorite series
 +
|dataend         = [[{{{favseries|}}} Series|{{{favseries|}}} Series]]
 +
}}<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:City Folk characters]]}}</includeonly><noinclude>{{Documentation}}[[Category:Villager info templates]]</noinclude>

Latest revision as of 19:46, April 25, 2024

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

Birthday Personality Catchphrase
No results [[File:Starsign No results NH Icon.png|32px|No results|link=No results]] [[No results]]
Default clothing 32px [[Item: (City Folk)|]]
Default umbrella 32px [[Item: (City Folk)|]]
Favorites
Smallcheckmark.png Favorite clothing style [[Clothing/City Folk/|]]
Smallxmark.png Least favorite clothing style [[Clothing/City Folk/|]]
Favorite furniture styles and
Favorite furniture color
 
Favorite series Series

Template documentation (view)


Usage

{{CFVillagerInfo
|name = 
|species = 
|gender = 
|personality = 
|birthday-month = 
|birthday = 
|sign = 
|catchphrase = 
|starter = 
|clothing = 
|umbrella = 
|favstyle = 
|leastfavstyle = 
|favfurnstyle1 = 
|favfurnstyle2 = 
|favcolor = 
|favseries = 
}}

Maple Example

Birthday Personality Catchphrase
June 15 Gemini Normal honey
Default clothing Citrus Gingham CF Model.png Citrus Gingham
Default umbrella Petal Parasol CF Model.png Petal Parasol
Favorites
Smallcheckmark.png Favorite clothing style Cute
Smallxmark.png Least favorite clothing style Striking
Favorite furniture styles Dignified and Trendy
Favorite furniture color
 
Yellow
Favorite series Ranch Series


{{CFVillagerInfo
|name = Maple
|species = Bear cub
|gender = Female
|personality = Normal
|birthday-month = June
|birthday = 15
|sign = Gemini
|catchphrase = honey
|starter = Yes
|clothing = Citrus Gingham
|umbrella = Petal Parasol
|favstyle = Cute
|leastfavstyle = Striking
|favfurnstyle1 = Dignified
|favfurnstyle2 = Trendy
|favcolor = Yellow
|favseries = Ranch
}}