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

From Albion Online Wiki
Jump to navigation Jump to search
(Populated TemplateData to the best of my knowledge. Should make adding this template to pages more self-explanatory.)
m (Removed redundant information. Removed autovalue for name.)
Line 10: Line 10:
 
}}
 
}}
  
==Parameters==
 
; name: Name of the item. Defaults to <code><nowiki>{{SUBPAGENAME}}</nowiki></code>.
 
; type: Type of item.
 
; tier: The tier of the item.
 
; weight: The weight of the item. The kg is automatically added.
 
; value: The value of the item.
 
; fame: The [[fame]] earned by gathering or crafting this item.
 
; description: The description of the item.
 
{{doc/end}}
 
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 27: Line 18:
 
"type": "string",
 
"type": "string",
 
"default": "{{SUBPAGENAME}}",
 
"default": "{{SUBPAGENAME}}",
"required": true,
+
"required": true
"autovalue": "{{SUBPAGENAME}}"
 
 
},
 
},
 
"description": {
 
"description": {
Line 72: Line 62:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
{{doc/end}}

Revision as of 18:51, 12 May 2019

Documentation

Item infobox/doc

Description
Common, low-quality Wood, used for crafting. It is too weak to be refined.
Type
Wood
Tier
I
Weight
0.2 kg
"I" is not a number.

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

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the item pulled from {{SUBPAGENAME}}.

Default
{{SUBPAGENAME}}
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.

Stringoptional
Tiertier

The tier of the item in Roman Numerals format.

Example
IV
Stringsuggested
Weightweight

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

Example
1.0
Numbersuggested
Valuevalue

The value of a single unit of this item.

Example
0
Numberoptional
Famefame

The fame geneated per crafting or gathering this item.

Example
150
Numberoptional

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