Difference between revisions of "Template:NHFurniture"

From Nookipedia, the Animal Crossing wiki
m (hiding catalog-num if it does not exist)
(swapping catalog num and category type placements)
Line 269: Line 269:
 
  | 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:{{#if:{{{energy-points|}}}|{{#ifeq:{{{energy-points|}}}|5|Dishes|Drinks}}|Furniture}} NH Inv Icon.png|sub|32px|link=]]
 
  | lefticon        = [[File:{{#if:{{{energy-points|}}}|{{#ifeq:{{{energy-points|}}}|5|Dishes|Drinks}}|Furniture}} NH Inv Icon.png|sub|32px|link=]]
  | righticon        = {{#if:{{{num|}}}|'''<nowiki>#</nowiki>{{{num|}}}'''<br>}}[[File:{{#switch: {{{category|}}}
+
  | righticon        = [[File:{{#switch: {{{category|}}}
 
  | Housewares = Furniture NH Category Icon.png{{!}}Type of housewares
 
  | 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
Line 276: Line 276:
 
  | 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|}}}|&nbsp;'''<nowiki>#</nowiki>{{{num|}}}'''}}
  
 
  | image            = {{#ifexist:File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|128px|{{{name|}}}]]|[[File:Nia.png|128px|No image available|link=]]}}
 
  | image            = {{#ifexist:File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|[[File:{{{name|}}} {{#if:{{{variation1|}}}|({{{variation1|}}}{{#if:{{{pattern1|}}}| &nbsp;- {{{pattern1|}}}}})}}{{#if:{{{pattern1|}}}|{{#if:{{{variation1|}}}||({{{pattern1|}}})}}}} NH Icon.png|128px|{{{name|}}}]]|[[File:Nia.png|128px|No image available|link=]]}}

Revision as of 11:29, October 1, 2022

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

Furniture NH Inv Icon.png Type of item
No image available
Buy price Sell price
Not for sale Cannot be sold
Size
0.0 x 0.0 0.0 × 0.0
Obtain via
Customize No customization options.
HHA points ?
Colors
Unknown
 
Unknown
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.
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 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.
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.