Difference between revisions of "Template:NHClothing"

From Nookipedia, the Animal Crossing wiki
(on second thought, maybe I should just use a bot for this.)
Tag: Undo
m (Text replacement - "{{#invoke:SentenceCase|main|{{{name|}}}}} " to "{{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}} ")
(18 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
|identifier = String
 
|identifier = String
 
|en_name = String
 
|en_name = String
 +
|catalog_num = Integer
 
|category = String
 
|category = String
 
|category_sort = Integer
 
|category_sort = Integer
Line 25: Line 26:
 
|availability3 = String
 
|availability3 = String
 
|availability3_note = String
 
|availability3_note = String
 +
|availability4 = String
 +
|availability4_note = String
 +
|availability_other = List (,) of String
 +
|availability_other_note = String
 
|variation_total = Integer
 
|variation_total = Integer
 
|vill_equip = Boolean
 
|vill_equip = Boolean
Line 66: Line 71:
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
 +
|catalog_num = {{{num|}}}
 
|category = {{{category|}}}
 
|category = {{{category|}}}
 
|category_sort = {{#switch:{{{category|}}}|Tops=1|Bottoms=2|Dress-Up=3|Headwear=4|Accessories=5|Socks=6|Shoes=7|Bags=8|Umbrellas=9|Other=10}}
 
|category_sort = {{#switch:{{{category|}}}|Tops=1|Bottoms=2|Dress-Up=3|Headwear=4|Accessories=5|Socks=6|Shoes=7|Bags=8|Umbrellas=9|Other=10}}
Line 88: Line 94:
 
|availability3 = {{{availability3|}}}
 
|availability3 = {{{availability3|}}}
 
|availability3_note = {{{availability3-note|}}}
 
|availability3_note = {{{availability3-note|}}}
 +
|availability4 = {{{availability4|}}}
 +
|availability4_note = {{{availability4-note|}}}
 +
|availability_other = {{{availability-other|}}}
 +
|availability_other_note = {{{availability-other-note|}}}
 
|variation_total = {{#if:{{{variation1|}}}|{{#expr:1+{{#if:{{{variation2|}}}|1|0}}+{{#if:{{{variation3|}}}|1|0}}+{{#if:{{{variation4|}}}|1|0}}+{{#if:{{{variation5|}}}|1|0}}+{{#if:{{{variation6|}}}|1|0}}+{{#if:{{{variation7|}}}|1|0}}+{{#if:{{{variation8|}}}|1|0}}}}|0}}
 
|variation_total = {{#if:{{{variation1|}}}|{{#expr:1+{{#if:{{{variation2|}}}|1|0}}+{{#if:{{{variation3|}}}|1|0}}+{{#if:{{{variation4|}}}|1|0}}+{{#if:{{{variation5|}}}|1|0}}+{{#if:{{{variation6|}}}|1|0}}+{{#if:{{{variation7|}}}|1|0}}+{{#if:{{{variation8|}}}|1|0}}}}|0}}
 
|vill_equip = {{#switch:{{{category|}}}|Bottoms|Socks|Shoes|Bags|Other = No|{{{vill-equip|Yes}}}}}
 
|vill_equip = {{#switch:{{{category|}}}|Bottoms|Socks|Shoes|Bags|Other = No|{{{vill-equip|Yes}}}}}
Line 145: Line 155:
 
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
 
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
 
_table=nh_identifier
 
_table=nh_identifier
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
+
|identifier = {{{identifier|}}}
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
+
|en_name = {{{name|}}}
 
|category = Clothing
 
|category = Clothing
 
}}<!-- Cargo Store for recipe, if craftable --> {{#if: {{{mat1|}}}
 
}}<!-- Cargo Store for recipe, if craftable --> {{#if: {{{mat1|}}}
Line 153: Line 163:
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{{name|}}} NH DIY Icon.png
+
|num = {{{diy-num|}}}
|image_url = {{filepath:{{{name|}}} NH DIY Icon.png}}
+
|image = {{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png
 +
|image_url = {{filepath:{{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png}}
 
|serial_id = {{{serial-id|}}}
 
|serial_id = {{{serial-id|}}}
 
|type = Clothing
 
|type = Clothing
Line 186: Line 197:
 
|version_added = {{{version-added|}}}
 
|version_added = {{{version-added|}}}
 
|notes =  
 
|notes =  
}} | }} {{#if: {{{variation1|}}} |[[Category:New Horizons clothing with variations]] {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#cargo_store:
+
}} | }} {{#if: {{{variation1|}}} | {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}}}}}}{{#cargo_store:
 
_table=nh_clothing_variation
 
_table=nh_clothing_variation
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}
+
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}}
 
|image_url = {{filepath:{{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}}
 
|image_url = {{filepath:{{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}}
|image_storage = {{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH  Storage Icon.png|{{{image2|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png}}}|}}
+
|image_storage = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH  Storage Icon.png|{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png}}}|}}
|image_storage_url = {{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png|{{filepath:{{{image2|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png}}}}}|}}
+
|image_storage_url = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png|{{filepath:{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png}}}}}|}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation_number = {{#var: key }}
 
|variation_number = {{#var: key }}
 
|color1 = {{{var{{#var: key }}-color1|}}}
 
|color1 = {{{var{{#var: key }}-color1|}}}
 
|color2 = {{{var{{#var: key }}-color2|}}}
 
|color2 = {{{var{{#var: key }}-color2|}}}
}} }} | <!-- Cargo Store for sole item (no variations) -->{{#cargo_store:
+
}} }} | <!-- Cargo Store for sole item (no variations) -->{{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}}}{{#cargo_store:
 
_table=nh_clothing_variation
 
_table=nh_clothing_variation
 
|identifier = {{{identifier|}}}
 
|identifier = {{{identifier|}}}
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{{image|{{{name|}}} NH Icon.png}}}
+
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}
|image_url = {{filepath:{{{image|{{{name|}}} NH Icon.png}}}}}
+
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}
|image_storage = {{#ifexist:File:{{{name|}}} NH Storage Icon.png|{{{image2|{{{name|}}} NH Storage Icon.png}}}|}}
+
|image_storage = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png|{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png}}}|}}
|image_storage_url = {{#ifexist:File:{{{name|}}} NH Storage Icon.png|{{filepath:{{{image2|{{{name|}}} NH Storage Icon.png}}}}}|}}
+
|image_storage_url = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png|{{filepath:{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png}}}}}|}}
 
|variation =
 
|variation =
 
|variation_number = 1
 
|variation_number = 1
Line 214: Line 225:
 
_table=nh_distribution
 
_table=nh_distribution
 
|en_name = {{{name|}}}
 
|en_name = {{{name|}}}
|image = {{#if: {{{variation1|}}} | {{{image|{{{name|}}} ({{{variation1|}}}) NH Icon.png}}} | {{{image|{{{name|}}} NH Icon.png}}} }}
+
|image = {{#if: {{{variation1|}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}} }}
 
|type = Clothing
 
|type = Clothing
 
|distribution = {{{distribution|}}}
 
|distribution = {{{distribution|}}}
Line 232: Line 243:
 
|event_date_sort = {{{event-date-sort|}}}
 
|event_date_sort = {{{event-date-sort|}}}
 
|version_added = {{{version-added|}}}
 
|version_added = {{{version-added|}}}
}}|}}|}}}}</includeonly>{{Infobox 2.0
+
}}|}}|}}}}<metakeywords>clothing, clothes, outfit, item, animal crossing, acnh, new horizons</metakeywords></includeonly>{{Infobox 2.0
 
  | primarycolor    = 39 100
 
  | primarycolor    = 39 100
 
  | secondarycolor  = 42 73
 
  | secondarycolor  = 42 73
  | title            = {{{name|}}}
+
  | title            = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}
 
  | subtitleabove    = {{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{series|}}}|[[{{{series-link|{{{series|}}}}}} Series|{{{series|}}} Series]]|}}{{#if:{{{set|}}}|{{#if:{{{series|}}}|,&nbsp;|}}[[{{{set-link|{{{set|}}}}}} Set|{{{set|}}} Set]]|}}{{#if:{{{function1|}}}|{{#if:{{{series|}}}{{{set|}}}|&nbsp;&nbsp;{{Colorshow|dcab00|'''{{!}}'''}}&nbsp;&nbsp;}}{{{function1|}}}{{#if:{{{function2|}}}|,&nbsp;{{{function2|}}}}}{{#if:{{{function3|}}}|,&nbsp;{{{function3|}}}}}}}{{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|</span>|}}
 
  | subtitleabove    = {{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{series|}}}|[[{{{series-link|{{{series|}}}}}} Series|{{{series|}}} Series]]|}}{{#if:{{{set|}}}|{{#if:{{{series|}}}|,&nbsp;|}}[[{{{set-link|{{{set|}}}}}} Set|{{{set|}}} Set]]|}}{{#if:{{{function1|}}}|{{#if:{{{series|}}}{{{set|}}}|&nbsp;&nbsp;{{Colorshow|dcab00|'''{{!}}'''}}&nbsp;&nbsp;}}{{{function1|}}}{{#if:{{{function2|}}}|,&nbsp;{{{function2|}}}}}{{#if:{{{function3|}}}|,&nbsp;{{{function3|}}}}}}}{{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|</span>|}}
  | lefticon        = [[File:{{#switch: {{{category|}}}
+
  | lefticon        = [[File:{{{inv-icon|{{#switch: {{{category|}}}
 +
| Tops = Top NH Inv Icon.png
 +
| Bottoms = Bottoms NH Inv Icon.png
 +
| Dress-up
 +
| Dress-Up = Dress-Up NH Inv Icon.png
 +
| Headgear
 +
| Headwear = {{#ifeq:{{{vill-equip|}}}|No|Helmet NH Inv Icon.png|Headwear NH Inv Icon.png}}
 +
| Accessories = Accessory NH Inv Icon.png
 +
| Socks = Socks NH Inv Icon.png
 +
| Shoes = Shoes NH Inv Icon.png
 +
| Bags = {{#if:{{{tool|}}}|Handbag NH Inv Icon.png|Bag NH Inv Icon.png}}
 +
| Umbrellas = Umbrella NH Inv Icon.png
 +
| #default = {{{inv-icon|}}}}}}}}|sub|32px|link=]]
 +
| righticon      = [[File:{{#switch: {{{category|}}}
 
  | Tops = Clothes NH Category Icon.png{{!}}Type of top
 
  | Tops = Clothes NH Category Icon.png{{!}}Type of top
 
  | Bottoms = Bottom NH Category Icon.png{{!}}Type of bottom
 
  | Bottoms = Bottom NH Category Icon.png{{!}}Type of bottom
 +
| Dress-up
 
  | Dress-Up = Onepiece NH Category Icon.png{{!}}Type of dress-up
 
  | Dress-Up = Onepiece NH Category Icon.png{{!}}Type of dress-up
 
  | Headgear = Hat NH Category Icon.png{{!}}Type of headgear
 
  | Headgear = Hat NH Category Icon.png{{!}}Type of headgear
Line 249: Line 274:
 
  | Umbrellas = Umbrella NH Category Icon.png{{!}}Type of umbrella
 
  | Umbrellas = Umbrella NH Category Icon.png{{!}}Type of umbrella
 
  | Other = All NH Category Icon.png{{!}}Type of other clothing
 
  | Other = All NH Category Icon.png{{!}}Type of other clothing
  | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]
+
  | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]{{#if:{{{num|}}}|&nbsp;'''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}}
| righticon      = &nbsp;
 
  
  | image            = {{#ifexist:File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|{{{image-size|256px}}}|{{{name|}}}]]|[[File:Nia.png|256px|No image available|link=]]}}
+
  | image            = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}})}} NH Icon.png|[[File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}})}} NH Icon.png|{{{image-size|256px}}}|{{#invoke:SentenceCase|main|{{{name|}}}}}]]|[[File:Nia.png|256px|No image available|link=]]}}
  | caption          = {{#if:{{{variation1|}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}|}}}}
+
  | caption          = {{#if:{{{variation1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}
| image2          = {{#ifexist:File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Storage Icon.png|[[File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Storage Icon.png|128px|{{{name|}}}]]|{{#ifeq:{{{category|}}}|Umbrellas||{{#if:{{{tool|}}}||<includeonly>[[Category:Items with missing storage images]]</includeonly>}}}}}}
 
  
 
  | leftlabel        = Buy price
 
  | leftlabel        = Buy price
 
  | rightlabel      = Sell price
 
  | rightlabel      = Sell price
  | leftdata        = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}{{#if:{{{buy2-price|}}}|<br>{{Currency|{{{buy2-currency|}}}|{{{buy2-price|}}}|short=yes}}}}
+
  | leftdata        = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes|note={{{buy1-note|}}}}}|Not for sale}}{{#if:{{{buy2-price|}}}|<br>{{Currency|{{{buy2-currency|}}}|{{{buy2-price|}}}|short=yes|note={{{buy2-note|}}}}}}}
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}
+
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}}
  
 
  | label            = Obtain via
 
  | label            = Obtain via
  | data            = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{{availability3-note|}}}}}}}
+
  | data            = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{{availability3-note|}}}}}}}{{#if:{{{availability4|}}}|{{Availability|{{{availability4|}}}|note={{{availability4-note|}}}}}}}{{#if:{{{availability-rv|}}}|{{#invoke: Items | outputRVAvailabilitiesFromList | {{{availability-rv|}}}}}}}{{#if: {{{availability-other|}}} | <div class="mw-collapsible mw-collapsed" style="width:100%">
 +
Also available from...
 +
<div class="mw-collapsible-content">
 +
{{#invoke: Items | outputAvailabilitiesFromList | {{{availability-other|}}} }}
 +
</div>
 +
</div> | }}
  
 
  | label2          = Recipe
 
  | label2          = Recipe
 
  | data2            = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}}}{{#if:{{{mat2|}}}|{{Material|{{{mat2|}}}|{{{mat2-num|}}}}}}}{{#if:{{{mat3|}}}|{{Material|{{{mat3|}}}|{{{mat3-num|}}}}}}}{{#if:{{{mat4|}}}|{{Material|{{{mat4|}}}|{{{mat4-num|}}}}}}}{{#if:{{{mat5|}}}|{{Material|{{{mat5|}}}|{{{mat5-num|}}}}}}}{{#if:{{{mat6|}}}|{{Material|{{{mat6|}}}|{{{mat6-num|}}}}}}}}}
 
  | data2            = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}}}{{#if:{{{mat2|}}}|{{Material|{{{mat2|}}}|{{{mat2-num|}}}}}}}{{#if:{{{mat3|}}}|{{Material|{{{mat3|}}}|{{{mat3-num|}}}}}}}{{#if:{{{mat4|}}}|{{Material|{{{mat4|}}}|{{{mat4-num|}}}}}}}{{#if:{{{mat5|}}}|{{Material|{{{mat5|}}}|{{{mat5-num|}}}}}}}{{#if:{{{mat6|}}}|{{Material|{{{mat6|}}}|{{{mat6-num|}}}}}}}}}
  
  | label3          = Recipe obtained via
+
  | label3           = Recipe type
  | data3           = {{#if:{{{diy-availability1|}}}|{{Availability|{{{diy-availability1|}}}|size=sub{{!}}18px|note={{{diy-availability1-note|}}}}}{{#if:{{{diy-availability2|}}}|{{Availability|{{{diy-availability2|}}}|size=sub{{!}}18px|note={{{diy-availability2-note|}}}}}}}{{#if:{{{diy-availability3|}}}|{{Availability|{{{diy-availability3|}}}|size=sub{{!}}18px|note={{{diy-availability3-note|}}}}}}}}}
+
| data3            = {{#if:{{{diy-availability1|}}}|[[DIY recipes/Clothing|Equipment]]{{#if:{{{diy-num|}}}|&nbsp;(<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{diy-num|}}}}})}}}}
 +
 
 +
| label4           = Recipe obtained via
 +
  | data4           = {{#if:{{{diy-availability1|}}}|{{Availability|{{{diy-availability1|}}}|size=sub{{!}}18px|note={{{diy-availability1-note|}}}}}{{#if:{{{diy-availability2|}}}|{{Availability|{{{diy-availability2|}}}|size=sub{{!}}18px|note={{{diy-availability2-note|}}}}}}}{{#if:{{{diy-availability3|}}}|{{Availability|{{{diy-availability3|}}}|size=sub{{!}}18px|note={{{diy-availability3-note|}}}}}}}}}
  
  | label4           = Styles
+
  | label5           = Styles
  | data4           = {{#if:{{{style1|}}}|[[Clothing/New Horizons/{{{style1|}}}|{{{style1|}}}]]{{#if:{{{style2|}}}|&nbsp;/ [[Clothing/New Horizons/{{{style2|}}}|{{{style2|}}}]]}}}}
+
  | data5           = {{#if:{{{style1|}}}|[[Clothing/New Horizons/{{{style1|}}}|{{{style1|}}}]]{{#if:{{{style2|}}}|&nbsp;/ [[Clothing/New Horizons/{{{style2|}}}|{{{style2|}}}]]}}}}
  
  | label5           = Label themes
+
  | label6           = Label themes
  | data5           = {{#if:{{{label1|}}}|[[Clothing/New Horizons/{{{label1|}}}|{{{label1|}}}]]{{#if:{{{label2|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label2|}}}|{{{label2|}}}]]}}{{#if:{{{label3|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label3|}}}|{{{label3|}}}]]}}{{#if:{{{label4|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label4|}}}|{{{label4|}}}]]}}{{#if:{{{label5|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label5|}}}|{{{label5|}}}]]}}}}
+
  | data6           = {{#if:{{{label1|}}}|[[Clothing/New Horizons/{{{label1|}}}|{{{label1|}}}]]{{#if:{{{label2|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label2|}}}|{{{label2|}}}]]}}{{#if:{{{label3|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label3|}}}|{{{label3|}}}]]}}{{#if:{{{label4|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label4|}}}|{{{label4|}}}]]}}{{#if:{{{label5|}}}|&nbsp;/ [[Clothing/New Horizons/{{{label5|}}}|{{{label5|}}}]]}}}}
  
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label6 = Colors
+
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label7 = Colors
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data6 = <div style="display:inline-block; vertical-align:top; line-height:.9em;">[[Clothing/New Horizons/{{{color1|}}}|{{Color|{{{color1|Unknown}}}|display=inline-block}}]]&nbsp;[[Clothing/New Horizons/{{{color2|}}}|{{Color|{{{color2|Unknown}}}|display=inline-block}}]]</div>
+
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data7 = <div style="display:inline-block; vertical-align:top; line-height:.9em;">[[Clothing/New Horizons/{{{color1|}}}|{{Color|{{{color1|Unknown}}}|display=inline-block}}]]&nbsp;[[Clothing/New Horizons/{{{color2|}}}|{{Color|{{{color2|Unknown}}}|display=inline-block}}]]</div>
  
 
  | widebottomlabel  = Variations
 
  | widebottomlabel  = Variations
Line 284: Line 315:
 
{{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var">
 
{{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var">
 
<div class="nh_item-var-img">
 
<div class="nh_item-var-img">
[[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#if:{{{pattern1|}}}|{{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|Nia.png}}|{{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|Nia.png}}}}}}|36px|{{{name|}}}'s {{{variation{{#var: key }}|}}} variant]]</div></div>}}</div>
+
[[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png|Nia.png}}}}|36px|{{#invoke:SentenceCase|main|{{{name|}}}}}'s {{{variation{{#var: key }}|}}} variant]]</div></div>}}</div>
 
| <div style="width:100%; text-align: center;">None</div> }}
 
| <div style="width:100%; text-align: center;">None</div> }}
  
Line 293: Line 324:
 
  | widebottomdata3  = {{#cargo_query:tables=pg_clothing|fields=CONCAT("[[Item:", pg_clothing.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_clothing.en_name, ")]]<br />")|where=pg_clothing.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=ww_clothing|fields=CONCAT("[[Item:", ww_clothing.en_name, " (Wild World)|''Wild World'' (", ww_clothing.en_name, ")]]<br />")|where=ww_clothing.identifier="{{{identifier|}}}"|default=}}
 
  | widebottomdata3  = {{#cargo_query:tables=pg_clothing|fields=CONCAT("[[Item:", pg_clothing.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_clothing.en_name, ")]]<br />")|where=pg_clothing.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=ww_clothing|fields=CONCAT("[[Item:", ww_clothing.en_name, " (Wild World)|''Wild World'' (", ww_clothing.en_name, ")]]<br />")|where=ww_clothing.identifier="{{{identifier|}}}"|default=}}
  
  | languages        = Name
+
  | languages        = Names
 
  | ja-name          = {{{ja-name|}}}
 
  | ja-name          = {{{ja-name|}}}
 
  | ko-name          = {{{ko-name|}}}
 
  | ko-name          = {{{ko-name|}}}
Line 313: Line 344:
 
}}
 
}}
 
<includeonly>
 
<includeonly>
[[Category:New Horizons {{#switch: {{{category|}}}
+
{{#ifeq:{{NAMESPACE}}|Item|[[Category:New Horizons clothing]]{{#if: {{{variation1|}}} |[[Category:New Horizons clothing with variations]]}}[[Category:New Horizons {{#switch: {{{category|}}}
 
  | Tops = tops
 
  | Tops = tops
 
  | Bottoms = bottoms
 
  | Bottoms = bottoms
 +
| Dress-up
 
  | Dress-Up = dress-up
 
  | Dress-Up = dress-up
 
  | Headgear = headgear
 
  | Headgear = headgear
Line 325: Line 357:
 
  | Umbrellas = umbrellas
 
  | Umbrellas = umbrellas
 
  | Other = other clothing
 
  | Other = other clothing
  | {{{category|}}}}}]]{{#if: {{{availability1|}}} | [[Category:Acquired from {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}]]}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#if: {{{diy-availability1|}}}|[[Category:Recipes acquired from {{{diy-availability1|}}}]]}}{{#if: {{{diy-availability2|}}}|[[Category:Recipes acquired from {{{diy-availability2|}}}]]}}{{#if: {{{diy-availability3|}}}|[[Category:Recipes acquired from {{{diy-availability3|}}}]]}}{{#if:{{{ja-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:New Horizons items with missing other language information]]}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude>
+
  | {{{category|}}}}}]]{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}]]}}}}{{#if: {{{availability2|}}} | {{#ifeq:{{{availability2|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}]]}}}}{{#if: {{{availability3|}}} | {{#ifeq:{{{availability3|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#ifeq:{{{availability3|}}}|Crafting|crafting|{{{availability3|}}}}}]]}}}}{{#if: {{{availability4|}}} | {{#ifeq:{{{availability4|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#ifeq:{{{availability4|}}}|Crafting|crafting|{{{availability4|}}}}}]]}}}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#if: {{{diy-availability1|}}}|[[Category:Recipes acquired from {{{diy-availability1|}}}]]}}{{#if: {{{diy-availability2|}}}|[[Category:Recipes acquired from {{{diy-availability2|}}}]]}}{{#if: {{{diy-availability3|}}}|[[Category:Recipes acquired from {{{diy-availability3|}}}]]}}{{#if:{{{ja-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:New Horizons items with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:New Horizons items with missing other language information]]}}}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude>

Revision as of 00:04, November 27, 2022

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

[[File:|sub|32px|link=]] Type of item
No image available
Buy price Sell price
Not for sale Cannot be sold
Obtain via
Colors
Variations
None
Names in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown


Template documentation (view)


More Cargo templates

Parameters

Names

name
The English name of the item.
Default value: Item name in page title.
ja-name
The Japanese name of the item.
fr-name
The French name of the item.
frq-name
The Quebec French name of the item.
de-name
The German name of the item.
ko-name
The Korean name of the item.
it-name
The Italian name of the item.
nl-name
The Dutch name of the item.
zh-name
The Simplified Chinese name of the item.
zht-name
The Traditional Chinese name of the item.
es-name
The Spanish name of the item.
esl-name
The Latin American Spanish name of the item.
ru-name
The Russian name of the item.
identifier
An identifier that connects this item to items in other iterations of Animal Crossing. If an item changes name from game to game, the identifier remains constant. The identifier should be the name of the item as it appears in the earliest Animal Crossing game. For items which can only be obtained as a customization option in a later game (e.g. the Black Pawn & White Pawn become customization options for the Pawn in ACNL), the later name is used instead.
Default value: Item name in page title.

Metadata

category
The category of the item as seen in the catalog.
Possible values: Tops, Bottoms, Dress-Up, Headwear, Accessories, Socks, Shoes, Bags
style
Style of the item.
label1, label2, label3, label4, label5
Themes for the Label's fashion check.
color1, color2
The colors for the item. Each item has two. For items with variations, color1 and color2 should be set to those of the "default" (first) variation. Colors for variations can be defined in var1-color1/var1-color2, var2-color1/var2-color2, etc.
length
The length of the item as a float (e.g. 1.0, 1.5). Sources an image using {{Size}}.
width
The width of the item as a float (e.g. 1.0, 1.5). Sources an image using {{Size}}.
height
The height of the item as a float (e.g. 1.0, 1.5). Generates an appropriately sized silhouette and line to show height relative to the player.

Acquiring

availability1, availability2
How the item can be acquired. Value should match one of the options in Template:Availability.
availability1-note, availability2-note
Notes for the availability (e.g. Season, requirements, etc.).
diy-availability1, diy-availability2, diy-availability3
If the item is produced using a DIY recipe, this parameter is used to note how the recipe can be acquired. Value should match one of the options in Template:Availability.
diy-availability1-note, diy-availability2-note, diy-availability3-note
Notes that will appear in parentheses after the diy-availability.
mat1, mat2, mat3, mat4, mat5, mat6
Names of materials needed. Value should match one of the options in Template:Material.
mat1-num, mat2-num, mat3-num, mat4-num, mat5-num, mat6-num
Number of material needed.
buy-bells
Cost to purchase in Bells.
buy-miles
Cost to purchase in Nook Miles.
sell
Sell price in Bells.

Variations

variation1, variation2, variation3, variation4, variation5 variation6, variation7, variation8
The name of each variation of an item.
var1-img, var2-img, var3-img, var4-img, var5-img var6-img, var7-img, var8-img
The image associated with each variant, not including the leading 'File:'. For items with both variants and patterns, these parameters should contain images for each variant using the first (default) pattern.
var1-color1, var2-color1, var3-color1, var4-color1, var5-color1 var6-color1, var7-color1, var8-color1
The first color associated with each variant.
var1-color2, var2-color2, var3-color2, var4-color2, var5-color2 var6-color2, var7-color2, var8-color2
The second color associated with each variant. Should be left blank if a variant can also has a pattern, as the second color is derived from the pattern.

Other

notes
Any additional notes (special properties, glitches, attribution, etc.).
max-length
Optional parameter that can be used to force the 2-column or 3-column display of the item name translations. The default value is 30. Increasing the value creates a tendency towards a 3-column display, decreasing it, a 2-column display.