Difference between revisions of "Template:NHTools"

From Nookipedia, the Animal Crossing wiki
(adding edible info)
(PG and DnMe+ tool identifier.)
 
(38 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|identifier = String
 
|identifier = String
 
|en_name = String
 
|en_name = String
 +
|catalog_num = Integer
 
|uses = String
 
|uses = String
 
|inv_icon = String
 
|inv_icon = String
 
|inv_icon_url = String
 
|inv_icon_url = String
 +
|stack = Integer
 
|hha_base = Integer
 
|hha_base = Integer
 
|buy1_price = Integer
 
|buy1_price = Integer
Line 26: Line 28:
 
|customizable = Boolean
 
|customizable = Boolean
 
|custom_kits = Integer
 
|custom_kits = Integer
 +
|custom_kit_type = String
 
|custom_body_part = String
 
|custom_body_part = String
 +
|cyrus_price = Integer
 
|is_material = Boolean
 
|is_material = Boolean
 
|edible = Boolean
 
|edible = Boolean
 
|energy_points = Integer
 
|energy_points = Integer
 +
|catalog = String
 
|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}}{{NHIdentifer/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHToolsVariations/CargoAttach}}<!-- Cargo Store for tools data (not including images or variations) -->{{#cargo_store:
+
}}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifier/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHToolsVariations/CargoAttach}}<!-- Cargo Store for tools data (not including images or variations) -->{{#cargo_store:
 
_table=nh_tool
 
_table=nh_tool
|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|}}}
 
|uses = {{{uses|}}}
 
|uses = {{{uses|}}}
|inv_icon = {{{inv-icon|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Inv Icon.png}}}}}}  
+
|inv_icon = {{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} NH Inv Icon.png}}}
|inv_icon_url = {{filepath:{{{inv-icon|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}} NH Inv Icon.png}}}}}}}}
+
|inv_icon_url = {{filepath:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} NH Inv Icon.png}}}}}
 
|hha_base = {{{hha-base|}}}
 
|hha_base = {{{hha-base|}}}
 +
|stack = {{{stack|}}}
 
|buy1_price = {{{buy1-price|}}}
 
|buy1_price = {{{buy1-price|}}}
 
|buy1_currency = {{{buy1-currency|}}}
 
|buy1_currency = {{{buy1-currency|}}}
Line 60: Line 67:
 
