Difference between revisions of "Template:NLVillagerInfo"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) m (adding version-added parameter; fixing categorization error) |
AlexBot2004 (talk | contribs) m (Making icon size an integer scale) |
||
(15 intermediate revisions by 3 users not shown) | |||
Line 27: | Line 27: | ||
|umbrella = String | |umbrella = String | ||
|new = Boolean | |new = Boolean | ||
− | |||
|siblings = String | |siblings = String | ||
− | | | + | |favstyle = String |
− | | | + | |leastfavstyle = String |
|favcolor = String | |favcolor = String | ||
|skill = String | |skill = String | ||
Line 67: | Line 66: | ||
|umbrella = {{{umbrella|}}} | |umbrella = {{{umbrella|}}} | ||
|new = {{#incat:New characters in Welcome amiibo|Yes|{{#incat:New characters in New Leaf|Yes|No}}}} | |new = {{#incat:New characters in Welcome amiibo|Yes|{{#incat:New characters in New Leaf|Yes|No}}}} | ||
− | |||
|siblings = {{{siblings|}}} | |siblings = {{{siblings|}}} | ||
|skill = {{{skill|}}} | |skill = {{{skill|}}} | ||
|goal = {{{goal|}}} | |goal = {{{goal|}}} | ||
|fear = {{{fear|}}} | |fear = {{{fear|}}} | ||
− | | | + | |favstyle = {{{favstyle|}}} |
− | | | + | |leastfavstyle = {{{leastfavstyle|}}} |
− | |||
− | |||
|favcolor = {{{favcolor|}}} | |favcolor = {{{favcolor|}}} | ||
|favcolor2 = {{{favcolor2|}}} | |favcolor2 = {{{favcolor2|}}} | ||
Line 88: | Line 84: | ||
|image3 = {{{model|{{{name|}}} NL Model.png}}} | |image3 = {{{model|{{{name|}}} NL Model.png}}} | ||
|caption = ''{{{quote|}}}'' | |caption = ''{{{quote|}}}'' | ||
− | |imagesize = | + | |imagesize = 128px |
− | |imagesize2 = | + | |imagesize2 = 128px |
|imagesize3 = 150px | |imagesize3 = 150px | ||
|crisp = yes | |crisp = yes | ||
|crisp2 = yes | |crisp2 = yes | ||
|label = Birthday | |label = Birthday | ||
− | |data = {{{birthday-month|}}} {{{birthday|}}} [[File:{{{sign|}}} NL Icon.png | + | |data = {{{birthday-month|}}} {{{birthday|}}} [[File:{{{sign|}}} NL Icon.png|class=sprite|{{{sign|}}}|link={{{sign|}}}]] |
|label2 = Personality | |label2 = Personality | ||
|data2 = [[{{{personality|}}}]] | |data2 = [[{{{personality|}}}]] | ||
Line 100: | Line 96: | ||
|data3 = {{{catchphrase|}}} {{#if:{{{catchphrase-note|}}}|{{Note|{{{catchphrase-note|}}}}}}}{{#if:{{{catchphrase2|}}}|<br>{{{catchphrase2|}}} {{#if:{{{catchphrase2-note|}}}|{{Note|{{{catchphrase2-note|}}}}}}}}} | |data3 = {{{catchphrase|}}} {{#if:{{{catchphrase-note|}}}|{{Note|{{{catchphrase-note|}}}}}}}{{#if:{{{catchphrase2|}}}|<br>{{{catchphrase2|}}} {{#if:{{{catchphrase2-note|}}}|{{Note|{{{catchphrase2-note|}}}}}}}}} | ||
|label6 = Default clothing | |label6 = Default clothing | ||
− | |data6 = {{#if:{{{clothing|}}}|[[File:{{{clothing-image|{{{clothing|}}} NL Model.png}}}|32px|link=]] | + | |data6 = {{#if:{{{clothing|}}}|[[File:{{{clothing-image|{{#invoke:TitleCase|main|{{{clothing|}}}}} NL Model.png}}}|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{clothing|}}}}}|New Leaf}}}} |
|label7 = {{#if:{{{umbrella|}}}|Default umbrella|}} | |label7 = {{#if:{{{umbrella|}}}|Default umbrella|}} | ||
− | |data7 = {{#if:{{{umbrella|}}}|[[File:{{{umbrella-image|{{{umbrella|}}} NL Model.png}}}|32px|link=]] | + | |data7 = {{#if:{{{umbrella|}}}|[[File:{{{umbrella-image|{{#invoke:TitleCase|main|{{{umbrella|}}}}} NL Model.png}}}|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{umbrella|}}}}}|New Leaf}} {{#ifeq:{{{species|}}}|Frog|{{Note|name=frogbrella|Frogs own umbrellas even though they do not use them}}}}}} |
|labelbetween7-8 = Favorites | |labelbetween7-8 = Favorites | ||
|label8 = [[File:Smallcheckmark.png|link=]] Favorite style | |label8 = [[File:Smallcheckmark.png|link=]] Favorite style | ||
− | |data8 = | + | |data8 = [[Clothing/New Leaf/{{{favstyle|}}}|{{{favstyle|}}}]] |
|label9 = [[File:Smallxmark.png|link=]] Least favorite style | |label9 = [[File:Smallxmark.png|link=]] Least favorite style | ||
− | |data9 = | + | |data9 = [[Clothing/New Leaf/{{{leastfavstyle|}}}|{{{leastfavstyle|}}}]] |
|label10 = Favorite color | |label10 = Favorite color | ||
− | |data10 = | + | |data10 = {{Color|{{{favcolor|}}}|small=yes}} |
|labelbetween10-11 = Biography | |labelbetween10-11 = Biography | ||
|label11 = Siblings | |label11 = Siblings | ||
Line 118: | Line 114: | ||
|data13 = {{{goal|Unknown}}} | |data13 = {{{goal|Unknown}}} | ||
|label14 = [[Halloween]] fear | |label14 = [[Halloween]] fear | ||
− | |data14 = | + | |data14 = {{#if:{{{fear|}}}|[[File:{{{fear-image|{{#invoke:TitleCase|main|{{{fear|}}}}} NL Model.png}}}|32px|link=]] {{I|{{#invoke:SentenceCase|main|{{{fear|}}}}}|New Leaf}}}} |
|labelbetween14-15 = Coffee preferences | |labelbetween14-15 = Coffee preferences | ||
|label15 = Type of beans | |label15 = Type of beans | ||
Line 126: | Line 122: | ||
|labelend = Amount of sugar | |labelend = Amount of sugar | ||
|dataend = {{{sugar|Unknown}}} | |dataend = {{{sugar|Unknown}}} | ||
− | }}<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifeq:{{{version-added|}}}|1.4|[[Category:Welcome amiibo characters]]|[[Category:New Leaf characters]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Villager info templates]]</noinclude> | + | }}<!-- |
+ | {{#if:{{#cargo_query: | ||
+ | table=nl_furniture,nl_furniture_variation | ||
+ | |join on=nl_furniture_variation.en_name = nl_furniture.en_name | ||
+ | |order by=nl_furniture.catalog_num,nl_furniture.en_name | ||
+ | |fields=nl_furniture._pageName | ||
+ | |where=nl_furniture.style='{{{favstyle|}}}' {{#ifeq:{{{favcolor|}}}|None||AND (nl_furniture_variation.color1="{{{favcolor|}}}" OR nl_furniture_variation.color2="{{{favcolor|}}}")}} AND nl_furniture.sell<>"" | ||
+ | |limit=600 | ||
+ | |no html | ||
+ | |default= | ||
+ | }}{{#cargo_query: | ||
+ | table=nl_clothing | ||
+ | |group by=nl_clothing.en_name | ||
+ | |order by=nl_clothing.clothing_category_sort,nl_clothing.catalog_num | ||
+ | |fields=nl_clothing._pageName | ||
+ | |where=nl_clothing.vill_equip=1 AND nl_clothing.style='{{{favstyle|}}}' {{#ifeq:{{{favcolor|}}}|None||AND (nl_clothing.color1="{{{favcolor|}}}" OR nl_clothing.color2="{{{favcolor|}}}")}} AND nl_clothing.sell<>"" | ||
+ | |limit=600 | ||
+ | |no html | ||
+ | |default= | ||
+ | }}{{#cargo_query: | ||
+ | |table=nl_interior | ||
+ | |group by=nl_interior.en_name | ||
+ | |order by=nl_interior.category_sort,nl_interior.catalog_num | ||
+ | |fields=nl_interior._pageName | ||
+ | |where=nl_interior.style='{{{favstyle|}}}' {{#ifeq:{{{favcolor|}}}|None||AND (nl_interior.color1="{{{favcolor|}}}" OR nl_interior.color2="{{{favcolor|}}}")}} AND nl_interior.sell<>"" | ||
+ | |limit=100 | ||
+ | |no html | ||
+ | |default= | ||
+ | }}| | ||
+ | <div style="vertical-align: top; margin-left: 10px; margin-bottom: 10px; {{roundy|15px}}; max-width: 700px; padding: 2px;"> | ||
+ | {{(!}} class="mw-collapsible mw-collapsed" align="center" cellpadding="0px" style="width: 100%; text-align:center; background-color:#FFDD66; border-top: 3px solid #FFDD66; border-right: 3px solid #FFDD66; border-left: 3px solid #FFDD66; {{roundy|10px}}" | ||
+ | ! colspan="2" {{!}} Ideal items for {{{name|}}} – {{#ifeq:{{{favcolor|}}}|None||{{{favcolor|}}} }}{{{favstyle|}}} items | ||
+ | {{!-}} | ||
+ | {{!}} <small>Villagers prefer items that matches {{#ifeq:{{{favcolor|}}}|None|their favorite style.|any one of their favorite color or style.<br />For brevity, the following list only shows items that matches both favorite color and favorite style.}}</small> | ||
+ | {{!-}} | ||
+ | {{!}} colspan="2" cellpadding="0px" style="padding:0px" {{!}} | ||
+ | {{(!}} class="sortable roundCorners" style="width: 100%; background-color: transparent" | ||
+ | ! height=20 style="background-color:#FFFFCC; color:#444444; {{roundyleft}}" {{!}} Name | ||
+ | ! style="background-color:#FFFFCC; color:#444444;" {{!}} Image | ||
+ | ! style="background-color:#FFFFCC; color:#444444;" {{!}} Price | ||
+ | ! style="background-color:#FFFFCC; color:#444444; {{roundyright}}" {{!}} Available from | ||
+ | <noinclude>|- | ||
+ | {{!}}</noinclude>{{#ifeq:{{{favcolor|}}}|None|{{#cargo_query: | ||
+ | table=nl_furniture,nl_furniture_variation | ||
+ | |join on=nl_furniture_variation.en_name = nl_furniture.en_name | ||
+ | |group by=nl_furniture.en_name | ||
+ | |order by=nl_furniture.catalog_num,nl_furniture.en_name | ||
+ | |fields=nl_furniture._pageName=pagename,nl_furniture.en_name=name,nl_furniture_variation.image,nl_furniture.buy1_price=buy,nl_furniture.buy1_currency=currency,nl_furniture.availability1,nl_furniture.availability2,nl_furniture.availability3,nl_furniture.availability_rv=availability-rv | ||
+ | |where=nl_furniture.style='{{{favstyle|}}}' AND nl_furniture.sell<>"" AND nl_furniture.availability1<>"Unobtainable" | ||
+ | |limit=600 | ||
+ | |format=template | ||
+ | |template=Ideal NL Gifts Navigate | ||
+ | |named args=yes | ||
+ | |default= | ||
+ | }}|{{#cargo_query: | ||
+ | table=nl_furniture,nl_furniture_variation | ||
+ | |join on=nl_furniture_variation.en_name = nl_furniture.en_name | ||
+ | |order by=nl_furniture.catalog_num,nl_furniture.en_name | ||
+ | |fields=nl_furniture._pageName=pagename,nl_furniture.en_name=name,nl_furniture_variation.image,nl_furniture_variation.variation,nl_furniture_variation.pattern,nl_furniture_variation.ore,nl_furniture.buy1_price=buy,nl_furniture.buy1_currency=currency,nl_furniture.availability1,nl_furniture.availability2,nl_furniture.availability3,nl_furniture.availability_rv=availability-rv | ||
+ | |where=nl_furniture.style='{{{favstyle|}}}' AND (nl_furniture_variation.color1='{{{favcolor|}}}' OR nl_furniture_variation.color2='{{{favcolor|}}}') AND nl_furniture.sell<>"" AND nl_furniture.availability1<>"Unobtainable" | ||
+ | |limit=600 | ||
+ | |format=template | ||
+ | |template=Ideal NL Gifts Navigate | ||
+ | |named args=yes | ||
+ | |default= | ||
+ | }}}}{{#cargo_query: | ||
+ | table=nl_clothing | ||
+ | |group by=nl_clothing.en_name | ||
+ | |order by=nl_clothing.clothing_category_sort,nl_clothing.catalog_num | ||
+ | |fields=nl_clothing._pageName=page,nl_clothing.en_name=name,nl_clothing.image=image,nl_clothing.buy1_price=buy,nl_clothing.buy1_currency=currency,nl_clothing.availability1,nl_clothing.availability2,nl_clothing.availability3,nl_clothing.availability_rv=availability-rv | ||
+ | |where=nl_clothing.vill_equip=1 AND nl_clothing.style='{{{favstyle|}}}' {{#ifeq:{{{favcolor|}}}|None||AND (nl_clothing.color1='{{{favcolor|}}}' OR nl_clothing.color2='{{{favcolor|}}}')}} AND nl_clothing.sell<>"" AND nl_clothing.availability1<>"Unobtainable" | ||
+ | |limit=600 | ||
+ | |format=template | ||
+ | |template=Ideal NL Gifts Navigate | ||
+ | |named args=yes | ||
+ | |default= | ||
+ | }}{{#cargo_query: | ||
+ | table=nl_interior | ||
+ | |group by=nl_interior.en_name | ||
+ | |order by=nl_interior.category_sort,nl_interior.catalog_num | ||
+ | |fields=nl_interior._pageName=page,nl_interior.en_name=name,nl_interior.image=image,nl_interior.buy1_price=buy,nl_interior.buy1_currency=currency,nl_interior.availability1,nl_interior.availability2,nl_interior.availability3,nl_interior.availability_rv=availability-rv | ||
+ | |where=nl_interior.style='{{{favstyle|}}}' {{#ifeq:{{{favcolor|}}}|None||AND (nl_interior.color1='{{{favcolor|}}}' OR nl_interior.color2='{{{favcolor|}}}')}} AND nl_interior.sell<>"" AND nl_interior.availability1<>"Unobtainable" | ||
+ | |limit=200 | ||
+ | |format=template | ||
+ | |template=Ideal NL Gifts Navigate | ||
+ | |named args=yes | ||
+ | |default= | ||
+ | }} | ||
+ | {{!)}} | ||
+ | {{!-}} | ||
+ | {{!}} colspan="2" {{!}} | ||
+ | {{(!}} width=100% cellpadding=0px style="background: transparent; border-collapse: collapse; text-align: center" | ||
+ | {{!}} {{#ifeq:{{{favcolor|}}}|None|  | ||
+ | {{!}} style="width: 100%; border-top: solid 1px #efba00; background-color:#FFDD66; font-weight:bold; text-align:center;" {{!}} <small>[[Clothing/New Leaf/{{{favstyle||}}}|<span style{{=}}"color:#444">More {{{favstyle|}}} Items</span>]]</small>|  | ||
+ | {{!}} style="width: 50%; border-top: solid 1px #efba00; border-right: solid 1px #efba00; background-color:#FFDD66; font-weight:bold; text-align:center;" {{!}} <small>[[List of {{lc:{{{favcolor||}}}}} items in New Leaf|<span style{{=}}"color:#444">More {{{favcolor|}}} Items</span>]]</small> | ||
+ | {{!}} style="width: 50%; border-top: solid 1px #efba00; background-color:#FFDD66; font-weight:bold; text-align:center;" {{!}} <small>[[Clothing/New Leaf/{{{favstyle||}}}|<span style{{=}}"color:#444">More {{{favstyle|}}} Items</span>]]</small>}} | ||
+ | {{!)}} | ||
+ | {{!)}} | ||
+ | </div>|}}--><includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#ifeq:{{{version-added|}}}|1.4|[[Category:Welcome amiibo characters]]|[[Category:New Leaf characters]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Villager info templates]]</noinclude> |
Latest revision as of 14:32, January 9, 2023
This template defines the table "nl_villager". View table.
Birthday | Personality | Catchphrase |
---|---|---|
class=sprite link= | [[]] | |
Default clothing | ||
Favorites | ||
Favorite style | [[Clothing/New Leaf/|]] | |
Least favorite style | [[Clothing/New Leaf/|]] | |
Favorite color | ||
Biography | ||
Siblings | Unknown | |
Skill | Unknown | |
Goal | Unknown | |
Halloween fear | ||
Coffee preferences | ||
Type of beans | Unknown | |
Amount of milk | Unknown | |
Amount of sugar | Unknown |
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.
Usage
General Example
{{NLVillagerInfo |name = |quote = |species = |gender = |personality = |birthday-month = |birthday = |sign = |catchphrase = |clothing = |umbrella = |leastfavstyle = |leastfavstyle = |favcolor = |siblings = |skill = |goal = |fear = |coffeetype = |milk = |sugar = }}
Maple Example
Birthday | Personality | Catchphrase |
---|---|---|
June 15 | Normal | honey |
Default clothing | Dapper tee | |
Default umbrella | Petal parasol | |
Favorites | ||
Favorite style | Basic | |
Least favorite style | Flashy | |
Favorite color | Yellow
| |
Biography | ||
Siblings | Eldest of 4 kids | |
Skill | Writing letters | |
Goal | Architect | |
Halloween fear | Bug mask | |
Coffee preferences | ||
Type of beans | Kilimanjaro | |
Amount of milk | The regular amount | |
Amount of sugar | Two spoonfuls |
{{NLVillagerInfo |name = Maple |quote = Waste not, want not. |species = Bear cub |gender = Female |personality = Normal |birthday-month = June |birthday = 15 |sign = Gemini |catchphrase = honey |clothing = dapper tee |umbrella = petal parasol |favstyle = Basic |leastfavstyle = Flashy |favcolor = Yellow |siblings = Eldest of 4 kids |skill = Writing letters |goal = Architect |fear = bug mask |coffeetype = Kilimanjaro |milk = The regular amount |sugar = Two spoonfuls }}