Difference between revisions of "Template:NHClothing"

From Nookipedia, the Animal Crossing wiki
(update to match the latest version of Template:NHFurniture (plus replacing theme with style))
(update to match the latest version of Template:NHFurniture)
Line 10: Line 10:
 
|label4 = String
 
|label4 = String
 
|label5 = String
 
|label5 = String
|buy_bells = String
+
|buy1_price = Integer
|buy_bells_wikitext = Wikitext string
+
|buy1_currency = String
|buy_miles = String
+
|buy1_wikitext = Wikitext string
|buy_miles_wikitext = Wikitext string
+
|buy2_price = Integer
 +
|buy2_currency = String
 +
|buy2_wikitext = Wikitext string
 
|sell = Integer
 
|sell = Integer
 
|availability1 = String
 
|availability1 = String
Line 19: Line 21:
 
|availability2 = String
 
|availability2 = String
 
|availability2_note = String
 
|availability2_note = String
 +
|grid_size = String
 
|length = Float
 
|length = Float
 
|width = Float
 
|width = Float
Line 25: Line 28:
 
|version_unlocked = String
 
|version_unlocked = String
 
|notes = String
 
|notes = String
}}</noinclude><includeonly><!-- Cargo Store for clothing data (not including images or variations) -->{{#cargo_store:
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}|Item|<!-- Cargo Store for clothing data (not including images or variations) -->{{#cargo_store:
 
_table=nh_clothing
 
_table=nh_clothing
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
Line 36: Line 39:
 
|label4 = {{{label4|}}}
 
|label4 = {{{label4|}}}
 
|label5 = {{{label5|}}}
 
|label5 = {{{label5|}}}
|buy_bells = {{{buy-bells|NA}}}
+
|buy1_price = {{{buy1-price|}}}
|buy_bells_wikitext = {{#ifeq:{{{buy-bells|}}}|NA|NA|{{Currency|Bells|{{{buy-bells|}}}}}}}
+
|buy1_currency = {{{buy1-currency|}}}
|buy_miles = {{{buy-miles|NA}}}
+
|buy1_wikitext = {{#ifeq:{{{buy1-price|}}}|NA|NA|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}}}}}
|buy_miles_wikitext = {{#ifeq:{{{buy-miles|}}}|NA|NA|{{Currency|Miles|{{{buy-miles|}}}}}}}
+
|buy2_price = {{{buy2-price|}}}
 +
|buy2_currency = {{{buy2-currency|}}}
 +
|buy2_wikitext = {{#ifeq:{{{buy2-price|}}}|NA|NA|{{Currency|{{{buy2-currency|}}}|{{{buy2-price|}}}}}}}
 
|sell = {{{sell|}}}
 
|sell = {{{sell|}}}
 
|availability1 = {{{availability1|}}}
 
|availability1 = {{{availability1|}}}
Line 45: Line 50:
 
|availability2 = {{{availability2|}}}
 
|availability2 = {{{availability2|}}}
 
|availability2_note = {{{availability2-note|}}}
 
|availability2_note = {{{availability2-note|}}}
|length = {{{width|}}}
+
|grid_size = {{{grid-size|}}}
 +
|length = {{{length|}}}
 
|width = {{{width|}}}
 
|width = {{{width|}}}
 
|height = {{{height|}}}
 
|height = {{{height|}}}
Line 54: Line 60:
 
_table=nh_language_names
 
_table=nh_language_names
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
+
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|de_name = {{{de-name|}}}
 
|de_name = {{{de-name|}}}
 
|es_name = {{{es-name|}}}
 
|es_name = {{{es-name|}}}
Line 72: Line 78:
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
|buy_bells = {{{diy-buy-bells|}}}
+
|buy1_price = {{{diy-buy1-price|}}}
|buy_bells_wikitext = {{#ifeq:{{{diy-buy-bells|}}}|NA|NA|{{Currency|Bells|{{{diy-buy-bells|}}}}}}}
+
|buy1_currency = {{{diy-buy1-currency|}}}
|buy_miles = {{{diy-buy-miles|}}}
+
|buy1_wikitext = {{#ifeq:{{{diy-buy1-price|}}}|NA|NA|{{Currency|{{{diy-buy1-currency|}}}|{{{diy-buy1-price|}}}}}}}
|buy_miles_wikitext = {{#ifeq:{{{diy-buy-miles|}}}|NA|NA|{{Currency|Miles|{{{diy-buy-miles|}}}}}}}
+
|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|}}}
 
|sell = {{{diy-sell|}}}
 
|diy_availability1 = {{{diy-availability1|}}}
 
|diy_availability1 = {{{diy-availability1|}}}
Line 100: Line 108:
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
|buy_bells = {{{diy-buy-bells|}}}
+
|buy1_price = {{{diy-buy1-price|}}}
|buy_bells_wikitext = {{#if:{{{diy-buy-bells|}}}|{{Currency|Bells|{{{diy-buy-bells|}}}}}|NA}}
+
|buy1_currency = {{{diy-buy1-currency|}}}
|buy_miles = {{{diy-buy-miles|}}}
+
|buy1_wikitext = {{#ifeq:{{{diy-buy1-price|}}}|NA|NA|{{Currency|{{{diy-buy1-currency|}}}|{{{diy-buy1-price|}}}}}}}
|buy_miles_wikitext = {{#if:{{{diy-buy-miles|}}}|{{Currency|Nook Miles|{{{diy-buy-miles|}}}}}|NA}}
+
|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|}}}
 
|sell = {{{diy-sell|}}}
 
|diy_availability1 = {{{diy-availability1|}}}
 
|diy_availability1 = {{{diy-availability1|}}}
Line 128: Line 138:
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}
 
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
 
|name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(New Horizons)|}}}}}}}}
|buy_bells = {{{diy-buy-bells|}}}
+
|buy1_price = {{{diy-buy1-price|}}}
|buy_bells_wikitext = {{#if:{{{diy-buy-bells|}}}|{{Currency|Bells|{{{diy-buy-bells|}}}}}|NA}}
+
|buy1_currency = {{{diy-buy1-currency|}}}
|buy_miles = {{{diy-buy-miles|}}}
+
|buy1_wikitext = {{#ifeq:{{{diy-buy1-price|}}}|NA|NA|{{Currency|{{{diy-buy1-currency|}}}|{{{diy-buy1-price|}}}}}}}
|buy_miles_wikitext = {{#if:{{{diy-buy-miles|}}}|{{Currency|Nook Miles|{{{diy-buy-miles|}}}}}|NA}}
+
|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|}}}
 
|sell = {{{diy-sell|}}}
 
|diy_availability1 = {{{diy-availability1|}}}
 
|diy_availability1 = {{{diy-availability1|}}}
Line 171: Line 183:
 
}}
 
}}
 
}}
 
}}
}}</includeonly>
+
}}}}</includeonly>
 
