Difference between revisions of "Template:NHClothing"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (adding WikiSEO and metakeywords information) |
PanchamBro (talk | contribs) (Preparing template once item capitalization proposal passes and several changes to names are made automatically + removing parameter relating to item pattern variants since clothing do not exhibit those types of variants.) |
||
Line 164: | Line 164: | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
|num = {{{diy-num|}}} | |num = {{{diy-num|}}} | ||
− | |image = {{{name|}}} NH DIY Icon.png | + | |image = {{#invoke:TitleCase|main|{{{name|}}}}} NH DIY Icon.png |
− | |image_url = {{filepath:{{{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 = Clothing | |type = Clothing | ||
Line 197: | Line 197: | ||
|version_added = {{{version-added|}}} | |version_added = {{{version-added|}}} | ||
|notes = | |notes = | ||
− | }} | }} {{#if: {{{variation1|}}} | {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#seo:|image={{filepath:{{{image|{{{name|}}} ({{{variation1|}}}) NH Icon.png}}}}}}}{{#cargo_store: | + | }} | }} {{#if: {{{variation1|}}} | {{#forargs: variation | key | value | <!-- Cargo Store for variations --> {{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}}}}}}{{#cargo_store: |
_table=nh_clothing_variation | _table=nh_clothing_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|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Icon.png}}}}} | ||
− | |image_storage = {{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png|{{{image2|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png}}}|}} | + | |image_storage = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png|{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png}}}|}} |
− | |image_storage_url = {{#ifexist:File:{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png|{{filepath:{{{image2|{{{name|}}} ({{{variation{{#var: key }}|}}}) NH Storage Icon.png}}}}}|}} | + | |image_storage_url = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png|{{filepath:{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation{{#var: key }}|}}}}}) NH Storage Icon.png}}}}}|}} |
|variation = {{{variation{{#var: key }}|}}} | |variation = {{{variation{{#var: key }}|}}} | ||
|variation_number = {{#var: key }} | |variation_number = {{#var: key }} | ||
|color1 = {{{var{{#var: key }}-color1|}}} | |color1 = {{{var{{#var: key }}-color1|}}} | ||
|color2 = {{{var{{#var: key }}-color2|}}} | |color2 = {{{var{{#var: key }}-color2|}}} | ||
− | }} }} | <!-- Cargo Store for sole item (no variations) -->{{#seo:|image={{filepath:{{{image|{{{name|}}} NH Icon.png}}}}}}}{{#cargo_store: | + | }} }} | <!-- Cargo Store for sole item (no variations) -->{{#seo:|image={{filepath:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}}}}}}{{#cargo_store: |
_table=nh_clothing_variation | _table=nh_clothing_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}}}}} |
− | |image_storage = {{#ifexist:File:{{{name|}}} NH Storage Icon.png|{{{image2|{{{name|}}} NH Storage Icon.png}}}|}} | + | |image_storage = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png|{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png}}}|}} |
− | |image_storage_url = {{#ifexist:File:{{{name|}}} NH Storage Icon.png|{{filepath:{{{image2|{{{name|}}} NH Storage Icon.png}}}}}|}} | + | |image_storage_url = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png|{{filepath:{{{image2|{{#invoke:TitleCase|main|{{{name|}}}}} NH Storage Icon.png}}}}}|}} |
|variation = | |variation = | ||
|variation_number = 1 | |variation_number = 1 | ||
Line 225: | Line 225: | ||
_table=nh_distribution | _table=nh_distribution | ||
|en_name = {{{name|}}} | |en_name = {{{name|}}} | ||
− | |image = {{#if: {{{variation1|}}} | {{{image|{{{name|}}} ({{{variation1|}}}) NH Icon.png}}} | {{{image|{{{name|}}} NH Icon.png}}} }} | + | |image = {{#if: {{{variation1|}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} ({{#invoke:TitleCase|main|{{{variation1|}}}}}) NH Icon.png}}} | {{{image|{{#invoke:TitleCase|main|{{{name|}}}}} NH Icon.png}}} }} |
|type = Clothing | |type = Clothing | ||
|distribution = {{{distribution|}}} | |distribution = {{{distribution|}}} | ||
Line 246: | Line 246: | ||
| primarycolor = 39 100 | | primarycolor = 39 100 | ||
| secondarycolor = 42 73 | | secondarycolor = 42 73 | ||
− | | title = {{{name|}}} | + | | 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:{{{inv-icon|{{#switch: {{{category|}}} | | lefticon = [[File:{{{inv-icon|{{#switch: {{{category|}}} | ||
| Tops = Top NH Inv Icon.png | | Tops = Top NH Inv Icon.png | ||
| Bottoms = Bottoms NH Inv Icon.png | | Bottoms = Bottoms NH Inv Icon.png | ||
+ | | Dress-up | ||
| Dress-Up = Dress-Up NH Inv Icon.png | | Dress-Up = Dress-Up NH Inv Icon.png | ||
| Headgear | | Headgear | ||
Line 263: | Line 264: | ||
| Tops = Clothes NH Category Icon.png{{!}}Type of top | | Tops = Clothes NH Category Icon.png{{!}}Type of top | ||
| Bottoms = Bottom NH Category Icon.png{{!}}Type of bottom | | Bottoms = Bottom NH Category Icon.png{{!}}Type of bottom | ||
+ | | Dress-up | ||
| Dress-Up = Onepiece NH Category Icon.png{{!}}Type of dress-up | | Dress-Up = Onepiece NH Category Icon.png{{!}}Type of dress-up | ||
| Headgear = Hat NH Category Icon.png{{!}}Type of headgear | | Headgear = Hat NH Category Icon.png{{!}}Type of headgear | ||
Line 274: | Line 276: | ||
| All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]{{#if:{{{num|}}}| '''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}} | | All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]{{#if:{{{num|}}}| '''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num|}}}}}'''}} | ||
− | | image = {{#ifexist:File: | + | | image = {{#ifexist:File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}})}} NH Icon.png|[[File:{{#invoke:TitleCase|main|{{{name|}}}}} {{#if:{{{variation1|}}}|({{#invoke:TitleCase|main|{{{variation1|}}}}})}} NH Icon.png|{{{image-size|256px}}}|{{#invoke:SentenceCase|main|{{{name|}}}}}]]|[[File:Nia.png|256px|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 313: | Line 315: | ||
{{#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}}|{{# | + | [[File:{{#if:{{{var{{#var: key }}-img|}}}|{{#ifexist:File:{{{var{{#var: key }}-img|}}}|{{{var{{#var: key }}-img|}}}|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> }} | ||
Line 345: | Line 347: | ||
| Tops = tops | | Tops = tops | ||
| Bottoms = bottoms | | Bottoms = bottoms | ||
+ | | Dress-up | ||
| Dress-Up = dress-up | | Dress-Up = dress-up | ||
| Headgear = headgear | | Headgear = headgear |
Revision as of 17:48, November 25, 2022
This template defines the table "nh_clothing". View table.
| ||||||||
Buy price | Sell price | |||||||
---|---|---|---|---|---|---|---|---|
Not for sale | Cannot be sold | |||||||
Obtain via | ||||||||
Colors | ||||||||
Variations | ||||||||
None
| ||||||||
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: 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
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.
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.