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

From Albion Online Wiki
Jump to navigation Jump to search
import_>Alianin
m (fixed typo)
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{doc/start}}
 
{{doc/start}}
 
{{Item infobox
 
{{Item infobox
| name = Rough Logs
+
| item_name = Rough Logs
| image = Wood.png
 
 
| type = Wood
 
| type = Wood
| tier = I
+
| tier = 1
 
| weight = 0.2
 
| weight = 0.2
 
| value = 0
 
| value = 0
 
| description = Common, low-quality Wood, used for crafting. It is too weak to be refined.
 
| description = Common, low-quality Wood, used for crafting. It is too weak to be refined.
 
}}
 
}}
==Usage==
 
<pre style="overflow-x: auto;">{{Item infobox
 
| name =
 
| image =
 
| type =
 
| tier =
 
| weight =
 
| value =
 
| fame =
 
| description =
 
}}</pre>
 
  
==Parameters==
+
<templatedata>
; name: Name of the item. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>.
+
{
; image: Image of the item. Format: xxxxx.png Auto sizes to 64px in width.
+
"params": {
; type: Type of item.
+
"item_name": {
; tier: The tier of the item.
+
"label": "Name",
; weight: The weight of the item. The kg is automatically added.
+
"description": "The name of the item.",
; value: The value of the item.
+
"type": "string",
; fame: The [[fame]] earned by gathering or crafting this item.
+
"default": "{{PAGENAME}}",
; description: The description of the item.
+
"required": true
 +
},
 +
"description": {
 +
"label": "Item Description",
 +
"description": "The item description as it appears within the game.",
 +
"example": "Common low-quality stone used for crafting. It is too weak to be refined.",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"type": {
 +
"label": "Type",
 +
"description": "The type of this item. Check 'Item type' property for a list of valid values",
 +
"type": "string"
 +
},
 +
"tier": {
 +
"label": "Tier",
 +
"description": "The tier of the item.",
 +
"example": "4",
 +
"type": "number",
 +
"suggested": true
 +
},
 +
"weight": {
 +
"label": "Weight",
 +
"description": "The weight of a single unit of this item. The kg suffix is added automatically.",
 +
"example": "1.0",
 +
"suggested": true,
 +
"type": "number"
 +
},
 +
"item_value": {
 +
"label": "Value",
 +
"description": "The value of a single unit of this item.",
 +
"example": "0",
 +
"type": "number"
 +
},
 +
"enchantment": {
 +
"label": "Enchantment",
 +
"description": "Enchantment level of the item. May be any number from 0 to 3.",
 +
"default": "0",
 +
"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"
 +
},
 +
"classification": {
 +
"aliases": [
 +
"class"
 +
],
 +
"label": "Item Classification",
 +
"description": "categorization of the item. Deprecated by Shop Category",
 +
"example": "Resource",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"shop_category": {
 +
"aliases": [
 +
"category"
 +
],
 +
"label": "Shop Category",
 +
"description": "categorization of the item in shop",
 +
"example": "Resource",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"shop_sub_category": {
 +
"aliases": [
 +
"subcategory"
 +
],
 +
"label": "Shop Subcategory",
 +
"description": "categorization of the item by sub category",
 +
"example": "Stone Block",
 +
"type": "string",
 +
"suggested": true
 +
}
 +
},
 +
"description": "A template that adds a side element with the item's picture, name, description, type, tier, weight, value, and fame."
 +
}
 +
</templatedata>
 
{{doc/end}}
 
{{doc/end}}

Revision as of 18:55, 15 January 2021

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
Item Classificationclassification class

categorization of the item. Deprecated by Shop Category

Example
Resource
Stringsuggested
Shop Categoryshop_category category

categorization of the item in shop

Example
Resource
Stringsuggested
Shop Subcategoryshop_sub_category subcategory

categorization of the item by sub category

Example
Stone Block
Stringsuggested

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