|customizable = {{#if: {{{customizable|}}} | Yes | No}}
 
|customizable = {{#if: {{{customizable|}}} | Yes | No}}
 
|custom_kits = {{{custom-kits|}}}
 
|custom_kits = {{{custom-kits|}}}
 +
|custom_kit_type = {{#if: {{{customizable|}}} | {{{custom-kit-type|Customization Kit}}} | }}
 
|custom_body_part = {{{custom-body-part|}}}
 
|custom_body_part = {{{custom-body-part|}}}
 +
|cyrus_price = {{{cyrus-price|}}}
 
|is_material = {{#if: {{{is-material|}}} | Yes | No}}
 
|is_material = {{#if: {{{is-material|}}} | Yes | No}}
|edible = {{#if: {{{edible|}}} | Yes | No}}
+
|edible = {{#if: {{{energy-points|}}} | Yes | No}}
 
|energy_points = {{{energy-points|}}}
 
|energy_points = {{{energy-points|}}}
 +
|catalog = {{{catalog|}}}
 
|version_added = {{{version-added|}}}
 
|version_added = {{{version-added|}}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
 
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}}
Line 69: Line 79:
 
}}<!-- 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 = Tool
 
|engb_name = {{{engb-name|}}}
 
|engb_name = {{{engb-name|}}}
 
|de_name = {{{de-name|}}}
 
|de_name = {{{de-name|}}}
Line 86: Line 97:
 
}}<!-- 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 = Tools
+
|category = Tool
 
}}<!-- 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 = {{{recipe-type|Tool}}}
+
|type = {{{recipe-type|Tools}}}
 
|buy1_price = {{{diy-buy1-price|}}}
 
|buy1_price = {{{diy-buy1-price|}}}
 
|buy1_currency = {{{diy-buy1-currency|}}}
 
|buy1_currency = {{{diy-buy1-currency|}}}
Line 125: Line 137:
 
|material6 = {{{mat6|}}}
 
|material6 = {{{mat6|}}}
 
|material6_num = {{{mat6-num|}}}
 
|material6_num = {{{mat6-num|}}}
 +
|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_tool_variation
 
_table=nh_tool_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 = {{{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_tool_variation
 
_table=nh_tool_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 149: Line 162:
 
_table=nh_distribution
 
_table=nh_distribution
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
|image = {{#if: {{{variation1|}}} | {{{image|{{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} ({{{variation1|}}}) NH Icon.png}}} | {{{image|{{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}} 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 = Tool
 
|type = Tool
 
|distribution = {{{distribution|}}}
 
|distribution = {{{distribution|}}}
Line 156: Line 169:
 
|distribution_type = {{{distribution-type|}}}
 
|distribution_type = {{{distribution-type|}}}
 
|version = {{{version-added|}}}
 
|version = {{{version-added|}}}
}}|}}}}</includeonly>{{Infobox 2.0
+
}}|}}<!-- 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>|}}
 
  | 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        = {{#if:{{{inv-icon|}}}|[[File:{{{inv-icon|}}}|sub|32px|link=]]|&nbsp;}}
| Housewares = Furniture NH Category Icon.png{{!}}Type of houseware
+
  | righticon        = [[File:Tool NH Category Icon.png|Type of tool/good|sub|20px|link=]]{{#if:{{{num|}}}|&nbsp;'''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}}
| Miscellaneous = Goods NH Category Icon.png{{!}}Type of miscellaneous furniture
 
  | Wall-Mounted = Wall Mount NH Category Icon.png{{!}}Type of wall-mounted furniture
 
| All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]
 
| righticon        = {{#if:{{{inv-icon|}}}|[[File:{{{inv-icon|}}}|sub|32px|link=]]|&nbsp;}}
 
  
  | 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 179: Line 199:
 
  | 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|}}}}}}}
 
  | 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|}}}}}}}
  
  | label2          = Recipe
+
  | label2          = Stack
  | 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            = {{{stack|1}}}
  
  | label3          = Recipe obtained via
+
  | label3          = Recipe
  | 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|}}}|{{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}}}}}}
  
  | label4          = Uses
+
  | label4          = Recipe type
  | data4            = {{{uses|}}}
