Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Item: Difference between revisions

Template page
m Added Material
Added description parameter, for use in some select items (e.g. Mastery Key)
Line 1: Line 1:
<infobox>
<infobox>
   <title source="title">
   <title source="title">
    <default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
   </title>
   </title>
   <image source="image">
   <image source="image">
<caption source="caption"/>
<caption source="caption"/>
   </image>
   </image>
  <data source="description">
<format><center>{{{description}}}</center></format>
  </data>
   <data source="rarity">
   <data source="rarity">
    <label>Rarity</label>
<label>Rarity</label>
   </data>
   </data>
   <data source="type">
   <data source="type">
    <label>Type</label>
<label>Type</label>
   </data>
   </data>
</infobox>
</infobox>
Line 22: Line 25:
"description": "Image of the item",
"description": "Image of the item",
"suggested": true
"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": {
"rarity": {
Line 48: Line 58:
"paramOrder": [
"paramOrder": [
"image",
"image",
"description",
"rarity",
"rarity",
"type"
"type"

Revision as of 10:59, 13 October 2023


Adds a item infobox to the page

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Imageimage

Image of the item

Unknownsuggested
Descriptiondescription

Description of the item from its tooltip

Example
A powerful key used to open the mysterious Mastery Gate.
Stringsuggested
Rarityrarity

Rarity of the item

Example
{{Rarity|common}}
Stringsuggested
Typetype

Type of the item

Suggested values
{{Type|Openable}} {{Type|Quest Scroll}} {{Type|Consumable}} {{Type|Currency}} {{Type|Material}}
Example
{{Type|openable}}
Stringsuggested