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

From Albion Online Wiki
Jump to navigation Jump to search
m (→‎Usage: Removed image parameter)
(Populated TemplateData to the best of my knowledge. Should make adding this template to pages more self-explanatory.)
Line 9: Line 9:
 
| 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 =
 
| type =
 
| tier =
 
| weight =
 
| value =
 
| fame =
 
| description =
 
}}</pre>
 
  
 
==Parameters==
 
==Parameters==
Line 29: Line 19:
 
; description: The description of the item.
 
; description: The description of the item.
 
{{doc/end}}
 
{{doc/end}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"name": {
 +
"label": "Name",
 +
"description": "The name of the item pulled from {{SUBPAGENAME}}.",
 +
"type": "string",
 +
"default": "{{SUBPAGENAME}}",
 +
"required": true,
 +
"autovalue": "{{SUBPAGENAME}}"
 +
},
 +
"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.",
 +
"type": "string"
 +
},
 +
"tier": {
 +
"label": "Tier",
 +
"description": "The tier of the item in Roman Numerals format.",
 +
"example": "IV",
 +
"type": "string",
 +
"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"
 +
},
 +
"value": {
 +
"label": "Value",
 +
"description": "The value of a single unit of this item.",
 +
"example": "0",
 +
"type": "number"
 +
},
 +
"fame": {
 +
"label": "Fame",
 +
"description": "The fame geneated per crafting or gathering this item.",
 +
"example": "150",
 +
"type": "number"
 +
}
 +
},
 +
"description": "A template that adds a side element with the item's picture, name, description, type, tier, weight, value, and fame."
 +
}
 +
</templatedata>

Revision as of 18:09, 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.

Parameters

name
Name of the item. Defaults to {{SUBPAGENAME}}.
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.

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

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}}
Auto value
{{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