Difference between revisions of "Template:NHItems"

From Nookipedia, the Animal Crossing wiki
(All items under this infobox fall under the "Other" category)
(Adding food category check)
(10 intermediate revisions by the same user not shown)
Line 41: Line 41:
 
|unlocked = Boolean
 
|unlocked = Boolean
 
|notes = String
 
|notes = String
}}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifer/CargoAttach}}{{NHItemVariations/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}<!-- Cargo Store for itemsdata -->{{#cargo_store:
+
}}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifier/CargoAttach}}{{NHItemVariations/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}<!-- Cargo Store for itemsdata -->{{#cargo_store:
 
_table=nh_item
 
_table=nh_item
|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|}}}
 
|catalog_num = {{{num|}}}
 
|catalog_num = {{{num|}}}
|image = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} NH Icon.png
+
|image = {{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png
|image_url = {{filepath:{{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Icon.png}}}}}
+
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}
 
|stack = {{{stack|}}}
 
|stack = {{{stack|}}}
 
|hha_base = {{{hha-base|}}}
 
|hha_base = {{{hha-base|}}}
Line 78: Line 78:
 
|energy_points = {{{energy-points|}}}
 
|energy_points = {{{energy-points|}}}
 
|material_seasonality = {{{material-seasonality|}}}
 
