Difference between revisions of "Template:NHInterior"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (adding inventory icon) |
Dorsal Axe (talk | contribs) (Switching to CSS colour class) |
||
(18 intermediate revisions by 4 users not shown) | |||
Line 5: | Line 5: | ||
|image = String | |image = String | ||
|image_url = String | |image_url = String | ||
+ | |catalog_num = Integer | ||
|category = String | |category = String | ||
|category_sort = Integer | |category_sort = Integer | ||
+ | |collection = List (,) of String | ||
|item_series = String | |item_series = String | ||
|item_set = String | |item_set = String | ||
Line 32: | Line 34: | ||
|color2 = String | |color2 = String | ||
|is_material = Boolean | |is_material = Boolean | ||
+ | |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 -->{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHLang/CargoAttach}}{{ | + | }}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|New Horizons|''New Horizons''}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{#if: {{{mat1|}}} | {{NHRecipe/CargoAttach}}}}{{NHLang/CargoAttach}}{{NHIdentifier/CargoAttach}} |
<!-- Cargo Store for interior data (not including images or variations) -->{{#cargo_store: | <!-- Cargo Store for interior data (not including images or variations) -->{{#cargo_store: | ||
_table=nh_interior | _table=nh_interior | ||
− | |identifier = {{{identifier | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
− | |image = {{{image| | + | |catalog_num = {{{num|}}} |
− | |image_url = {{filepath:{{{image| | + | |image = {{{image|}}} |
+ | |image_url = {{filepath:{{{image|}}}}} | ||
|category = {{{category|}}} | |category = {{{category|}}} | ||
|category_sort = {{#switch:{{{category|}}}|Wallpaper=1|Floors=2|Rugs=3}} | |category_sort = {{#switch:{{{category|}}}|Wallpaper=1|Floors=2|Rugs=3}} | ||
+ | |collection = {{{collection|}}} | ||
|item_series = {{{series|}}} | |item_series = {{{series|}}} | ||
|item_set = {{{set|}}} | |item_set = {{{set|}}} | ||
Line 69: | Line 74: | ||
|color2 = {{{color2|}}} | |color2 = {{{color2|}}} | ||
|is_material = {{#if: {{{is-material|}}} | Yes | No}} | |is_material = {{#if: {{{is-material|}}} | Yes | No}} | ||
+ | |catalog = {{{catalog|}}} | ||
|version_added = {{{version-added|}}} | |version_added = {{{version-added|}}} | ||
|unlocked = {{#if: {{{unlocked|}}} | Yes | No}} | |unlocked = {{#if: {{{unlocked|}}} | Yes | No}} | ||
Line 74: | Line 80: | ||
}}<!-- 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| | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
|type = Interior | |type = Interior | ||
|engb_name = {{{engb-name|}}} | |engb_name = {{{engb-name|}}} | ||
Line 98: | Line 104: | ||
| {{#cargo_store: | | {{#cargo_store: | ||
_table=nh_recipe | _table=nh_recipe | ||
− | |identifier = {{{identifier| | + | |identifier = {{{identifier|}}} |
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
− | |image = {{ | + | |num = {{{diy-num|}}} |
− | |image_url = {{filepath:{{ | + | |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 = Interior | |type = Interior | ||
Line 135: | Line 142: | ||
}} | }} <!-- Cargo store for distributions -->{{#if:{{{distribution|}}}|{{NHDistribution/CargoAttach}}{{#cargo_store: | }} | }} <!-- Cargo store for distributions -->{{#if:{{{distribution|}}}|{{NHDistribution/CargoAttach}}{{#cargo_store: | ||
_table=nh_distribution | _table=nh_distribution | ||
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
− | |image = {{{image| | + | |image = {{{image|}}} |
|type = Interior | |type = Interior | ||
|distribution = {{{distribution|}}} | |distribution = {{{distribution|}}} | ||
Line 145: | Line 152: | ||
}}|}}<!-- Cargo Store for seasonal item -->{{#ifeq:{{{availability1|}}}|Nook Shopping|{{#ifeq:{{{availability1-note|}}}|Seasonal|{{NHSeasonal/CargoAttach}}{{#cargo_store: | }}|}}<!-- Cargo Store for seasonal item -->{{#ifeq:{{{availability1|}}}|Nook Shopping|{{#ifeq:{{{availability1-note|}}}|Seasonal|{{NHSeasonal/CargoAttach}}{{#cargo_store: | ||
_table=nh_seasonal | _table=nh_seasonal | ||
− | |en_name = {{{name| | + | |en_name = {{{name|}}} |
|event = {{{event|}}} | |event = {{{event|}}} | ||
|region = {{{region|}}} | |region = {{{region|}}} | ||
Line 154: | Line 161: | ||
|event_date_sort = {{{event-date-sort|}}} | |event_date_sort = {{{event-date-sort|}}} | ||
|version_added = {{{version-added|}}} | |version_added = {{{version-added|}}} | ||
− | }}|}}|}}}}</includeonly>{{Infobox 2.0 | + | }}|}}|}}}}{{#seo:|image={{filepath:{{{image|}}}}}}}</includeonly>{{Infobox 2.0 |
+ | | colorclass = color-series | ||
| primarycolor = 39 100 | | primarycolor = 39 100 | ||
| secondarycolor = 42 73 | | secondarycolor = 42 73 | ||
− | | title = {{{ | + | | 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:{{{inv-icon|{{#switch: {{{category|}}} |
+ | | Wallpaper = Wallpaper NH Inv Icon.png | ||
+ | | Floors = Flooring NH Inv Icon.png | ||
+ | | Rugs = Rug NH Inv Icon.png}}}}}|sub|32px|link=]] | ||
+ | | righticon = [[File:{{#switch: {{{category|}}} | ||
| Wallpaper = Wall NH Category Icon.png{{!}}Type of wallpaper | | Wallpaper = Wall NH Category Icon.png{{!}}Type of wallpaper | ||
| Floors = Floor NH Category Icon.png{{!}}Type of floor | | Floors = Floor NH Category Icon.png{{!}}Type of floor | ||
| Rugs = Rug NH Category Icon.png{{!}}Type of rug | | Rugs = Rug NH Category Icon.png{{!}}Type of rug | ||
− | | 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 = | + | | image = [[File:{{{image|}}}|128px|{{#invoke:SentenceCase|main|{{{name|}}}}}]] |
| leftlabel = Buy price | | leftlabel = Buy price | ||
Line 183: | Line 191: | ||
| 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 | ||
Line 207: | Line 215: | ||
| widebottomlabel2 = In other games | | widebottomlabel2 = In other games | ||
− | | widebottomdata2 = {{#cargo_query:tables=pg_interior|fields=CONCAT("[[Item:", pg_interior.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_interior.en_name, ")]]<br />")|where=pg_interior.identifier="{{{identifier|}}}"|default=}} | + | | widebottomdata2 = {{#cargo_query:tables=pg_interior|fields=CONCAT("[[Item:", pg_interior.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_interior.en_name, ")]]<br />")|where=pg_interior.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|delimiter=|default=}}{{#cargo_query:tables=pg_interior|fields=CONCAT("[[Item:", pg_interior.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_interior.en_name, ")]]<br />")|where=pg_interior.identifier="{{{identifier|}}}" AND in_pg=1|delimiter=|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|}}}"|delimiter=|default=}}{{#cargo_query:tables=pg_interior|fields=CONCAT("[[Item:", pg_interior.en_name, " (Dòngwù Sēnlín)|''Dòngwù Sēnlín'' (", pg_interior.en_name, ")]]<br />")|where=pg_interior.identifier="{{{identifier|}}}" AND in_ique=1 AND in_dnm=0 AND in_plus=0 AND in_pg=0 AND in_e_plus=0|delimiter=|default=}}{{#cargo_query:tables=ww_interior|fields=CONCAT("[[Item:", ww_interior.en_name, " (Wild World)|''Wild World'' (", ww_interior.en_name, ")]]<br />")|where=ww_interior.identifier="{{{identifier|}}}"|delimiter=|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|}}}"|delimiter=|default=}}{{#cargo_query:tables=cf_interior|fields=CONCAT("[[Item:", cf_interior.en_name, " (City Folk)|''City Folk'' (", cf_interior.en_name, ")]]<br />")|where=cf_interior.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nl_interior|fields=CONCAT("[[Item:", nl_interior.en_name, " (New Leaf)|''New Leaf'' (", nl_interior.en_name, ")]]<br />")|where=nl_interior.identifier="{{{identifier|}}}"|delimiter=|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|}}}"|delimiter=|default=}} |
− | | languages = | + | | languages = Names |
| ja-name = {{{ja-name|}}} | | ja-name = {{{ja-name|}}} | ||
| ko-name = {{{ko-name|}}} | | ko-name = {{{ko-name|}}} | ||
Line 232: | Line 240: | ||
| Floors = floors | | Floors = floors | ||
| Rugs = rugs | | Rugs = rugs | ||
− | | {{{category|}}}}}]]{{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from | + | | {{{category|}}}}}]]{{#if: {{{series|}}} | [[Category:{{{series|}}} Series]]}}{{#if: {{{availability1|}}} | [[Category:Acquired from {{{availability1|}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{{availability2|}}}]]}}{{#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]] }}</includeonly><noinclude>{{clear}}<br>{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]</noinclude> |
Revision as of 04:55, May 18, 2024
This template defines the table "nh_interior". View table.
| ||||||||
[[File:|128px|]] | ||||||||
Buy price | Sell price | |||||||
---|---|---|---|---|---|---|---|---|
Not for sale | Unknown | |||||||
Obtain via | ||||||||
HHA themes | None | |||||||
HHA points | ? | |||||||
Colors | Unknown
Unknown
| |||||||
Names in other languages
Unknown
Unknown Unknown Unknown
Unknown
Unknown Unknown Unknown
Unknown Unknown Unknown Unknown |
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.
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
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
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.
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.).