Difference between revisions of "Template:Villager Info"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "nh_clothing_variations" to "nh_clothing_variation")
m (Adjusting caption)
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACE}}||{{Infobox Villager/CargoAttach}}{{#switch:{{{game|}}}|WW={{Villager Info/WW/CargoAttach}}{{#cargo_store:
+
<includeonly>{{#ifeq:{{NAMESPACE}}||{{#switch:{{{game|}}}|WW={{#cargo_store:
 
_table=ww_villager
 
_table=ww_villager
 
|name ={{{name|{{PAGENAME}}}}}
 
|name ={{{name|{{PAGENAME}}}}}
Line 7: Line 7:
 
|favclothing = {{{favclothing|}}}
 
|favclothing = {{{favclothing|}}}
 
|leastfavclothing = {{{leastfavclothing|}}}
 
|leastfavclothing = {{{leastfavclothing|}}}
}}|CF={{Villager Info/CF/CargoAttach}}{{#cargo_store:
+
}}|CF={{#cargo_store:
 
_table=cf_villager
 
_table=cf_villager
 
|name ={{{name|{{PAGENAME}}}}}
 
|name ={{{name|{{PAGENAME}}}}}
Line 16: Line 16:
 
|favseries = {{{favseries|}}}
 
|favseries = {{{favseries|}}}
 
|favcolor = {{{favcolor|}}}
 
|favcolor = {{{favcolor|}}}
}}|NL={{Villager Info/NL/CargoAttach}}{{#cargo_store:
+
}}|NL={{#cargo_store:
 
_table=nl_villager
 
_table=nl_villager
 
|name ={{{name|{{PAGENAME}}}}}
 
|name ={{{name|{{PAGENAME}}}}}
 
|name_sort = {{{name_sort|{{{name|{{PAGENAME}}}}}}}}
 
|name_sort = {{{name_sort|{{{name|{{PAGENAME}}}}}}}}
|pic = {{{pic|[[File:{{PAGENAME}}PicACNL.png]]}}}
+
|pic = {{{pic|[[File:{{{name|{{PAGENAME}}}}}'s Pic {{#incat:Welcome amiibo characters|WA|NL}} Texture.png]]}}}
 
|quote = {{{quote|}}}
 
|quote = {{{quote|}}}
 
|siblings = {{{siblings|}}}
 
|siblings = {{{siblings|}}}
Line 32: Line 32:
 
|milk = {{{milk|}}}
 
|milk = {{{milk|}}}
 
|sugar = {{{sugar|}}}
 
|sugar = {{{sugar|}}}
}}|NH={{Villager Info/NH/CargoAttach}}{{#cargo_store:
 
_table=nh_villager
 
|name ={{{name|{{PAGENAME}}}}}
 
|name_sort = {{{name_sort|{{{name|{{PAGENAME}}}}}}}}
 
|pic = {{{pic|{{PAGENAME}}PicACNH.png}}}
 
|pic_url = {{filepath:{{{pic|{{PAGENAME}}PicACNH.png}}}}}
 
|quote = {{{quote|}}}
 
|favstyle1 = {{{favstyle1|}}}
 
|favstyle2 = {{{favstyle2|}}}
 
|favcolor1 = {{{favcolor1|}}}
 
|favcolor2 = {{{favcolor2|}}}
 
 
}}}}}}</includeonly><div class="flex-container">
 
}}}}}}</includeonly><div class="flex-container">
 
<div class="flex-item">
 
<div class="flex-item">
Line 52: Line 41:
 
! colspan="2" style="border: 2px solid #61939b; background:#8cbcd1; {{roundytop|10px}};" {{!}} Picture
 
! colspan="2" style="border: 2px solid #61939b; background:#8cbcd1; {{roundytop|10px}};" {{!}} Picture
 
{{!-}}
 
{{!-}}
{{!}} width="62px" {{!}} {{{pic|[[File:{{PAGENAME}}PicACNL.png]]}}}
+
{{!}} width="62px" {{!}} {{{pic|[[File:{{{name|{{PAGENAME}}}}}'s Pic {{#incat:Welcome amiibo characters|WA|NL}} Texture.png|{{{name|{{PAGENAME}}}}}'s picture in Animal Crossing: New Leaf]]}}}
 
{{!}} style="border: 2px solid #8cbcd1; background:#B3dae7; text-align:center;" {{!}} ''{{{quote|Please insert ACNL picture quote here.}}}''
 
{{!}} style="border: 2px solid #8cbcd1; background:#B3dae7; text-align:center;" {{!}} ''{{{quote|Please insert ACNL picture quote here.}}}''
 
}}
 
}}
Line 165: Line 154:
 
|join on=nh_clothing_variation.en_name = nh_clothing.en_name
 
|join on=nh_clothing_variation.en_name = nh_clothing.en_name
 