|material_seasonality = {{{material-seasonality|}}}
|material_sort = {{#switch:{{{material-type|}}}|Wood=1|Bamboo=2|Tree=3|Ore=4|Underwater=5|Fruit=6|Plant=7|Ingredient=8|Shell=9|Trash=10|Star Fragment=11||Flower=12|Mushroom=13|Leaf=14|Snowflake=15|Feather=16|Egg=17|Ornament=18|Other=19}}
+
|material_sort = {{#switch:{{{material-type|}}}|wood=1|bamboo=2|Tree=3|Ore=4|Underwater=5|Fruit=6|Plant=7|Ingredient=8|Shell=9|Trash=10|star fragment=11|Flower=12|Mushroom=13|Leaf=14|snowflake=15|Feather=16|Egg=17|Ornament=18|Other=19}}
|material_name_sort = {{#switch:{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}|Star Fragment=1|Large Star Fragment=2|Aries Fragment=3|Taurus Fragment=4|Gemini Fragment=5|Cancer Fragment=6|Leo Fragment=7|Virgo Fragment=8|Libra Fragment=9|Scorpius Fragment=10|Sagittarius Fragment=11|Capricorn Fragment=12|Aquarius Fragment=13|Pisces Fragment=14}}
+
|material_name_sort = {{#switch:{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}|star fragment=1|Large star fragment=2|Aries fragment=3|Taurus fragment=4|Gemini fragment=5|Cancer fragment=6|Leo fragment=7|Virgo fragment=8|Libra fragment=9|Scorpius fragment=10|Sagittarius fragment=11|Capricorn fragment=12|Aquarius fragment=13|Pisces fragment=14}}
 
|material_seasonality_sort = {{#switch:{{{material-seasonality|}}}|Spring=1|Summer=2|Fall=3|Winter=4|Festivale=5|Bunny Day=6|Halloween=7|Festive season=8}}
 
|material_seasonality_sort = {{#switch:{{{material-seasonality|}}}|Spring=1|Summer=2|Fall=3|Winter=4|Festivale=5|Bunny Day=6|Halloween=7|Festive season=8}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
Line 85: Line 85:
 
}}<!-- Cargo Store for different language names -->{{#cargo_store:
 
}}<!-- Cargo Store for different language names -->{{#cargo_store:
 
_table=nh_language_name
 
_table=nh_language_name
|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|}}}
 
|type = Other Item
 
|type = Other Item
 
|engb_name = {{{engb-name|}}}
 
|engb_name = {{{engb-name|}}}
Line 103: Line 103:
 
}}<!-- 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 = {{#switch:{{{item-type|}}}|Fence=Fence|#default=Other}}
 
|category = {{#switch:{{{item-type|}}}|Fence=Fence|#default=Other}}
 
}}<!-- Cargo Store for recipe, if craftable --> {{#if: {{{mat1|}}}
 
}}<!-- Cargo Store for recipe, if craftable --> {{#if: {{{mat1|}}}
 
| {{#cargo_store:
 
| {{#cargo_store:
 
_table=nh_recipe
 
_table=nh_recipe
|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|}}}
 
|num = {{{diy-num|}}}
 
|num = {{{diy-num|}}}
|image = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} NH DIY Icon.png
+
|image = {{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png
|image_url = {{filepath:{{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} NH DIY Icon.png}}
+
|image_url = {{filepath:{{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png}}
 
|serial_id = {{{serial-id|}}}
 
|serial_id = {{{serial-id|}}}
 
|type = {{{type|{{#switch:{{{item-type|}}}|Fence=Fence|#default=Item}}}}}
 
|type = {{{type|{{#switch:{{{item-type|}}}|Fence=Fence|#default=Item}}}}}
Line 145: Line 145:
 
|version_added = {{{version-added|}}}
 
|version_added = {{{version-added|}}}
 
|notes =  
 
|notes =  
}} | }} {{#if: {{{variation1|}}} | {{#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_item_variation
 
_table=nh_item_variation
|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|}}}
|image = {{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{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|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}}
+
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}}}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation = {{{variation{{#var: key }}|}}}
 
|variation_number = {{#var: key }}
 
|variation_number = {{#var: key }}
 
|color1 = {{#ifeq:{{{var{{#var: key }}-color1|}}}|None||{{{var{{#var: key }}-color1|}}}}}
 
|color1 = {{#ifeq:{{{var{{#var: key }}-color1|}}}|None||{{{var{{#var: key }}-color1|}}}}}
 
|color2 = {{#ifeq:{{{var{{#var: key }}-color2|}}}|None||{{{var{{#var: key }}-color2|}}}}}
 
|color2 = {{#ifeq:{{{var{{#var: key }}-color2|}}}|None||{{{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_item_variation
 
_table=nh_item_variation
|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|}}}
|image = {{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Icon.png}}}
+
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}
|image_url = {{filepath:{{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Icon.png}}}}}
+
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}
 
|variation =
 
|variation =
 
|variation_number = 1
 
|variation_number = 1
Line 167: Line 167:
 
}} }}<!-- Cargo store for distributions -->{{#if:{{{distribution|}}}|{{NHDistribution/CargoAttach}}{{#cargo_store:
 
}} }}<!-- Cargo store for distributions -->{{#if:{{{distribution|}}}|{{NHDistribution/CargoAttach}}{{#cargo_store:
 
_table=nh_distribution
 
_table=nh_distribution
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
+
|en_name = {{{name|}}}
|image = {{{image|{{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} NH Icon.png}}}
+
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}
 
|type = Others
 
|type = Others
 
|distribution = {{{distribution|}}}
 
|distribution = {{{distribution|}}}
Line 177: Line 177:
 
}}|}}<!-- Cargo Store for seasonal item -->{{#ifeq:{{{availability1|}}}|Nook Shopping|{{#ifeq:{{{availability1-note|}}}|Seasonal|{{NHSeasonal/CargoAttach}}{{#cargo_store:
 
}}|}}<!-- Cargo Store for seasonal item -->{{#ifeq:{{{availability1|}}}|Nook Shopping|{{#ifeq:{{{availability1-note|}}}|Seasonal|{{NHSeasonal/CargoAttach}}{{#cargo_store:
 
_table=nh_seasonal
 
_table=nh_seasonal
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
+
|en_name = {{{name|}}}
 
|event = {{{event|}}}
 
|event = {{{event|}}}
 
|region = {{{region|}}}
 
|region = {{{region|}}}
Line 189: Line 189:
 
  | primarycolor    = 39 100
 
  | primarycolor    = 39 100
 
  | secondarycolor  = 42 73
 
  | secondarycolor  = 42 73
  | title            = {{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
+
  | 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>|}}
+
  | lefticon        = {{#switch:{{{item-type|}}}|Fence=[[File:Fence NH Inv Icon.png|sub|32px|link=]]|#default=[[File:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} NH Inv Icon.png}}}|sub|32px|link=]]}}
  | lefticon        = {{#switch:{{{item-type|}}}|Fence=[[File:Fence NH Inv Icon.png|sub|32px|link=]]|#default=[[File:{{{inv-icon|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} NH Inv Icon.png}}}|sub|32px|link=]]}}
 
 
  | righticon        = [[File:{{#switch:{{{item-type|}}}
 
  | righticon        = [[File:{{#switch:{{{item-type|}}}
 
  | Fence = Fencing NH Category Icon.png{{!}}Type of fence
 
  | Fence = Fencing NH Category Icon.png{{!}}Type of fence
Line 204: Line 203:
 
  | #default = Etc NH Category Icon.png{{!}}Type of other item}}|sub|20px|link=]]{{#if:{{{num|}}}|&nbsp;'''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}}
 
  | #default = Etc NH Category Icon.png{{!}}Type of other item}}|sub|20px|link=]]{{#if:{{{num|}}}|&nbsp;'''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}}
  
  | image            = {{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|128px|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}]]|[[File:Nia.png|128px|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|128px|{{#invoke:SentenceCase|main|{{{name|}}}}}]]|[[File:Nia.png|128px|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|}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}''' ({{{pattern1|}}})}}|{{Colorshow|666|Variation shown: '''{{{variation1|}}}'''}}}}|{{#if:{{{pattern1|}}}|{{Colorshow|666|Pattern shown: '''{{{pattern1|}}}'''}}|}}}}
  
Line 222: Line 221:
  
 
  | label4          = Recipe
 
  | label4          = Recipe
  | data4            = {{#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|}}}}}}}}}
+
  | data4            = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}|sentence-case=yes}}{{#if:{{{mat2|}}}|{{Material|{{{mat2|}}}|{{{mat2-num|}}}|sentence-case=yes}}}}{{#if:{{{mat3|}}}|{{Material|{{{mat3|}}}|{{{mat3-num|}}}|sentence-case=yes}}}}{{#if:{{{mat4|}}}|{{Material|{{{mat4|}}}|{{{mat4-num|}}}|sentence-case=yes}}}}{{#if:{{{mat5|}}}|{{Material|{{{mat5|}}}|{{{mat5-num|}}}|sentence-case=yes}}}}{{#if:{{{mat6|}}}|{{Material|{{{mat6|}}}|{{{mat6-num|}}}|sentence-case=yes}}}}}}
  
 
  | label5          = Recipe type
 
  | label5          = Recipe type
Line 237: Line 236:
  
 
  | label9          = Customize
 
  | label9          = Customize
  | data9            = {{#if:{{{cyrus-price|}}}{{{customizable|}}}|{{#if:{{{cyrus-price|}}}|{{Availability|Cyrus|nb=true}}: {{Currency|Bells|{{{cyrus-price|}}}}}<br />|}}{{#if:{{{customizable|}}}|[[File:{{{custom-kit-type|Customization Kit}}} NH Customization Icon.png|22px|link=|Remake kit]] {{{custom-kits|}}} {{{custom-kit-type|kit}}}{{#ifexpr:{{{custom-kits|}}} > 1|s|}}<br />}}{{#if:{{{variation1|}}}|[[File:Customization NH Icon.png|22px|link=|Variations]] {{#expr:{{#if:{{{variation1|}}}|1|0}}+{{#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}}}}&nbsp;variations{{#if:{{{customizable-variation|}}}||{{#if:{{{pattern1|}}}|&nbsp;(Cyrus&nbsp;only)}}}}}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}|<br />}}[[File:Fabric NH Icon.png|22px|link=|Patterns]] {{#expr:{{#if:{{{pattern1|}}}|1|0}}+{{#if:{{{pattern2|}}}|1|0}}+{{#if:{{{pattern3|}}}|1|0}}+{{#if:{{{pattern4|}}}|1|0}}+{{#if:{{{pattern5|}}}|1|0}}+{{#if:{{{pattern6|}}}|1|0}}+{{#if:{{{pattern7|}}}|1|0}}+{{#if:{{{pattern8|}}}|1|0}}}}&nbsp;patterns|}}|}}
+
  | data9            = {{#if:{{{cyrus-price|}}}{{{customizable|}}}|{{#if:{{{cyrus-price|}}}|{{Availability|Cyrus|nb=true}}: {{Currency|Bells|{{{cyrus-price|}}}}}<br />|}}{{#if:{{{customizable|}}}|[[File:{{#invoke:TitleCase|main|{{{custom-kit-type|customization kit}}}}} NH Customization Icon.png|22px|link=|Remake kit]] {{{custom-kits|}}} {{{custom-kit-type|kit}}}{{#ifexpr:{{{custom-kits|}}} > 1|s|}}<br />}}{{#if:{{{variation1|}}}|[[File:Customization NH Icon.png|22px|link=|Variations]] {{#expr:{{#if:{{{variation1|}}}|1|0}}+{{#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}}}}&nbsp;variations{{#if:{{{customizable-variation|}}}||{{#if:{{{pattern1|}}}|&nbsp;(Cyrus&nbsp;only)}}}}}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}|<br />}}[[File:Fabric NH Icon.png|22px|link=|Patterns]] {{#expr:{{#if:{{{pattern1|}}}|1|0}}+{{#if:{{{pattern2|}}}|1|0}}+{{#if:{{{pattern3|}}}|1|0}}+{{#if:{{{pattern4|}}}|1|0}}+{{#if:{{{pattern5|}}}|1|0}}+{{#if:{{{pattern6|}}}|1|0}}+{{#if:{{{pattern7|}}}|1|0}}+{{#if:{{{pattern8|}}}|1|0}}}}&nbsp;patterns|}}|}}
  
 
  | {{#ifeq:{{{hha-base|}}}|0|NULL}}label10        = HHA points
 
  | {{#ifeq:{{{hha-base|}}}|0|NULL}}label10        = HHA points
Line 250: Line 249:
 
{{#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:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|Nia.png}}|{{#ifexist:File:{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} ({{{variation{{#var: key }}|}}}) NH Icon.png|Nia.png}}}}}}|36px|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}'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 279: Line 278:
 
}}
 
}}
 
<includeonly>
 
<includeonly>
{{#if: {{{material|}}}|[[Category:New Horizons materials]]}}{{#switch:{{{item-type|}}}|Fence=[[Category:New Horizons fence items]]|Flower = [[Category:New Horizons flower items]]|Bush = [[Category:New Horizons bush items]]|Tree = [[Category:New Horizons tree items]]|#default=[[Category:New Horizons other items]]}}{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#switch:{{{availability1|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability1|}}}}}]]}}}}{{#if: {{{availability2|}}} | {{#ifeq:{{{availability2|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#switch:{{{availability2|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability2|}}}}}]]}}}}{{#if: {{{availability3|}}} | {{#ifeq:{{{availability3|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{#switch:{{{availability3|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability3|}}}}}]]}}}}{{#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|}}}]]}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#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]]</noinclude>
+
{{#if:{{{material|}}}|[[Category:New Horizons materials]]}}{{#switch:{{{item-type|}}}|Fence=[[Category:New Horizons fence items]]|Flower = [[Category:New Horizons flower items]]|Bush = [[Category:New Horizons bush items]]|Tree = [[Category:New Horizons tree items]]|#default=[[Category:New Horizons other items]]}}{{#ifeq: {{{edible|}}} | Yes | [[Category:Food]]}}{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{{availability1|}}}]]}}}}{{#if: {{{availability2|}}} | {{#ifeq:{{{availability2|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{{availability2|}}}]]}}}}{{#if: {{{availability3|}}} | {{#ifeq:{{{availability3|}}}|Unobtainable|[[Category:Unobtainable items]] [[Category:Unobtainable items in New Horizons]]|[[Category:Acquired from {{{availability3|}}}]]}}}}{{#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|}}}]]}}[[Category:New Horizons items introduced in {{{version-added|}}}]]{{#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]]</noinclude>

Revision as of 06:49, January 5, 2023

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

32px Type of other item
No image available
Buy price Sell price
Not for sale Cannot be sold
Obtain via
Stack 0
Variations
None
Names in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown


Template documentation (view)


More Cargo templates