Difference between revisions of "Template:NHFurniture"
From Nookipedia, the Animal Crossing wiki
Cephalobot (talk | contribs) m (Text replacement - " | languages = Name" to " | languages = Names") |
AlexBot2004 (talk | contribs) (Adding NL to in other games section) |
||
(31 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|identifier = String | |identifier = String | ||
|en_name = String | |en_name = String | ||
+ | |catalog_num = Integer | ||
|category = String | |category = String | ||
|category_sort = Integer | |category_sort = Integer | ||
Line 62: | Line 63: | ||
|unlocked = Boolean | |unlocked = Boolean | ||
|notes = String | |notes = String | ||
− | }}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{ | + | }}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{NHLang/CargoAttach}}{{NHIdentifier/CargoAttach}}{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHFurnitureVariations/CargoAttach}}<!-- Cargo Store for furniture data (not including images or variations) -->{{#cargo_store: |
_table=nh_furniture | _table=nh_furniture | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
+ | |catalog_num = {{{num|}}} | ||
|category = {{{category|}}} | |category = {{{category|}}} | ||
|category_sort = {{#switch:{{{category|}}}|Housewares=1|Miscellaneous=2|Food=3|Wall-Mounted|Wall-mounted=4|Ceiling Decor|Ceiling decor=5}} | |category_sort = {{#switch:{{{category|}}}|Housewares=1|Miscellaneous=2|Food=3|Wall-Mounted|Wall-mounted=4|Ceiling Decor|Ceiling decor=5}} | ||
Line 106: | Line 108: | ||
|pattern_custom = {{#if: {{{custom-pattern-custom|}}} | Yes | No}} | |pattern_custom = {{#if: {{{custom-pattern-custom|}}} | Yes | No}} | ||
|cyrus_price = {{{cyrus-price|}}} | |cyrus_price = {{{cyrus-price|}}} | ||
− | |grid_size = {{{grid-size|}}} | + | |grid_size = {{{grid-size|{{{width|}}}×{{{length|}}}}}} |
|length = {{{length|}}} | |length = {{{length|}}} | ||
|width = {{{width|}}} | |width = {{{width|}}} | ||
Line 153: | Line 155: | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{{name|}}} NH DIY Icon.png | + | |num = {{{diy-num|}}} |
− | |image_url = {{filepath:{{{name|}}} NH DIY Icon.png}} | + | |image = {{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png |
+ | |image_url = {{filepath:{{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png}} | ||
|serial_id = {{{serial-id|}}} | |serial_id = {{{serial-id|}}} | ||
|type = {{{diy-type|Furniture}}} | |type = {{{diy-type|Furniture}}} | ||
Line 187: | Line 190: | ||
|notes = | |notes = | ||
}} | }} {{#if: {{{variation1|}}} | }} | }} {{#if: {{{variation1|}}} | ||
− | | {{#forargs: variation | key | value | {{#if: {{{pattern1|}}} | {{#forargs: pattern | key2 | value | <!-- Cargo Store for variations+patterns --> {{#cargo_store: | + | | {{#forargs: variation | key | value | {{#if: {{{pattern1|}}} | {{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}} - {{#invoke:TitleCase|main|{{{pattern1|}}}}}) NH Icon.png}}}}}}}{{#forargs: pattern | key2 | value | <!-- Cargo Store for variations+patterns --> {{#cargo_store: |
_table=nh_furniture_variation | _table=nh_furniture_variation | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{{image|{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern{{#var: key2 }}|}}}) NH Icon.png}}} | + | |image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}} - {{#invoke:TitleCase|main|{{{pattern{{#var: key2 }}|}}}}}) NH Icon.png}}} |
− | |image_url = {{filepath:{{{image|{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern{{#var: key2 }}|}}}) NH Icon.png}}}}} | + | |image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}} - {{#invoke:TitleCase|main|{{{pattern{{#var: key2 }}|}}}}}) NH Icon.png}}}}} |
|variation = {{{variation{{#var: key }}|}}} | |variation = {{{variation{{#var: key }}|}}} | ||
|variation_number = {{#var: key }} | |variation_number = {{#var: key }} | ||
Line 199: | Line 202: | ||
|color1 = {{{var{{#var: key }}-color1|}}} | |color1 = {{{var{{#var: key }}-color1|}}} | ||
|color2 = {{{pat{{#var: key2 }}-color1|}}} | |color2 = {{{pat{{#var: key2 }}-color1|}}} | ||
− | }} }} | <!-- Cargo Store for variations, no patterns -->{{#cargo_store: | + | }} }} | <!-- Cargo Store for variations, no patterns --> {{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}}}}}}{{#cargo_store: |
_table=nh_furniture_variation | _table=nh_furniture_variation | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}} | + | |image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Icon.png}}} |
− | |image_url = {{filepath:{{{image|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}} | + | |image_url = {{filepath:{{{image|{{#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 }} | ||
Line 212: | Line 215: | ||
|color2 = {{{var{{#var: key }}-color2|}}} | |color2 = {{{var{{#var: key }}-color2|}}} | ||
}} }} | }} }} | ||
− | }} | {{#if: {{{pattern1|}}} | {{#forargs: pattern | key | value | <!-- Cargo Store for patterns, no variations --> {{#cargo_store: | + | }} | {{#if: {{{pattern1|}}} | {{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{pattern1|}}}}}) NH Icon.png}}}}}}}{{#forargs: pattern | key | value | <!-- Cargo Store for patterns, no variations --> {{#cargo_store: |
_table=nh_furniture_variation | _table=nh_furniture_variation | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{{image|{{{name|}}} ({{{pattern{{#var: key }}|}}}) NH Icon.png}}} | + | |image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{pattern{{#var: key }}|}}}}}) NH Icon.png}}} |
− | |image_url = {{filepath:{{{image|{{{name|}}} ({{{pattern{{#var: key }}|}}}) NH Icon.png}}}}} | + | |image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{pattern{{#var: key }}|}}}}}) NH Icon.png}}}}} |
|variation = | |variation = | ||
|variation_number = | |variation_number = | ||
Line 224: | Line 227: | ||
|color1 = {{{pat{{#var: key }}-color1|}}} | |color1 = {{{pat{{#var: key }}-color1|}}} | ||
|color2 = {{{pat{{#var: key }}-color2|}}} | |color2 = {{{pat{{#var: key }}-color2|}}} | ||
− | }} }} | <!-- Cargo Store for sole item (no variations/patterns) -->{{#cargo_store: | + | }} }} | <!-- Cargo Store for sole item (no variations/patterns) -->{{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}}}{{#cargo_store: |
_table=nh_furniture_variation | _table=nh_furniture_variation | ||
|identifier = {{{identifier|}}} | |identifier = {{{identifier|}}} | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{{image|{{{name|}}} NH Icon.png}}} | + | |image = {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}} |
− | |image_url = {{filepath:{{{image|{{{name|}}} NH Icon.png}}}}} | + | |image_url = {{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}} |
|variation = | |variation = | ||
|variation_number = | |variation_number = | ||
Line 239: | Line 242: | ||
_table=nh_distribution | _table=nh_distribution | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{#if: {{{pattern1|}}} | {{#if: {{{variation1|}}} | {{{image|{{{name|}}} ({{{variation1|}}} - {{{pattern1|}}}) NH Icon.png}}} | {{{image|{{{name|}}} ({{{pattern1|}}}) NH Icon.png}}} }} | {{#if: {{{variation1|}}} | {{{image|{{{name|}}} ({{{variation1|}}}) NH Icon.png}}} | {{{image|{{{name|}}} NH Icon.png}}} }} }} | + | |image = {{#if: {{{pattern1|}}} | {{#if: {{{variation1|}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}} - {{#invoke:TitleCase|main|{{{pattern1|}}}}}) NH Icon.png}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{pattern1|}}}}}) NH Icon.png}}} }} | {{#if: {{{variation1|}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}} }} }} |
|type = Furniture | |type = Furniture | ||
|distribution = {{{distribution|}}} | |distribution = {{{distribution|}}} | ||
Line 258: | Line 261: | ||
|version_added = {{{version-added|}}} | |version_added = {{{version-added|}}} | ||
}}|}}|}} | }}|}}|}} | ||
− | <!-- Cargo store for material-->{{#if:{{{is-material|}}}|{{ | + | <!-- Cargo store for material-->{{#if:{{{is-material|}}}|{{NHMaterial/CargoAttach}}{{#cargo_store: |
_table=nh_material | _table=nh_material | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | }}|}}}}</includeonly>{{Infobox 2.0 | + | }}|}}}}<metakeywords>furniture, item, animal crossing, acnh, new horizons</metakeywords></includeonly>{{Infobox 2.0 |
| primarycolor = 39 100 | | primarycolor = 39 100 | ||
| secondarycolor = 42 73 | | secondarycolor = 42 73 | ||
− | | title = {{{title|{{{name|}}}}}} | + | | title = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}} |
| subtitleabove = {{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{series|}}}|[[{{{series-link|{{{series|}}} Series}}}|{{{series|}}} Series]]|}}{{#if:{{{set|}}}|{{#if:{{{series|}}}|, |}}[[{{{set-link|{{{set|}}} Set}}}|{{{set|}}} Set]]|}}{{#if:{{{function1|}}}|{{#if:{{{series|}}}{{{set|}}}| {{Colorshow|dcab00|'''{{!}}'''}} }}{{{function1|}}}{{#if:{{{function2|}}}|, {{{function2|}}}}}{{#if:{{{function3|}}}|, {{{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|}}}|, |}}[[{{{set-link|{{{set|}}} Set}}}|{{{set|}}} Set]]|}}{{#if:{{{function1|}}}|{{#if:{{{series|}}}{{{set|}}}| {{Colorshow|dcab00|'''{{!}}'''}} }}{{{function1|}}}{{#if:{{{function2|}}}|, {{{function2|}}}}}{{#if:{{{function3|}}}|, {{{function3|}}}}}}}{{#if:{{{series|}}}{{{set|}}}{{{function1|}}}|</span>|}} | ||
− | | lefticon = [[File:{{#switch: {{{category|}}} | + | | lefticon = [[File:{{#if:{{{energy-points|}}}|{{#ifeq:{{{energy-points|}}}|5|Dishes|Drinks}}|Furniture}} NH Inv Icon.png|Type of furniture|sub|32px|link=Furniture/New Horizons]] |
− | | Housewares = Furniture NH Category Icon.png{{!}}Type of | + | | righticon = [[File:{{#switch: {{{category|}}} |
+ | | Housewares = Furniture NH Category Icon.png{{!}}Type of housewares | ||
| Miscellaneous = Goods NH Category Icon.png{{!}}Type of miscellaneous furniture | | Miscellaneous = Goods NH Category Icon.png{{!}}Type of miscellaneous furniture | ||
| Wall-Mounted | | Wall-Mounted | ||
Line 273: | Line 277: | ||
| Ceiling Decor | | Ceiling Decor | ||
| Ceiling decor = Ceiling Decor NH Category Icon.png{{!}}Type of ceiling decor | | Ceiling decor = Ceiling Decor NH Category Icon.png{{!}}Type of ceiling decor | ||
− | | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]] | + | | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]{{#if:{{{num|}}}| '''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}} |
− | |||
− | | image = {{#ifexist:File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| - {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| - {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|128px|{{{name|}}}]]|[[File:Nia.png|128px|No image available|link=]]}} | + | | image = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}}{{#if:{{{pattern1|}}}| - {{#invoke:TitleCase|main|{{{pattern1|}}}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{#invoke:TitleCase|main|{{{pattern1|}}}}})}}}} NH Icon.png|[[File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}}{{#if:{{{pattern1|}}}| - {{#invoke:TitleCase|main|{{{pattern1|}}}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{#invoke:TitleCase|main|{{{pattern1|}}}}})}}}} 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 297: | Line 300: | ||
| label2 = Recipe | | label2 = Recipe | ||
− | | data2 = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}}}{{#if:{{{mat2|}}}|{{Material|{{{mat2|}}}|{{{mat2-num|}}}}}}}{{#if:{{{mat3|}}}|{{Material|{{{mat3|}}}|{{{mat3-num|}}}}}}}{{#if:{{{mat4|}}}|{{Material|{{{mat4|}}}|{{{mat4-num|}}}}}}}{{#if:{{{mat5|}}}|{{Material|{{{mat5|}}}|{{{mat5-num|}}}}}}}{{#if:{{{mat6|}}}|{{Material|{{{mat6|}}}|{{{mat6-num|}}}}}}}}} | + | | data2 = {{#if:{{{diy-availability1|}}}|{{Material|{{{mat1|}}}|{{{mat1-num|}}}|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}}}}}} |
| label3 = Recipe type | | label3 = Recipe type | ||
− | | data3 = {{#if:{{{diy-availability1|}}}|[[DIY recipes/{{{diy-type|{{#switch: {{{category|}}} | Wall-Mounted | Wall-mounted = Wall-mounted | Ceiling Decor | Ceiling decor = Ceiling decor | #default = {{{category|}}}}}}}}|{{{diy-type|{{#switch: {{{category|}}} | Wall-Mounted | Wall-mounted = Wall-mounted | Ceiling Decor | Ceiling decor = Ceiling decor | #default = {{{category|}}}}}}}}]]}} | + | | data3 = {{#if:{{{diy-availability1|}}}|[[DIY recipes/{{{diy-type|{{#switch: {{{category|}}} | Wall-Mounted | Wall-mounted = Wall-mounted | Ceiling Decor | Ceiling decor = Ceiling decor | #default = {{{category|}}}}}}}}|{{{diy-type|{{#switch: {{{category|}}} | Wall-Mounted | Wall-mounted = Wall-mounted | Ceiling Decor | Ceiling decor = Ceiling decor | #default = {{{category|}}}}}}}}]]}}{{#if:{{{diy-num|}}}| (<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{diy-num|}}}}})}} |
| label4 = Recipe obtained via | | label4 = Recipe obtained via | ||
| data4 = {{#if:{{{diy-availability1|}}}|{{Availability|{{{diy-availability1|}}}|size=sub{{!}}18px|note={{{diy-availability1-note|}}}}}{{#if:{{{diy-availability2|}}}|{{Availability|{{{diy-availability2|}}}|size=sub{{!}}18px|note={{{diy-availability2-note|}}}}}}}{{#if:{{{diy-availability3|}}}|{{Availability|{{{diy-availability3|}}}|size=sub{{!}}18px|note={{{diy-availability3-note|}}}}}}}}} | | 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|}}}}}}}}} | ||
− | | label5 = | + | | label5 = Recipe buy price |
− | | data5 = {{#if: {{{ | + | | data5 = {{#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}}}} |
− | | label6 = | + | | label6 = Edible |
− | | data6 = {{{energy-points|}}} | + | | data6 = {{#if: {{{energy-points|}}} | Yes (provides {{{energy-points|}}} [[edible|energy points]]) |}} |
| label7 = Customize | | label7 = Customize | ||
− | | data7 = {{#if:{{{cyrus-price|}}}{{{customizable-variation|}}}{{{customizable-pattern|}}}|{{#if:{{{cyrus-price|}}}|{{Availability|Cyrus|nb=true}}: {{Currency|Bells|{{{cyrus-price|}}}}}<br />|}}{{#if:{{{customizable-variation|}}}{{{customizable-pattern|}}}|[[File:{{{custom-kit-type| | + | | data7 = {{#if:{{{cyrus-price|}}}{{{customizable-variation|}}}{{{customizable-pattern|}}}|{{#if:{{{cyrus-price|}}}|{{Availability|Cyrus|nb=true}}: {{Currency|Bells|{{{cyrus-price|}}}}}<br />|}}{{#if:{{{customizable-variation|}}}{{{customizable-pattern|}}}|[[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 /><includeonly>[[Category:New Horizons customizable furniture]]</includeonly>}}{{#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}}}} variations{{#if:{{{customizable-variation|}}}||{{#if:{{{pattern1|}}}| (Cyrus 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}}}} patterns|}}|No customization options.}}{{#if:{{{custom-pattern-part|}}}{{{custom-body-part|}}}|{{#if:{{{cyrus-price|}}}||[[Category:New Horizons items with missing Cyrus price parameters]]}}}} |
| label8 = [[Happy Home Academy|HHA]] themes | | label8 = [[Happy Home Academy|HHA]] themes | ||
Line 328: | Line 331: | ||
| widebottomlabel = Variations | | widebottomlabel = Variations | ||
| widebottomdata = <div class="nh_item-flex-container" style="position:relative; text-align:center;"> | | widebottomdata = <div class="nh_item-flex-container" style="position:relative; text-align:center;"> | ||
− | {{#if:{{{variation1|}}} | | + | {{#if:{{{variation1|}}} | |
{{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var"> | {{#forargs: variation | key | value | <div class="nh_item-flex-item nh_item-var"> | ||
<div class="nh_item-var-img"> | <div class="nh_item-var-img"> | ||
− | [[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#if:{{{pattern1|}}}|{{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|{{{name|}}} ({{{variation{{#var: key }}|}}} - {{{pattern1|}}}) NH Icon.png|Nia.png}}|{{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png|Nia.png}}}}}}|36px|{{{name|}}}'s {{{variation{{#var: key }}|}}} variant]]</div></div>}}</div> | + | [[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|Nia.png}}|{{#if:{{{pattern1|}}}|{{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}} - {{#invoke:TitleCase|main|{{{pattern1|}}}}}) NH Icon.png|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}} - {{#invoke:TitleCase|main|{{{pattern1|}}}}}) NH Icon.png|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> }} | ||
| widebottomlabel2 = Patterns | | widebottomlabel2 = Patterns | ||
− | | widebottomdata2 = {{#if: {{{pattern1|}}} | | + | | widebottomdata2 = {{#if: {{{pattern1|}}} | <div style="position:relative; text-align:center; text-align:left; line-height:16px;"> |
{{#forargs: pattern | key | value | | {{#forargs: pattern | key | value | | ||
<div style="text-align:center; vertical-align:top; display:inline-block; margin:0 11px 0 11px; width:70px;"> | <div style="text-align:center; vertical-align:top; display:inline-block; margin:0 11px 0 11px; width:70px;"> | ||
− | [[File:{{#if:{{{pat{{#var: key }}-img|}}}|{{#ifexist:File:{{{pat{{#var: key }}-img|}}}|{{{pat{{#var: key }}-img|}}}|Nia.png}}|{{#ifexist:File:{{ | + | [[File:{{#if:{{{pat{{#var: key }}-img|}}}|{{#ifexist:File:{{{pat{{#var: key }}-img|}}}|{{{pat{{#var: key }}-img|}}}|Nia.png}}|{{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} NH Pattern {{#expr: {{#var: key }} - 1}}.png|{{#invoke:TitleCase|main|{{{name|}}}}} NH Pattern {{#expr: {{#var: key }} - 1}}.png|Nia.png}}}}|70px|The {{{pattern{{#var: key }}|}}} pattern for the {{{name|}}}.]]<br> |
<small>{{{pattern{{#var: key }}|Unknown}}}</small> | <small>{{{pattern{{#var: key }}|Unknown}}}</small> | ||
</div> | </div> | ||
Line 348: | Line 351: | ||
| widebottomlabel4 = In other games | | widebottomlabel4 = In other games | ||
− | | widebottomdata4 = {{#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|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_furniture.en_name, ")]]<br />")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_furniture.en_name, ")]]<br />")|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("[[Item:", ww_furniture.en_name, " (Wild World)|''Wild World'' (", ww_furniture.en_name, ")]]<br />")|where=ww_furniture.identifier="{{{identifier|}}}"|default=}} | + | | widebottomdata4 = {{#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|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_furniture.en_name, ")]]<br />")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_furniture.en_name, ")]]<br />")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=pg_furniture|fields=CONCAT("[[Item:", pg_furniture.en_name, " (Dòngwù Sēnlín)|''Dòngwù Sēnlín'' (", pg_furniture.en_name, ")]]<br />")|where=pg_furniture.identifier="{{{identifier|}}}" AND in_ique=1 AND in_dnm=0 AND in_plus=0 AND in_pg=0 AND in_e_plus=0|default=}}{{#cargo_query:tables=ww_furniture|fields=CONCAT("[[Item:", ww_furniture.en_name, " (Wild World)|''Wild World'' (", ww_furniture.en_name, ")]]<br />")|where=ww_furniture.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=nl_furniture|fields=CONCAT("[[Item:", nl_furniture.en_name, " (New Leaf)|''New Leaf'' (", nl_furniture.en_name, ")]]<br />")|where=nl_furniture.identifier="{{{identifier|}}}"|default=}} |
| languages = Names | | languages = Names | ||
Line 370: | Line 373: | ||
}} | }} | ||
<includeonly> | <includeonly> | ||
− | {{#ifeq:{{NAMESPACE}}|Item|[[Category:New Horizons {{#switch: {{{category|}}} | + | {{#ifeq:{{NAMESPACE}}|Item|[[Category:New Horizons furniture]]{{#if:{{{pattern1|}}}{{{variation1|}}} | [[Category:New Horizons furniture with variations]]}}[[Category:New Horizons {{#switch: {{{category|}}} |
| Housewares = housewares | | Housewares = housewares | ||
| Miscellaneous = miscellaneous items | | Miscellaneous = miscellaneous items | ||
Line 378: | Line 381: | ||
| Ceiling decor = ceiling decor items | | Ceiling decor = ceiling decor items | ||
| Food = food items | | Food = food items | ||
− | | {{{category|}}}}}]] {{#ifeq: {{{outdoor|}}} | Yes | [[Category:Outdoor items]] | }} {{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{set|}}} | [[Category:{{{set|}}} Set]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{#switch:{{{availability1|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability1|}}}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{#switch:{{{availability2|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability2|}}}}}]]}}{{#if: {{{availability3|}}} | [[Category:Acquired from {{#switch:{{{availability3|}}}|Crafting=crafting|Cooking=cooking|#default={{{availability3|}}}}}]]}}{{#if:{{{height|}}} | | [[Category:New Horizons items with missing height]]}} {{#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]]}}|}}[[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]] }}{{#if:{{{former-theme1|}}}|[[Category:New Horizons items with version differences]]}} | + | | {{{category|}}}}}]] {{#ifeq: {{{outdoor|}}} | Yes | [[Category:Outdoor items]] | }} {{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}} {{#if: {{{set|}}} | [[Category:{{{set|}}} Set]]}} {{#if:{{{length|}}}|{{#ifexpr:{{{length|}}} = 1.0 or {{{length|}}} = 1.5 or {{{length|}}} = 2.0 or {{{length|}}} = 3.0 or {{{length|}}} = 0.5||[[Category:Items with invalid size parameters]]}}}}{{#if:{{{width|}}}|{{#ifexpr:{{{width|}}} = 1.0 or {{{width|}}} = 1.5 or {{{width|}}} = 2.0 or {{{width|}}} = 3.0 or {{{width|}}} = 0.5||[[Category:Items with invalid size parameters]]}}}}{{#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:{{{height|}}} | | [[Category:New Horizons items with missing height]]}} {{#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]]}}|}}[[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]] }}{{#if:{{{former-theme1|}}}|[[Category:New Horizons items with version differences]]}}{{#ifeq: {{{availability1|}}} | Crafting | {{#if: {{{mat1|}}} | | [[Category:New Horizons items with missing crafting recipes]]}}{{#if:{{{diy-availability1|}}} | | [[Category:New Horizons items with missing crafting recipe availability]]}}}}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude> |
Revision as of 15:27, December 3, 2022
This template defines the table "nh_furniture". View table.
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.
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.
title
- A title override for specific furniture items.
- Default value: The title provided for
name
Metadata
category
- The category of the item as seen in the catalog.
- Possible values: Housewares, Miscellaneous, Wall-mounted
series
- The HHA series the item is a part of.
series-link
- A link override for
series
- Default value: Value provided for
series
set
- The HHS set the item is a part of.
set-link
- A link override for
set
- Default value: Value provided for
set
theme1
,theme2
- Themes that the item belongs to. For furniture, this refers to HHA concepts.
function1
,function2
- The functionality of the item (e.g. bathtub, lighting, table). Functions are not an in-game attribute; Nookipedia uses them to distinguish and categorize items.
- Possible values (expand as needed): Bed, Dresser, Instrument, Lighting, Mirror, Seating, Signage, Stereo, Storage, Table, Toilet
color1
,color2
- The colors for the item (for the purposes of feng shui). Each item has two. For items with variations,
color1
andcolor2
should be set to those of the "default" (first) variation. Colors for variations can be defined invar1-color1
/var1-color2
,var2-color1
/var2-color2
, etc.
length
- The length of the item as a float (e.g. 1.0, 1.5). Sources an image using {{Size}}.
width
- The width of the item as a float (e.g. 1.0, 1.5). Sources an image using {{Size}}.
height
- The height of the item as a float (e.g. 1.0, 1.5). Generates an appropriately sized silhouette and line to show height relative to the player.
outdoor
- Whether the item is considered an "outdoor" item by the game (this has an impact on island evaluations).
- Currently not displayed in the template.
interactable
- Boolean of whether the player can interact with the item.
- Currently not displayed in the template.
sound
- Whether the item produces (music or otherwise).
- Currently not displayed in the template.
music
- Whether the item plays music (if set to yes,
sound
should also be set to yes). - 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.
version-added
- The version of the game that the item was added to the game's files (regardless of whether or not the item is accessible without exploits).
- Currently not displayed in the template.
version-unlocked
- The version of the game that the item was made accessible to players.
- Currently not displayed in the template.
Acquiring
availability1
,availability2
,availability3
- How the item can be acquired. Value should match one of the options in Template:Availability.
availability1-season
,availability2-season
,availability3-season
- If the corresponding availability is only during a particular season.
- Possible values: Spring, Summer, Fall, Winter
diy-availability
,diy-availability2
,diy-availability3
- If the item is produced using a DIY recipe, this parameter is used to note how the recipe can be acquired. Value should match one of the options in Template:Availability.
diy-availability-note
,diy-availability2-note
,diy-availability3-note
- Notes that will appear in parentheses after the diy-availability.
mat1
,mat2
,mat3
,mat4
,mat5
,mat6
- Names of materials needed. Value should match one of the options in Template:Material.
mat1-num
,mat2-num
,mat3-num
,mat4-num
,mat5-num
,mat6-num
- Number of material needed.
buy1-price
,buy2-price
- Cost to purchase, if applicable.
buy1-currency
,buy2-currency
- Currency for corresponding buy price.
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.
- Variations
variation1
,variation2
,variation3
,variation4
,variation5
variation6
,variation7
,variation8
- The name of each variation of an item.
var1-img
,var2-img
,var3-img
,var4-img
,var5-img
var6-img
,var7-img
,var8-img
- The image associated with each variant, not including the leading 'File:'. For items with both variants and patterns, these parameters should contain images for each variant using the first (default) pattern.
var1-color1
,var2-color1
,var3-color1
,var4-color1
,var5-color1
var6-color1
,var7-color1
,var8-color1
- The first color associated with each variant.
var1-color2
,var2-color2
,var3-color2
,var4-color2
,var5-color2
var6-color2
,var7-color2
,var8-color2
- The second color associated with each variant. Should be left blank if a variant can also has a pattern, as the second color is derived from the pattern.
- Patterns
pattern1
,pattern2
,pattern3
,pattern4
,pattern5
,pattern6
,pattern7
,pattern8
- The name of each pattern that can be applied to an item as a customization.
pat1-img
,pat2-img
,pat3-img
,pat4-img
,pat5-img
,pat6-img
,pat7-img
,pat8-img
- The image associated with each of the above patterns.
pat1-color1
,pat2-color1
,pat3-color1
,pat4-color1
,pat5-color1
pat6-color1
,pat7-color1
,pat8-color1
- The first color associated with each pattern.
pat1-color2
,pat2-color2
,pat3-color2
,pat4-color2
,pat5-color2
pat6-color2
,pat7-color2
,pat8-color2
- The second color associated with each pattern. Should be left blank if a pattern can also has a variation.
Other
notes
- Any additional notes (special properties, glitches, attribution, etc.).
max-length
- Optional parameter that can be used to force the 2-column or 3-column display of the item name translations. The default value is 30. Increasing the value creates a tendency towards a 3-column display, decreasing it, a 2-column display.