Difference between revisions of "Template:Item infobox"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
-->{{#if: {{{cooldown|}}}|<dt>Cooldown</dt><dd>{{#show: {{PAGENAME}}|?Has item cooldown#minutes-p2}}<!-- | -->{{#if: {{{cooldown|}}}|<dt>Cooldown</dt><dd>{{#show: {{PAGENAME}}|?Has item cooldown#minutes-p2}}<!-- | ||
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!-- | -->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!-- | ||
+ | -->{{#if: {{{uses|}}}|<dt>Uses</dt><dd>[[Has item uses::{{{uses}}}]]</dd>}}<!-- | ||
--></dl></div></div><!-- | --></dl></div></div><!-- | ||
description quote -->{{#if: {{{description|}}}|{{quotation|game|[[Has game description::{{{description}}}]]}}}}<!-- | description quote -->{{#if: {{{description|}}}|{{quotation|game|[[Has game description::{{{description}}}]]}}}}<!-- | ||
Line 66: | Line 67: | ||
| description = | | description = | ||
| cooldown = | | cooldown = | ||
+ | | uses = | ||
}}</pre> | }}</pre> | ||
Line 86: | Line 88: | ||
;cooldown | ;cooldown | ||
: Full item cooldown duration. Preferably taken from inspecting the item data. Understands minutes, seconds, ticks. | : Full item cooldown duration. Preferably taken from inspecting the item data. Understands minutes, seconds, ticks. | ||
+ | ;uses | ||
+ | : Number of uses if not infinite | ||
</noinclude> | </noinclude> |
Revision as of 08:56, 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 = | cooldown = | uses = }}
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.
- cooldown
- Full item cooldown duration. Preferably taken from inspecting the item data. Understands minutes, seconds, ticks.
- uses
- Number of uses if not infinite