<div id="nh_item" class="infobox" style="box-sizing: border-box; float: right; width:330px; max-width:655px; background-color:#FFDD66; {{roundy|16px}}; padding:.2em .76em .2em .76em; margin-left: 10px; margin-bottom: 10px; text-align:center;">
 
<div id="nh_item" class="infobox" style="box-sizing: border-box; float: right; width:330px; max-width:655px; background-color:#FFDD66; {{roundy|16px}}; padding:.2em .76em .2em .76em; margin-left: 10px; margin-bottom: 10px; text-align:center;">
 
<div style="line-height:.45em; padding:7px 0 9px 0;">
 
<div style="line-height:.45em; padding:7px 0 9px 0;">
Line 196: Line 208:
 
</div>
 
</div>
 
<!-- Size display --><div style="display:inline-block; vertical-align:top; padding-top:3px; padding-right:3px;">
 
<!-- Size display --><div style="display:inline-block; vertical-align:top; padding-top:3px; padding-right:3px;">
{{Size|{{{length|0.0}}}|{{{width|0.0}}}}}
+
{{Size|{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}|{{#sub:{{{grid-size|0.0×0.0}}}|4}}}}
 
</div>
 
</div>
 
<div style="display:inline-block; vertical-align:top; line-height:1.55em; padding-right:14px; text-align:left;">
 
<div style="display:inline-block; vertical-align:top; line-height:1.55em; padding-right:14px; text-align:left;">
<span style="font-size:.9em;">'''Size:'''<br>{{{length|0.0}}}&nbsp;×&nbsp;{{{width|0.0}}}</span>
+
<span style="font-size:.9em;">'''Size:'''<br>{{#sub:{{{grid-size|0.0×0.0}}}|0|3}}&nbsp;×&nbsp;{{#sub:{{{grid-size|0.0×0.0}}}|4}}</span>
 
</div>
 
</div>
 
</div>
 
</div>
 
<!-- Buy/Sell display --><div style="display:inline-block; vertical-align:top; text-align:left; padding-top:5px;">
 
<!-- Buy/Sell display --><div style="display:inline-block; vertical-align:top; text-align:left; padding-top:5px;">
<span style="font-size:.9em;">'''Buy:'''&nbsp;{{#ifeq:{{{buy-bells|}}}|NA|{{#ifeq:{{{buy-miles|}}}|NA|Not for sale|{{Currency|Nook Miles|{{{buy-miles|}}}|short=yes}}}}|{{Currency|Bells|{{{buy-bells|}}}}}}}<br>'''Sell:'''&nbsp;{{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}</span>
+
<span style="font-size:.9em;">'''Buy:'''&nbsp;{{#if:{{{buy1-price|}}}|{{Currency|{{{buy1-currency|}}}|{{{buy1-price|}}}|short=yes}}|Not for sale}}<br>'''Sell:'''&nbsp;{{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}</span>
 
</div>
 
</div>
 
<hr class="nh_item-divider" />
 
<hr class="nh_item-divider" />

Revision as of 03:39, June 4, 2020

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

Type of item NHClothing

No image available

Boy 1 NH Silhouette.pngheight

0.0 x 0.0

Size:
0.0 × 0.0

Buy: Not for sale
Sell: Unknown


Obtain from:


Label Theme(s):
Unknown


 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: Tops, Bottoms, Dress-Up, Headwear, Accessories, Socks, Shoes, Bags
style
Style of the item.
label1, label2, label3, label4, label5
Themes for the Label's fashion check.
color1, color2
The colors for the item. 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.

Acquiring

availability1, availability2
How the item can be acquired. Value should match one of the options in Template:Availability.
availability1-note, availability2-note
Notes for the availability (e.g. Season, requirements, etc.).
diy-availability1, 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-availability1-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.
buy-bells
Cost to purchase in Bells.
buy-miles
Cost to purchase in Nook Miles.
sell
Sell price in Bells.

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.

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.