|fields=nh_clothing_variation.en_name=name,nh_clothing_variation.variation,nh_clothing_variation.image=image,nh_clothing.buy1_price=buy,nh_clothing.buy1_currency=currency,nh_clothing.availability1,nh_clothing.availability2
 
|fields=nh_clothing_variation.en_name=name,nh_clothing_variation.variation,nh_clothing_variation.image=image,nh_clothing.buy1_price=buy,nh_clothing.buy1_currency=currency,nh_clothing.availability1,nh_clothing.availability2
|where=nh_clothing.vill_equip=1 AND nh_clothing.style='{{{favstyle1|Simple}}}' AND nh_clothing_variation.color1='{{{favcolor1|}}}' AND nh_clothing_variation.color2='{{{favcolor2|{{{favcolor1|}}}}}}' {{#if:{{{favcolor2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style='{{{favstyle1|}}}' AND nh_clothing_variation.color1='{{{favcolor2|}}}' AND nh_clothing_variation.color2='{{{favcolor1|}}}'|}} {{#if:{{{favstyle2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style='{{{favstyle2|}}}' AND nh_clothing_variation.color1='{{{favcolor1|}}}' AND nh_clothing_variation.color2='{{{favcolor2|{{{favcolor1|}}}}}}' {{#if:{{{favcolor2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style='{{{favstyle2|}}}' AND nh_clothing_variation.color1='{{{favcolor2|}}}' AND nh_clothing_variation.color2='{{{favcolor1|}}}'|}}|}}
+
|where=nh_clothing.vill_equip=1 AND nh_clothing.style1='{{{favstyle1|}}}' AND nh_clothing_variation.color1='{{{favcolor1|}}}' AND nh_clothing_variation.color2='{{{favcolor2|{{{favcolor1|}}}}}}' {{#if:{{{favcolor2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style1='{{{favstyle1|}}}' AND nh_clothing_variation.color1='{{{favcolor2|}}}' AND nh_clothing_variation.color2='{{{favcolor1|}}}'|}} {{#if:{{{favstyle2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style1='{{{favstyle2|}}}' AND nh_clothing_variation.color1='{{{favcolor1|}}}' AND nh_clothing_variation.color2='{{{favcolor2|{{{favcolor1|}}}}}}' {{#if:{{{favcolor2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style1='{{{favstyle2|}}}' AND nh_clothing_variation.color1='{{{favcolor2|}}}' AND nh_clothing_variation.color2='{{{favcolor1|}}}'|}}|}} OR nh_clothing.vill_equip=1 AND nh_clothing.style2='{{{favstyle1|}}}' AND nh_clothing_variation.color1='{{{favcolor1|}}}' AND nh_clothing_variation.color2='{{{favcolor2|{{{favcolor1|}}}}}}' {{#if:{{{favcolor2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style2='{{{favstyle1|}}}' AND nh_clothing_variation.color1='{{{favcolor2|}}}' AND nh_clothing_variation.color2='{{{favcolor1|}}}'|}} {{#if:{{{favstyle2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style2='{{{favstyle2|}}}' AND nh_clothing_variation.color1='{{{favcolor1|}}}' AND nh_clothing_variation.color2='{{{favcolor2|{{{favcolor1|}}}}}}' {{#if:{{{favcolor2|}}}|OR nh_clothing.vill_equip=1 AND nh_clothing.style2='{{{favstyle2|}}}' AND nh_clothing_variation.color1='{{{favcolor2|}}}' AND nh_clothing_variation.color2='{{{favcolor1|}}}'|}}|}}
 
|order by=nh_clothing_variation.en_name
 
|order by=nh_clothing_variation.en_name
 
|format=template
 
|format=template
 
|template=Ideal NH Gifts Navigate‎‎
 
|template=Ideal NH Gifts Navigate‎‎
 
|named args=yes
 
|named args=yes
|limit=100
+
|limit=300
 
}}
 
}}
 
}}
 
}}
Line 190: Line 179:
 
|}
 
|}
 
</div>
 
