Template:Item: Difference between revisions
Template page
More actions
Duechayapol (talk | contribs) No edit summary |
added tradeable parameter |
||
(24 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<infobox> | <infobox> | ||
<title source="title"> | <title source="title"> | ||
<default>{{PAGENAME}}</default> | |||
</title> | </title> | ||
<image source="image"> | <image source="image"> | ||
<caption source="caption"/> | |||
</image> | </image> | ||
<data source="description"> | |||
<format><center>{{{description}}}</center></format> | |||
</data> | |||
<data source="rarity"> | <data source="rarity"> | ||
<label>Rarity</label> | |||
</data> | </data> | ||
<data source=" | <data source="type"> | ||
<label>Type</label> | |||
</data> | </data> | ||
<data source=" | <data source="tradeable"> | ||
<format><center>[[File:Tradeable.png|x18px|alt=Tradeable]]</center></format> | |||
</data> | </data> | ||
</infobox> | </infobox> | ||
<includeonly>[[Category:Item]]</includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"image": { | |||
"label": "Image", | |||
"description": "Image of the item", | |||
"suggested": true | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "Description of the item from its tooltip", | |||
"type": "string", | |||
"suggested": true, | |||
"example": "A powerful key used to open the mysterious Mastery Gate." | |||
}, | |||
"rarity": { | |||
"label": "Rarity", | |||
"description": "Rarity of the item", | |||
"type": "string", | |||
"suggested": true, | |||
"example": "{{Rarity|common}}" | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "Type of the item", | |||
"type": "string", | |||
"suggested": true, | |||
"example": "{{Type|openable}}", | |||
"suggestedvalues": [ | |||
"{{Type|Openable}}", | |||
"{{Type|Quest Scroll}}", | |||
"{{Type|Consumable}}", | |||
"{{Type|Currency}}", | |||
"{{Type|Material}}" | |||
] | |||
}, | |||
"tradeable": { | |||
"label": "Tradeable", | |||
"description": "Whether the item is tradeable", | |||
"type": "string", | |||
"example": "yes" | |||
} | |||
}, | |||
"description": "Adds a item infobox to the page", | |||
"paramOrder": [ | |||
"image", | |||
"description", | |||
"rarity", | |||
"type", | |||
"tradeable" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 11:42, 18 August 2025
Adds a item infobox to the page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | Image of the item | Unknown | suggested |
Description | description | Description of the item from its tooltip
| String | suggested |
Rarity | rarity | Rarity of the item
| String | suggested |
Type | type | Type of the item
| String | suggested |
Tradeable | tradeable | Whether the item is tradeable
| String | optional |