+
  | data4            = {{#if:{{{diy-availability1|}}}|[[DIY recipes/{{#switch:{{{recipe-type|}}}|Item=Other|#default=Tools}}|{{#switch:{{{recipe-type|}}}|Item=Other|#default=Tools}}]]}}
  
  | label5          = Edible
+
  | label5          = Recipe obtained via
  | data5            = {{{edible|}}}
+
  | data5            = {{#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|}}}}}}}}}
  
  | label6          = Energy points
+
  | label6          = Uses
  | data6            = {{{energy-points|}}}
+
  | data6            = {{{uses|}}}
  
  | label5           = Customize
+
  | label7           = Edible
  | data5           = {{#ifeq:{{{customizable|}}}|Yes|[[File:Customization Kit NH Inv Icon.png|22px|link=|Remake kit]] {{{custom-kits|}}} kit{{#ifexpr:{{{custom-kits|}}} > 1|s|}}<span style="padding-left:.8em;"></span>'''{{Colorshow|dcab00|–}}'''<span style="padding-left:.6em;"></span>[[File:Painting Set PC Icon.png|25px|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:{{{pattern1|}}}|<span style="padding-left:1em;"></span>[[File:Design WW Icon.png|17px|link=|Patterns]]&nbsp;{{#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}}|No customization options.}}
+
  | data7           = {{#if: {{{energy-points|}}} | Yes (provides {{{energy-points|}}} [[edible|energy points]]) |}}
  
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}{{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}label6 = Colors
+
| label8          = Customize
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}{{#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>
+
| data8            = {{#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|}}|No customization options.}}{{#if:{{{custom-pattern-part|}}}{{{custom-body-part|}}}|{{#if:{{{cyrus-price|}}}||[[Category:New Horizons items with missing Cyrus price parameters]]}}}}
 +
 
 +
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}{{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}label9 = Colors
 +
  | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}{{#if:{{{color1|}}}{{{color2|}}}||NULL}}{{#ifeq:{{{color1|}}}|None|NULL}}{{#ifeq:{{{color2|}}}|None|NULL}}data9 = <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>
  
 
  | widebottomlabel  = Variations
 
  | widebottomlabel  = Variations
Line 205: Line 228:
 
{{#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 211: Line 234:
 
  | widebottomdata2  = {{{notes|}}}
 
  | widebottomdata2  = {{{notes|}}}
  
  | languages        = Name
+
| widebottomlabel3 = In other games
 +
| widebottomdata3  = {{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_furniture.en_name, ")]]<br />")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|delimiter=|default=}}{{#cargo_query:tables=pg_tool|fields=CONCAT("[[Item:", pg_tool.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_tool.en_name, ")]]<br />")|where=pg_tool.identifier="{{{identifier|}}}" AND in_pg=1|delimiter=|default=}}{{#cargo_query:tables=pg_tool|fields=CONCAT("[[Item:", pg_tool.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_tool.en_name, ")]]<br />")|where=pg_tool.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|delimiter=|default=}}
 +
 
 +
  | languages        = Names
 
  | ja-name          = {{{ja-name|}}}
 
  | ja-name          = {{{ja-name|}}}
 
  | ko-name          = {{{ko-name|}}}
 
  | ko-name          = {{{ko-name|}}}
Line 231: Line 257:
 
}}
 
}}
 
<includeonly>
 
<includeonly>
[[Category:New Horizons tools]]{{#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|}}}}}]]}}[[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: {{{is-material|}}} | [[Category:New Horizons materials]] }}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Cargo templates]]</noinclude>
+
[[Category:New Horizons tools]]{{#if: {{{energy-points|}}} | [[Category:Food]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{{availability1|}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{{availability2|}}}]]}}{{#if: {{{availability3|}}} | [[Category:Acquired from {{{availability3|}}}]]}}[[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: {{{is-material|}}} | [[Category:New Horizons materials]] }}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Cargo templates]]</noinclude>

Latest revision as of 04:08, January 26, 2023

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

  Type of tool/good
No image available
Buy price Sell price
Not for sale Unknown
Obtain via
Stack 1
Customize No customization options.
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: Housewares, Miscellaneous, Wall-mounted, Wallpaper, Floors, Rug, Fashion Items, Creatures, Other
collection
The collection the item is a part of. A series or set.
theme1, theme2, theme3, theme4, theme5
Themes that the item belongs to. For furniture, this refers to HHA concepts. For clothing, this refers to Label themes.
color1, color2
The colors for the item (for the purposes of feng shui). 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.
function1, function2
The functionality of the item (e.g. bathtub, lighting, table).
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}}.
interactable
Boolean of whether the player can interact with the item.
Currently not displayed in the template.
sound
Boolean of whether the item produces sound.
Currently not displayed in the template.
lighting
Boolean of whether the item emits light.
Currently not displayed in the template.
animated
Whether the item is animated without any interaction. This will mostly be used with some wallpapers/flooring, but some furniture as well (e.g. fires, wind turbine, etc.)
Currently not displayed in the template.

Acquiring

availability, availability2
How the item can be acquired. Value should match one of the options in Template: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.
season, season2
The season an item is exclusively available in.
buy
Cost to purchase.
currency
Currency to purchase. Value should match one of the options in Template:Currency.
sell
Sell price in Bells.

Customization

customizable
True or False for whether the item is customizable.
custom-kits
The number of customization kits required to do a customization.
pattern
If set to True, item can be customized with patterns.
pattern1, pattern2, pattern3, pattern4, pattern5, pattern6, pattern7, pattern8
The name of a pattern.
Currently not displayed in the template.
var
The name of the default (first) variation; this is what is shown at the top of the template.
var1, var2, var3, var4, var5 var6, var7, var8
Additional variation names.
var1-img, var2-img, var3-img, var4-img, var5-img var6-img, var7-img, var8-img
var1-color1, var2-color1, var3-color1, var4-color1, var5-color1 var6-color1, var7-color1, var8-color1
var1-color2, var2-color2, var3-color2, var4-color2, var5-color2 var6-color2, var7-color2, var8-color2

Other

notes
Any additional notes (special properties, glitches, attribution, etc.).