Difference between revisions of "Template:NHItems"

From Nookipedia, the Animal Crossing wiki
(Adding CF to other games section)
(79 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
|identifier = String
 
|identifier = String
 
|en_name = String
 
|en_name = String
 +
|catalog_num = Integer
 
|image = String
 
|image = String
 +
|image_url = String
 
|stack = Integer
 
|stack = Integer
 
|hha_base = Integer
 
|hha_base = Integer
Line 9: Line 11:
 
|buy1_currency = String
 
|buy1_currency = String
 
|buy1_wikitext = Wikitext string
 
|buy1_wikitext = Wikitext string
 +
|buy1_note = String
 +
|buy2_price = Integer
 +
|buy2_currency = String
 +
|buy2_wikitext = Wikitext string
 +
|buy2_note = String
 
|sell = Integer
 
|sell = Integer
 +
|item_type = String
 
|is_fence = Boolean
 
|is_fence = Boolean
 
|is_material = Boolean
 
|is_material = Boolean
 
|material_type = String
 
|material_type = String
 
|material_seasonality = String
 
|material_seasonality = String
 +
|material_sort = Integer
 +
|material_name_sort = Integer
 +
|material_seasonality_sort = Integer
 +
|edible = Boolean
 +
|energy_points = Integer
 
|plant_type = String
 
|plant_type = String
 
|availability1 = String
 
|availability1 = String
Line 21: Line 34:
 
|availability3 = String
 
|availability3 = String
 
|availability3_note = String
 
|availability3_note = String
 +
|customizable = Boolean
 +
|custom_kits = Integer
 +
|custom_body_part = String
 +
|cyrus_price = Integer
 
|version_added = String
 
|version_added = String
 
|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}}{{#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|}}}
|image = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} NH Icon.png
+
|catalog_num = {{{num|}}}
 +
|image = {{#invoke:TitleCase|main|{{{name|}}}}} 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 34: Line 53:
 
|buy1_currency = {{{buy1-currency|}}}
 
|buy1_currency = {{{buy1-currency|}}}
 
|buy1_wikitext = {{#ifeq:{{{buy1-price|}}}|NA|NA|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}}}}}
 
|buy1_wikitext = {{#ifeq:{{{buy1-price|}}}|NA|NA|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}}}}}
 +
|buy1_note = {{{buy1-note|}}}
 +
|buy2_price = {{{buy2-price|}}}
 +
|buy2_currency = {{{buy2-currency|}}}
 +
|buy2_wikitext = {{#ifeq:{{{buy2-price|}}}|NA|NA|{{Currency|{{{buy2-currency|}}}|{{{buy2-price|}}}}}}}
 +
|buy2_note = {{{buy2-note|}}}
 
|sell = {{{sell|}}}
 
|sell = {{{sell|}}}
 
|availability1 = {{{availability1|}}}
 
|availability1 = {{{availability1|}}}
Line 42: Line 66:
 
|availability3_note = {{{availability3-note|}}}
 
|availability3_note = {{{availability3-note|}}}
 
|version_added = {{{version-added|}}}
 
|version_added = {{{version-added|}}}
|is_fence = {{#ifeq: {{{is-fence|No}}} |Yes|Yes|No}}
+
|customizable = {{#if: {{{customizable|}}} | Yes | No}}
 +
|custom_kits = {{{custom-kits|}}}
 +
|custom_body_part = {{{custom-body-part|}}}
 +
|cyrus_price = {{{cyrus-price|}}}
 +
|item_type = {{{item-type|}}}
 +
|is_fence = {{#if: {{{is-fence|}}} | Yes | No}}
 
|plant_type = {{{plant-type|}}}
 
|plant_type = {{{plant-type|}}}
|is_material = {{#ifeq: {{{material|No}}} |Yes|Yes|No}}
+
|is_material = {{#if: {{{material|}}} | Yes | No}}
 
|material_type = {{{material-type|}}}
 
|material_type = {{{material-type|}}}
 +
|edible = {{#if: {{{energy-points|}}} | Yes | No}}
 +
|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_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}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
 
|notes = {{{notes|}}}
 
|notes = {{{notes|}}}
 
}}<!-- 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
 +
|engb_name = {{{engb-name|}}}
 
|de_name = {{{de-name|}}}
 
|de_name = {{{de-name|}}}
 
|es_name = {{{es-name|}}}
 
|es_name = {{{es-name|}}}
Line 65: Line 101:
 
|zh_name = {{{zh-name|}}}
 
|zh_name = {{{zh-name|}}}
 
|zht_name = {{{zht-name|{{{zh-name|}}}}}}
 
|zht_name = {{{zht-name|{{{zh-name|}}}}}}
 +
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
 +
_table=nh_identifier
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|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|}}}
|image = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} NH DIY Icon.png
+
|num = {{{diy-num|}}}
|image_url = {{filepath:{{{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:{{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png}}
 
|serial_id = {{{serial-id|}}}
 
|serial_id = {{{serial-id|}}}
|type = {{{type|{{#ifeq:{{{is-fence|}}}|Yes|Fence|Item}}}}}
+
|type = {{{type|{{#switch:{{{item-type|}}}|Fence=Fence|#default=Item}}}}}
 
|buy1_price = {{{diy-buy1-price|}}}
 
|buy1_price = {{{diy-buy1-price|}}}
 
|buy1_currency = {{{diy-buy1-currency|}}}
 
|buy1_currency = {{{diy-buy1-currency|}}}
Line 101: Line 143:
 
|material6 = {{{mat6|}}}
 
|material6 = {{{mat6|}}}
 
|material6_num = {{{mat6-num|}}}
 
|material6_num = {{{mat6-num|}}}
}} | }} }}</includeonly>
+
|version_added = {{{version-added|}}}
{{Infobox 2.0
+
|notes =
 +
}} | }} {{#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
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{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_number = {{#var: key }}
 +
|color1 = {{#ifeq:{{{var{{#var: key }}-color1|}}}|None||{{{var{{#var: key }}-color1|}}}}}
 +
|color2 = {{#ifeq:{{{var{{#var: key }}-color2|}}}|None||{{{var{{#var: key }}-color2|}}}}}
 +
}} }} | <!-- Cargo Store for sole item (no variations) -->{{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}}}{{#cargo_store:
 +
_table=nh_item_variation
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}
 +
|image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}
 +
|variation =
 +
|variation_number = 1
 +
|color1 = {{#ifeq:{{{color1|}}}|None||{{{color1|}}}}}
 +
|color2 = {{#ifeq:{{{color2|}}}|None||{{{color2|}}}}}
 +
}} }}<!-- Cargo store for distributions -->{{#if:{{{distribution|}}}|{{NHDistribution/CargoAttach}}{{#cargo_store:
 +
_table=nh_distribution
 +
|en_name = {{{name|}}}
 +
|image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}
 +
|type = Others
 +
|distribution = {{{distribution|}}}
 +
|distribution_note = {{{distribution-note|}}}
 +
|distribution_sort = {{{distribution-sort|}}}
 +
|distribution_type = {{{distribution-type|}}}
 +
|version = {{{version-added|}}}
 +
}}|}}<!-- Cargo Store for seasonal item -->{{#ifeq:{{{availability1|}}}|Nook Shopping|{{#ifeq:{{{availability1-note|}}}|Seasonal|{{NHSeasonal/CargoAttach}}{{#cargo_store:
 +
_table=nh_seasonal
 +
|en_name = {{{name|}}}
 +
|event = {{{event|}}}
 +
|region = {{{region|}}}
 +
|description = {{{event-description|}}}
 +
|former_description = {{{former-event-description|}}}
 +
|event_date_north = {{{event-date|}}}
 +
|event_date_south = {{{event-date-southern|}}}
 +
|event_date_sort = {{{event-date-sort|}}}
 +
|version_added = {{{version-added|}}}
 +
}}|}}|}}}}</includeonly>{{Infobox 2.0
 
  | 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        = [[File:Etc NH Category Icon.png{{!}}Type of other item|sub|20px|link=]]
+
| righticon        = [[File:{{#switch:{{{item-type|}}}
| righticon        = {{#ifeq:{{{is-fence|}}}|Yes|[[File:Fence NH Inv Icon.png|sub|32px|link=]]|[[File:{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}} NH Inv Icon.png|sub|32px|link=]]}}
+
| Fence = Fencing NH Category Icon.png{{!}}Type of fence
 +
| Wheat
 +
| Tree
 +
| Tomato
 +
| Sugarcane
 +
| Pumpkin
 +
| Potato
 +
| Flower
 +
| Bush = Plants HHP Category Icon.png{{!}}Type of plant
 +
  | #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|}}}'''}}|}}}}
  
  | 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}}
+
  | 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|}}}}}|Cannot be sold}}
 
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}}
  
  | label            = Stack
+
  | label           = Size
  | data            = {{{stack|0}}}
+
| data           = {{#if:{{{grid-size|}}}|<div style="font-size:.9em; padding:3px 0px;">{{Size|{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}|{{#sub:{{{grid-size|0.0×0.0}}}|4}}}}{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}&nbsp;×&nbsp;{{#sub:{{{grid-size|0.0×0.0}}}|4}}</div>}}
 +
 
 +
| label2          = Obtain via
 +
| data2          = {{Availability|{{{availability1|}}}|note={{#if:{{{availability1-note|}}}|{{{availability1-note|}}} {{#if:{{{material-seasonality|}}}|- {{{material-seasonality|}}}}}|{{{material-seasonality|}}}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{#if:{{{availability2-note|}}}|{{{availability2-note|}}} {{#if:{{{material-seasonality|}}}|- {{{material-seasonality|}}}}}|{{{material-seasonality|}}}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{#if:{{{availability3-note|}}}|{{{availability3-note|}}} {{#if:{{{material-seasonality|}}}|- {{{material-seasonality|}}}}}|{{{material-seasonality|}}}}}}}}}
 +
 
 +
| label3          = Stack
 +
  | data3            = {{{stack|0}}}
 +
 
 +
| label4          = Recipe
 +
| 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
 +
| data5            = {{#if:{{{diy-availability1|}}}|[[DIY recipes/Other|Other]]}}
 +
 
 +
| label6          = Recipe obtained via
 +
| data6            = {{#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|}}}}}}}}}
 +
 
 +
| label7          = Recipe buy price
 +
| data7            = {{#if:{{{diy-buy1-price|}}}|{{Currency|{{{diy-buy1-currency|}}}|{{{diy-buy1-price|}}}|short=yes}}}}{{#if:{{{diy-buy2-price|}}}|<br>{{Currency|{{{diy-buy2-currency|}}}|{{{diy-buy2-price|}}}|short=yes}}}}
 +
 
 +
| label8          = Edible
 +
| data8            = {{#if: {{{energy-points|}}} | Yes (provides {{{energy-points|}}} [[edible|energy points]]) |}}
 +
 
 +
| label9          = Customize
 +
| 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}}data10          = {{{hha-base|}}}
  
  | label2          = Obtain via
+
  | {{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}label11          = Colors
| data2            = {{Availability|{{{availability1|}}}|note={{#if:{{{availability1-note|}}}|{{{availability1-note|}}} {{#if:{{{material-seasonality|}}}|- {{{material-seasonality|}}}}}|{{#if:{{{material-seasonality|}}}|{{{material-seasonality|}}}}}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{#if:{{{availability1-note|}}}|{{{availability1-note|}}} {{#if:{{{material-seasonality|}}}|- {{{material-seasonality|}}}}}|{{#if:{{{material-seasonality|}}}|{{{material-seasonality|}}}}}}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{#if:{{{availability1-note|}}}|{{{availability1-note|}}} {{#if:{{{material-seasonality|}}}|- {{{material-seasonality|}}}}}|{{#if:{{{material-seasonality|}}}|{{{material-seasonality|}}}}}}}}}}}
+
| {{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}data11            = <div style="display:inline-block; vertical-align:top; line-height:.9em;">{{Color|{{{color1|Unknown}}}|display=inline-block}}&nbsp;{{Color|{{{color2|Unknown}}}|display=inline-block}}</div>
  
  | label3          = Recipe
+
  | widebottomlabel  = Variations
  | data3            = {{#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|}}}}}}}}}
+
  | widebottomdata  = <div class="nh_item-flex-container" style="position:relative; text-align:center;">
 +
{{#if:{{{variation1|}}} |  
 +
{{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var">
 +
<div class="nh_item-var-img">
 +
[[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> }}
  
  | label4          = Recipe obtained via
+
  | widebottomlabel2 = Notes
  | 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|}}}}}}}}}
+
  | widebottomdata2 = {{{notes|}}}
  | {{#ifeq:{{{hha-base|}}}|0|NULL}}label5          = HHA Points
 
| {{#ifeq:{{{hha-base|}}}|0|NULL}}data5            = {{{hha-base|}}}
 
  
  | {{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}label6          = Colors
+
  | widebottomlabel3 = In other games
| {{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}data6            = <div style="display:inline-block; vertical-align:top; line-height:.9em;">{{Color|{{{color1|Unknown}}}|display=inline-block}}&nbsp;{{Color|{{{color2|Unknown}}}|display=inline-block}}</div>
+
| widebottomdata3  = {{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=ww_item|fields=CONCAT("[[Item:", ww_item.en_name, " (Wild World)|''Wild World'' (", ww_item.en_name, ")]]<br />")|where=ww_item.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=cf_item|fields=CONCAT("[[Item:", cf_item.en_name, " (City Folk)|''City Folk'' (", cf_item.en_name, ")]]<br />")|where=cf_item.identifier="{{{identifier|}}}"|default=}}
| widebottomlabel  = Notes
 
| widebottomdata  = {{{notes|}}}
 
  
  | languages        = Name
+
  | languages        = Names
 
  | ja-name          = {{{ja-name|}}}
 
  | ja-name          = {{{ja-name|}}}
 
  | ko-name          = {{{ko-name|}}}
 
  | ko-name          = {{{ko-name|}}}
Line 157: Line 278:
 
}}
 
}}
 
<includeonly>
 
<includeonly>
{{#if: {{{material|}}}|[[Category:New Horizons materials]]}}{{#if: {{{is-fence|}}}|[[Category:New Horizons fence items]]|{{#switch:{{{plant-type|}}}|Flower = [[Category:New Horizons flower items]]|Bush = [[Category:New Horizons bush items]]|Tree = [[Category:New Horizons tree items]]|[[Category:New Horizons other items]]}}}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{#ifeq:{{{availability1|}}}|Crafting|crafting|{{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#ifeq:{{{availability2|}}}|Crafting|crafting|{{{availability2|}}}}}]]}}{{#if: {{{availability3|}}} | [[Category:Acquired from {{#ifeq:{{{availability3|}}}|Crafting|crafting|{{{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|}}}]]</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 02:04, April 27, 2024

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