</div>
</div><includeonly><span id="api-villager_picture" style="display:none;">{{filepath:{{#incat:New Horizons characters|{{{pic|{{PAGENAME}}PicACNH.png}}}|{{#incat:New Leaf update characters|{{{pic|{{PAGENAME}}PicACNL.png}}}|{{{pic|{{PAGENAME}}PicACWW.png}}}}}}}}}</span><span id="api-villager_siblings" style="display:none;">{{{siblings|Unknown}}}</span><span id="api-villager_skill" style="display:none;">{{{skill|Unknown}}}</span><span id="api-villager_goal" style="display:none;">{{{goal|Unknown}}}</span><span id="api-villager_fear" style="display:none;">{{{fear|Unknown}}}</span><span id="api-villager_favclothing" style="display:none;">{{{favclothing|Unknown}}}</span><span id="api-villager_leastfavclothing" style="display:none;">{{{leastfavclothing|Unknown}}}</span><span id="api-villager_favcolor" style="display:none;">{{{favcolor|Unknown}}}</span><span id="api-villager_coffee-type" style="display:none;">{{{coffeetype|Unknown}}}</span><span id="api-villager_coffee-milk" style="display:none;">{{{milk|Unknown}}}</span><span id="api-villager_coffee-sugar" style="display:none;">{{{sugar|Unknown}}}</span></includeonly>
+
</div><includeonly><span id="api-villager_picture" style="display:none;">{{filepath:{{#incat:New Horizons characters|{{{pic|{{PAGENAME}}PicACNH.png}}}|{{#incat:Welcome amiibo characters|{{{pic|{{PAGENAME}}PicACNL.png}}}|{{{pic|{{PAGENAME}}PicACWW.png}}}}}}}}}</span><span id="api-villager_siblings" style="display:none;">{{{siblings|Unknown}}}</span><span id="api-villager_skill" style="display:none;">{{{skill|Unknown}}}</span><span id="api-villager_goal" style="display:none;">{{{goal|Unknown}}}</span><span id="api-villager_fear" style="display:none;">{{{fear|Unknown}}}</span><span id="api-villager_favclothing" style="display:none;">{{{favclothing|Unknown}}}</span><span id="api-villager_leastfavclothing" style="display:none;">{{{leastfavclothing|Unknown}}}</span><span id="api-villager_favcolor" style="display:none;">{{{favcolor|Unknown}}}</span><span id="api-villager_coffee-type" style="display:none;">{{{coffeetype|Unknown}}}</span><span id="api-villager_coffee-milk" style="display:none;">{{{milk|Unknown}}}</span><span id="api-villager_coffee-sugar" style="display:none;">{{{sugar|Unknown}}}</span></includeonly>
 
 
<noinclude>==Example==
 
{{Villager Info
 
|game = NL
 
|pic = [[File:Unknown Frame.png]]
 
|quote = (Quote)
 
|siblings = (Siblings)
 
|skill = (Skill)
 
|goal = (Goal)
 
|fear = (Fear)
 
|favclothing = (Favorite)
 
|leastfavclothing = (Least Favorite)
 
|favcolor = (Favorite Color)
 
|coffeetype = (Type)
 
|milk = (Milk)
 
|sugar = (Sugar)
 
}}
 
 
 
==Usage==
 
===For ''Animal Crossing: Wild World''===
 
<pre>
 
{{Villager Info
 
|game = WW
 
|pic =
 
|quote =
 
|favclothing =
 
|leastfavclothing =
 
}}
 
</pre>
 
 
 
===For ''Animal Crossing: City Folk''===
 
<pre>
 
{{Villager Info
 
|game = CF
 
|favclothing =
 
|leastfavclothing =
 
|favgenre =
 
|favseries =
 
|favcolor =
 
}}
 
</pre>
 
 
 
===For ''Animal Crossing: New Leaf''===
 
<pre>
 
{{Villager Info
 
|game = NL
 
|pic =
 
|quote =
 
|siblings =
 
|skill =
 
|goal =
 
|fear =
 
|favclothing =
 
|leastfavclothing =
 
|favcolor =
 
|coffeetype =
 
|milk =
 
|sugar =
 
}}
 
</pre>
 
  
===For ''Animal Crossing: New Horizons''===
+
<noinclude>{{Documentation}}
<pre>
+
[[Category:Templates]]
{{Villager Info
 
|game = NH
 
|pic =
 
|quote =
 
|favstyle1 =
 
|favstyle2 =
 
|favcolor1 =
 
|favcolor2 =
 
}}
 
</pre>
 
 
</noinclude>
 
</noinclude>

Revision as of 20:41, September 23, 2020

Template documentation (view)


Emotion Surprise NH Icon cropped.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
Emotion Surprise NH Icon cropped.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

Example

Picture
Unknown Frame.png (Quote)
Biography
Siblings (Siblings)
Skill (Skill)
Goal (Goal)
Fear (Fear)
Favorites
Clothing Smallcheckmark.png (Favorite)
Smallxmark.png (Least Favorite)
Color (Favorite Color)
Coffee
Type (Type)
Milk (Milk)
Sugar (Sugar)


Usage

For Animal Crossing: Wild World

{{Villager Info
|game = WW
|pic =
|quote = 
|favclothing = 
|leastfavclothing = 
}}

For Animal Crossing: City Folk

{{Villager Info
|game = CF
|favclothing = 
|leastfavclothing = 
|favgenre = 
|favseries = 
|favcolor = 
}}

For Animal Crossing: New Leaf

{{Villager Info
|game = NL
|pic =
|quote = 
|siblings = 
|skill = 
|goal = 
|fear =
|favclothing = 
|leastfavclothing = 
|favcolor = 
|coffeetype = 
|milk = 
|sugar = 
}}

For Animal Crossing: New Horizons

{{Villager Info
|game = NH
|pic =
|quote = 
|favstyle1 = 
|favstyle2 = 
|favcolor1 = 
|favcolor2 = 
}}