Difference between revisions of "Template:Item infobox"
Jump to navigation
Jump to search
(slot) |
|||
Line 7: | Line 7: | ||
-->{{#if: {{{type|}}}|<dt>Type</dt><dd>{{ucfirst:{{{type}}}}}<!-- | -->{{#if: {{{type|}}}|<dt>Type</dt><dd>{{ucfirst:{{{type}}}}}<!-- | ||
-->{{#set: Has item type = {{ucfirst:{{{type}}}}} }}</dd>}}<!-- | -->{{#set: Has item type = {{ucfirst:{{{type}}}}} }}</dd>}}<!-- | ||
+ | -->{{#if: {{{slot|}}}|<dt>Slot</dt><dd>{{slot label| {{{slot}}} }}<!-- | ||
+ | -->{{#set: Has item slot = {{lc:{{{slot}}}}} }}</dd>}}<!-- | ||
-->{{#if: {{{quality|}}}|<dt>Quality</dt><dd>{{quality label| {{ucfirst:{{{quality}}}}} }}<!-- | -->{{#if: {{{quality|}}}|<dt>Quality</dt><dd>{{quality label| {{ucfirst:{{{quality}}}}} }}<!-- | ||
-->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!-- | -->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!-- |
Revision as of 03:03, 1 June 2022
Description
Outlines an item page, including the title, infobox, description quote, etc. Sets SMW properties.
Usage
{{Item infobox | name = | icon = | type = | quality = | level = | slot = | description = }}
Parameters
All parameters are optional.
- name
- Item name. Defaults to
{{PAGENAME}}
. - icon
- Item icon filename. Defaults to
File:<name>.png
- type
- Item type
- quality
- Item quality, one of Common, Magic, Rare, Epic, Legendary
- level
- Item level (if fixed)
- slot
- Item slot, see Property:Has item slot for values list
- description
- Item in-game description.