Difference between revisions of "Template:Item infobox"
m (added no toc) |
m (test conversion) |
||
Line 5: | Line 5: | ||
-->{{#vardefine:enchantment|{{{enchantment|0}}}}}<!-- | -->{{#vardefine:enchantment|{{{enchantment|0}}}}}<!-- | ||
-->{{#vardefine:ii subCategoryDisplay|{{#var:shop_sub_category}} }}<!-- | -->{{#vardefine:ii subCategoryDisplay|{{#var:shop_sub_category}} }}<!-- | ||
+ | -->{{#vardefine:ii prefix|{{#explode:{{PAGENAME}}| |1}} }}<!-- | ||
+ | -->{{#vardefine:ii suffix|{{#explode:{{PAGENAME}}| |2|2}} }}<!-- | ||
# Start of display template | # Start of display template | ||
--><div class="infobox item"> | --><div class="infobox item"> | ||
Line 32: | Line 34: | ||
# Stamp categories | # Stamp categories | ||
− | --><!-- | + | --><!--Placeholder: {{#if:{{#var:shop_category}}|[[Category:{{#var:shop_category}}]]}} |
− | |||
-->{{#if:{{#var:shop_sub_category}}|[[Category:{{#var:shop_sub_category}}]]}}<!-- | -->{{#if:{{#var:shop_sub_category}}|[[Category:{{#var:shop_sub_category}}]]}}<!-- | ||
+ | -->{{#switch:{{#var:ii prefix}} | ||
+ | | Beginner's | ||
+ | | Novice's | ||
+ | | Journeyman's | ||
+ | | Adept's | ||
+ | | Expert's | ||
+ | | Master's | ||
+ | | Grandmaster's | ||
+ | | Elder's = [[Category:{{#var:ii suffix}}]]<!-- | ||
# Debug | # Debug | ||
− | --><!-- | + | -->{{#var:ii prefix}} |
+ | {{#var:ii suffix}}<!-- | ||
+ | |||
+ | # Apply some wiki standards | ||
-->__NOTOC__</includeonly></onlyinclude> | -->__NOTOC__</includeonly></onlyinclude> | ||
<noinclude> | <noinclude> |
Revision as of 16:45, 19 October 2021
Rough Logs
- Description
- Common, low-quality Wood, used for crafting. It is too weak to be refined.
- Type
- Wood
- Tier
- 1
- Weight
- 0.2 kg
| Beginner's | Novice's | Journeyman's | Adept's | Expert's | Master's | Grandmaster's | Elder's = [[Category:]]infobox
A template that adds a side element with the item's picture, name, description, type, tier, weight, value, and fame.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | item_name | The name of the item.
| String | required |
Item Description | description | The item description as it appears within the game.
| String | suggested |
Type | type | The type of this item. Check 'Item type' property for a list of valid values | String | optional |
Tier | tier | The tier of the item.
| Number | suggested |
Weight | weight | The weight of a single unit of this item. The kg suffix is added automatically.
| Number | suggested |
Value | item_value | The value of a single unit of this item.
| Number | optional |
Enchantment | enchantment | Enchantment level of the item. May be any number from 0 to 3.
| Number | optional |
Unique Name | unique_name | Unique name of an item as the game is using it internally. This is only required if multiple items have the same translated name | String | optional |
Quality | quality | Quality of an item; may be Normal, Good, Outstanding, Excellent, Masterpiece
| String | optional |
Shop Category | shop_category category | categorization of the item in shop
| String | suggested |
Shop Subcategory | shop_sub_category subcategory | categorization of the item by sub category
| String | suggested |
The above documentation is transcluded from Template:Item infobox/doc. (edit | history)