Template:NHFurniture

{{#ifeq:|Item|{{NHLang/CargoAttach}}{{NHIdentifer/CargoAttach}}{{#if: | {{NHRecipe/CargoAttach}}}}{{NHFurnitureVariations/CargoAttach}}{{#cargo_store: _table=nh_furniture }}{{#cargo_store: _table=nh_language_name }}{{#cargo_store: _table=nh_identifier }} {{#if: _table=nh_recipe }} | }} {{#if: _table=nh_furniture_variation }} }} | {{#cargo_store: _table=nh_furniture_variation }} }} }} | {{#if: | {{#forargs: pattern | key | value |  {{#cargo_store: _table=nh_furniture_variation }} }} | {{#cargo_store: _table=nh_furniture_variation }} }} }}{{#if:{{{distribution|}}}|{{NHDistribution/CargoAttach}}{{#cargo_store: _table=nh_distribution }}|}}{{#if:{{{is-material|}}}|{{NHMaterial‎‎/CargoAttach}}{{#cargo_store: _table=nh_material }}|}}}} {{Infobox 2.0 | primarycolor    = 39 100 | secondarycolor  = 42 73 | title           = {{{title|{{{name|}}}}}} | subtitleabove   = {{#if:||}}{{#if:|}}} Series| Series|}}{{#if:|{{#if:|, |}}}}} Set| Set|}}{{#if:|{{#if:|    }}{{#if:|, {{{function2|}}}}}}}{{#if:{{{function1|}}}| |}} | lefticon        = {{#switch: | righticon     =
 * identifier =
 * en_name =
 * category =
 * category_sort = {{#switch:|Housewares=1|Miscellaneous=2|Food=3|Wall-Mounted|Wall-mounted=4|Ceiling Decor|Ceiling decor=5}}
 * item_series =
 * item_set =
 * theme1 =
 * theme2 =
 * former_theme1 =
 * former_theme2 =
 * hha_category = {{{hha-category|}}}
 * tag = {{{tag|}}}
 * hha_base = {{{hha-base|}}}
 * lucky = {{{lucky|No}}}
 * lucky_season = {{#if:{{{lucky|}}}|{{{lucky-season|All year}}}|}}
 * function1 =
 * function2 =
 * buy1_price =
 * buy1_currency =
 * buy1_wikitext = {{#ifeq:|NA|NA|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}}}}}
 * buy2_price =
 * buy2_currency =
 * buy2_wikitext = {{#ifeq:|NA|NA|{{Currency|{{{buy2-currency|}}}|{{{buy2-price|}}}}}}}
 * sell =
 * availability1 =
 * availability1_note =
 * availability2 =
 * availability2_note =
 * availability3 =
 * availability3_note =
 * variation_total = {{#if:|{{#expr:1+++++++}}|0}}
 * pattern_total = {{#if:|{{#expr:1+++++++}}|0}}
 * customizable = {{#if: | Yes | No}}
 * custom_kits =
 * custom_kit_type = {{#if: | {{{custom-kit-type|Customization Kit}}} | }}
 * custom_body_part = {{{custom-body-part|}}}
 * custom_pattern_part = {{{custom-pattern-part|}}}
 * cyrus_price =
 * grid_size = {{{grid-size|}}}
 * length = {{{length|}}}
 * width = {{{width|}}}
 * height =
 * edible = {{#if: | Yes | No}}
 * energy_points =
 * has_surface = {{{has-surface|No}}
 * outdoor = {{#if: | Yes | No}}
 * interactable = {{#if: {{{interactable|}}} | Yes | No}}
 * animated = {{{animated|}}}
 * sound = {{#if: {{{sound|}}} | Yes | No}}
 * music = {{#if: {{{music|}}} | Yes | No}}
 * lighting = {{#if: {{{lighting|}}} | Yes | No}}
 * door_decor = {{#if: {{{door-decor|}}} | Yes | No}}
 * is_material = {{#if: | Yes | No}}
 * version_added = {{{version-added|}}}
 * unlocked = {{#switch: {{{unlocked|}}} | Yes=Yes | No=No | No}}
 * notes =
 * identifier =
 * en_name =
 * engb_name = {{{engb-name|}}}
 * de_name =
 * es_name =
 * esl_name =
 * fr_name =
 * frq_name = {{{frq-name|{{{fr-name|}}}}}}
 * it_name =
 * ja_name =
 * ko_name =
 * nl_name =
 * ru_name =
 * zh_name =
 * zht_name =
 * identifier =
 * en_name =
 * category = Furniture
 * {{#cargo_store:
 * identifier =
 * en_name =
 * image = NH DIY Icon.png
 * image_url = {{filepath: NH DIY Icon.png}}
 * serial_id = {{{serial-id|}}}
 * type = {{{diy-type|Furniture}}}
 * buy1_price = {{{diy-buy1-price|}}}
 * buy1_currency = {{{diy-buy1-currency|}}}
 * buy1_wikitext = {{#ifeq:{{{diy-buy1-price|}}}|NA|NA|{{Currency|{{{diy-buy1-currency|}}}|{{{diy-buy1-price|}}}}}}}
 * buy2_price = {{{diy-buy2-price|}}}
 * buy2_currency = {{{diy-buy2-currency|}}}
 * buy2_wikitext = {{#ifeq:{{{diy-buy2-price|}}}|NA|NA|{{Currency|{{{diy-buy2-currency|}}}|{{{diy-buy2-price|}}}}}}}
 * sell = {{{diy-sell|}}}
 * recipes_to_unlock = {{{recipes-to-unlock|}}}
 * diy_availability1 =
 * diy_availability1_note =
 * diy_availability2 =
 * diy_availability2_note =
 * diy_availability3 =
 * diy_availability3_note =
 * materials = {"{{{mat1|}}}": {{#if:|, "": }}{{#if:|, "": }}{{#if:|, "": }}{{#if:|, "": }}{{#if:|, "": }}}
 * material1 = {{{mat1|}}}
 * material1_num = {{{mat1-num|}}}
 * material2 = {{{mat2|}}}
 * material2_num = {{{mat2-num|}}}
 * material3 = {{{mat3|}}}
 * material3_num = {{{mat3-num|}}}
 * material4 = {{{mat4|}}}
 * material4_num = {{{mat4-num|}}}
 * material5 = {{{mat5|}}}
 * material5_num = {{{mat5-num|}}}
 * material6 = {{{mat6|}}}
 * material6_num = {{{mat6-num|}}}
 * version_added = {{{version-added|}}}
 * notes =
 * {{#forargs: variation | key | value | {{#if: | {{#forargs: pattern | key2 | value |  {{#cargo_store:
 * identifier = {{{identifier|}}}
 * en_name =
 * image = {{{image| ( - {{{pattern{{#var: key2 }}|}}}) NH Icon.png}}}
 * image_url = {{filepath:{{{image| ( - {{{pattern{{#var: key2 }}|}}}) NH Icon.png}}}}}
 * variation =
 * variation_number =
 * pattern = {{{pattern{{#var: key2 }}|}}}
 * pattern_number = {{#var: key2 }}
 * color1 = {{{var-color1|}}}
 * color2 = {{{pat{{#var: key2 }}-color1|}}}
 * identifier = {{{identifier|}}}
 * en_name =
 * image = {{{image| NH Icon.png}}}
 * image_url = {{filepath:{{{image| NH Icon.png}}}}}
 * variation = {{{variation|}}}
 * variation_number =
 * pattern =
 * pattern_number =
 * color1 = {{{var-color1|}}}
 * color2 = {{{var-color2|}}}
 * identifier = {{{identifier|}}}
 * en_name =
 * image = {{{image| NH Icon.png}}}
 * image_url = {{filepath:{{{image| ({{{pattern|}}}) NH Icon.png}}}}}
 * variation =
 * variation_number =
 * pattern = {{{pattern|}}}
 * pattern_number =
 * color1 = {{{pat{{#var: key }}-color1|}}}
 * color2 = {{{pat{{#var: key }}-color2|}}}
 * identifier = {{{identifier|}}}
 * en_name = {{{name|}}}
 * image = {{{image|{{{name|}}} NH Icon.png}}}
 * image_url = {{filepath:{{{image|{{{name|}}} NH Icon.png}}}}}
 * variation =
 * variation_number =
 * pattern =
 * pattern_number =
 * color1 = {{{color1|}}}
 * color2 = {{{color2|}}}
 * en_name = {{{name|}}}
 * image = {{#if: | {{#if:  | {{{image|{{{name|}}} ( - ) NH Icon.png}}} | {{{image|{{{name|}}}  NH Icon.png}}} }} | {{#if:  | {{{image|{{{name|}}}  NH Icon.png}}} | {{{image|{{{name|}}} NH Icon.png}}} }} }}
 * type = Furniture
 * distribution = {{{distribution|}}}
 * distribution_note = {{{distribution-note|}}}
 * distribution_sort = {{{distribution-sort|}}}
 * distribution_type = {{{distribution-type|}}}
 * version = {{{version-added|}}}
 * en_name = {{{name|}}}

| image           = {{#ifexist:File:{{{name|}}} {{#if:|({{#if:|  - }})}}{{#if:|{{#if:||}}}} NH Icon.png||}} | caption         = {{#if:|{{#if:|{{Colorshow|666|Variation shown: {{{variation1|}}} }}|{{Colorshow|666|Variation shown: {{{variation1|}}}}}}}|{{#if:|{{Colorshow|666|Pattern shown: }}|}}}}

| leftlabel       = Buy price | rightlabel      = Sell price | leftdata        = {{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}{{#if:{{{buy2-price|}}}| {{Currency|{{{buy2-currency|}}}|{{{buy2-price|}}}|short=yes}}}} | rightdata       = {{#if:|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}}

| leftlabel2      = Height | rightlabel2     = Size | leftdata2       = {{#if:|  }} | rightdata2      =  ×

| widelabel       = Size | widedata        = {{#if:||  ×  }}

| label           = Obtain via | data            = {{Availability||note={{{availability1-note|}}}}}{{#if:|{{Availability||note={{{availability2-note|}}}}}}}{{#if:|{{Availability|{{{availability3|}}}|note={{{availability3-note|}}}}}}}

| label2          = Recipe | data2           = {{#if:|{{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 type | data3           = {{#if:|{{{diy-type|{{#switch:  | Wall-Mounted | Wall-mounted =  Wall-mounted | Ceiling Decor | Ceiling decor = Ceiling decor | #default = }}}}}}}

| label4          = Recipe obtained via | data4           = {{#if:|{{Availability||size=sub|18px|note={{{diy-availability1-note|}}}}}{{#if:|{{Availability||size=sub|18px|note={{{diy-availability2-note|}}}}}}}{{#if:|{{Availability||size=sub|18px|note={{{diy-availability3-note|}}}}}}}}}

| label5          = Edible | data5           = {{#if: {{{energy-points|}}} | Yes |}}

| label6          = Energy points | data6           = {{{energy-points|}}}

| label7          = Customize | data7           = {{#if:{{{customizable|}}}|{{#if:|: {{Currency|Bells|{{{cyrus-price|}}}}} {{#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}}}} variations{{#if:| {{#expr:{{#if:|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}}}} patterns}} |}}|No customization options.}}
 * }}{{#ifeq:{{{customizable|}}}|Yes|Customization Kit NH Inv Icon.png {{#ifexpr:{{{custom-kits|}}} > 1|s|}}

| label8          = HHA themes | data8           = {{#if:  | {{{theme1|}}} | }}{{#if:| / {{{theme2|}}}}}

| label9          = Former HHA themes | data9           = {{#if:  | Furniture/New_Horizons/ |}}{{#if:| / {{{former-theme2|}}}}}

| label10          = HHA points | data10           =

| {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}label11 = Colors | {{#if:{{{variation1|}}}{{{pattern1|}}}|NULL}}data11 =

| widebottomlabel = Variations | widebottomdata  =  {{#if:{{{variation1|}}} | {{#forargs: variation | key | value |   }}
 * None }}

| widebottomlabel2 = Patterns | widebottomdata2 = {{#if: {{{pattern1|}}} | {{#forargs: pattern | key | value | {{{pattern{{#var: key }}|Unknown}}} }} | }}

| widebottomlabel3 = Notes | widebottomdata3 = {{{notes|}}}

| widebottomlabel4 = In other games | widebottomdata4 = {{#cargo_query:tables=pg_furniture|fields=CONCAT("Doubutsu no Mori+ (", pg_furniture.en_name, ") ")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("Animal Crossing (", pg_furniture.en_name, ") ")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("Doubutsu no Mori e+ (", pg_furniture.en_name, ") ")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=ww_furniture|fields=CONCAT("Wild World (", ww_furniture.en_name, ") ")|where=ww_furniture.identifier="{{{identifier|}}}"|default=}}

| languages       = Name | ja-name         = | ko-name         = | zh-name         = | zht-name        = {{{zht-name|{{{zh-name|}}}}}} | fr-name         = | frq-name        = | es-name         = | esl-name        = {{{esl-name|{{{es-name|}}}}}} | it-name         = | de-name         = | nl-name         = | ru-name         = | ja-note         = | zh-note         = | zht-note        = | ko-note         = | ru-note         = }} {{#ifeq:{{NAMESPACE}}|Item|[[Category:New Horizons {{#switch: {{{category|}}} | Housewares = housewares | Miscellaneous = miscellaneous items | Wall-Mounted | Wall-mounted = wall-mounted items | Ceiling Decor | Ceiling decor = ceiling decor items | Food = food items | {{{category|}}}}}]] {{#ifeq: {{{outdoor|}}} | Yes | | }} {{#if: {{{series|}}} | }}{{#if: {{{set|}}} | }}{{#if:  | }}{{#if: {{{availability2|}}} | }}{{#if:{{{height|}}} | | }} {{#if:{{{ja-name|}}}||}}{{#if:{{{ko-name|}}}||}}{{#if:{{{zh-name|}}}||}}{{#if:{{{fr-name|}}}||}}{{#if:{{{it-name|}}}||}}{{#if:{{{es-name|}}}||}}{{#if:{{{de-name|}}}||}}{{#if:{{{nl-name|}}}||}}{{#if:{{{ru-name|}}}||}}|}}{{#if: {{{diy-availability2|}}}|}}{{#if: {{{diy-availability3|}}}|}}{{#if: {{{is-material|}}} |  }}{{#if:{{{former-theme1|}}}|}}{{#ifeq: {{{availability1|}}} | Crafting | {{#if: {{{mat1|}}} | | }}{{#if:{{{diy-availability1|}}} | | }}}}