Difference between revisions of "Template:Item infobox/doc"

From Albion Online Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
{{Item infobox
 
{{Item infobox
 
| item_name = Rough Logs
 
| item_name = Rough Logs
| image = Wood.png
 
 
| type = Wood
 
| type = Wood
 
| tier = 1
 
| tier = 1
Line 13: Line 12:
 
{
 
{
 
"params": {
 
"params": {
"name": {
+
"item_name": {
 
"label": "Name",
 
"label": "Name",
"description": "The name of the item pulled from {{SUBPAGENAME}}.",
+
"description": "The name of the item.",
 
"type": "string",
 
"type": "string",
"default": "{{SUBPAGENAME}}",
+
"default": "{{PAGENAME}}",
 
"required": true
 
"required": true
 
},
 
},
Line 29: Line 28:
 
"type": {
 
"type": {
 
"label": "Type",
 
"label": "Type",
"description": "The type of this item.",
+
"description": "The type of this item. Check 'Item type' property for a list of valid values",
 
"type": "string"
 
"type": "string"
 
},
 
},
 
"tier": {
 
"tier": {
 
"label": "Tier",
 
"label": "Tier",
"description": "The tier of the item in Roman Numerals format.",
+
"description": "The tier of the item.",
"example": "IV",
+
"example": "4",
"type": "string",
+
"type": "number",
 
"suggested": true
 
"suggested": true
 
},
 
},
Line 46: Line 45:
 
"type": "number"
 
"type": "number"
 
},
 
},
"value": {
+
"item_value": {
 
"label": "Value",
 
"label": "Value",
 
"description": "The value of a single unit of this item.",
 
"description": "The value of a single unit of this item.",
Line 52: Line 51:
 
"type": "number"
 
"type": "number"
 
},
 
},
"fame": {
+
                "enchantment":{
"label": "Fame",
+
                        "label": "Enchantment",
"description": "The fame geneated per crafting or gathering this item.",
+
                        "description": "Enchantment level of the item. May be any number from 0 to 3.",
"example": "150",
+
                        "default": "0",
"type": "number"
+
                        "type": "number"
}
+
                },
 +
                "unique_name":{
 +
                        "label": "Unique Name",
 +
                        "description": "Unique name of an item as the game is using it internally. This is only required if multiple items have the same translated name",
 +
                        "type": "string"
 +
                },
 +
                "quality":{
 +
                        "label": "Quality",
 +
                        "description": "Quality of an item; may be Normal, Good, Outstanding, Excellent, Masterpiece",
 +
                        "default": "Normal",
 +
                        "type": "string"
 +
                }
 
},
 
},
 
"description": "A template that adds a side element with the item's picture, name, description, type, tier, weight, value, and fame."
 
"description": "A template that adds a side element with the item's picture, name, description, type, tier, weight, value, and fame."

Revision as of 10:18, 13 December 2019

Documentation

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

A template that adds a side element with the item's picture, name, description, type, tier, weight, value, and fame.

Template parameters

ParameterDescriptionTypeStatus
Nameitem_name

The name of the item.

Default
{{PAGENAME}}
Stringrequired
Item Descriptiondescription

The item description as it appears within the game.

Example
Common low-quality stone used for crafting. It is too weak to be refined.
Stringsuggested
Typetype

The type of this item. Check 'Item type' property for a list of valid values

Stringoptional
Tiertier

The tier of the item.

Example
4
Numbersuggested
Weightweight

The weight of a single unit of this item. The kg suffix is added automatically.

Example
1.0
Numbersuggested
Valueitem_value

The value of a single unit of this item.

Example
0
Numberoptional
Enchantmentenchantment

Enchantment level of the item. May be any number from 0 to 3.

Default
0
Numberoptional
Unique Nameunique_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

Stringoptional
Qualityquality

Quality of an item; may be Normal, Good, Outstanding, Excellent, Masterpiece

Default
Normal
Stringoptional

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.