Difference between revisions of "Template:Item infobox"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!-- | -->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!-- | ||
-->{{#if: {{{uses|}}}|<dt>Uses</dt><dd>[[Has item uses::{{{uses}}}]]</dd>}}<!-- | -->{{#if: {{{uses|}}}|<dt>Uses</dt><dd>[[Has item uses::{{{uses}}}]]</dd>}}<!-- | ||
+ | -->{{#if: {{{stat1|}}}{{{implicit|}}}|<dt><br /></dt><dd></dd> | ||
+ | -->{{#if: {{{implicit|}}}|<dt>Implicit stat</dt><dd>{{{implicit}}}</dd>}}<!-- | ||
+ | -->{{#if: {{{stat1|}}}|<dt>Stats</dt><dd>{{{stat1}}}</dd>}}<!-- | ||
+ | -->{{#if: {{{stat2|}}}|<dt></dt><dd>{{{stat2}}}</dd>}}<!-- | ||
+ | -->{{#if: {{{stat3|}}}|<dt></dt><dd>{{{stat3}}}</dd>}}<!-- | ||
+ | -->{{#if: {{{stat4|}}}|<dt></dt><dd>{{{stat4}}}</dd>}}<!-- | ||
+ | -->{{#if: {{{stat5|}}}|<dt></dt><dd>{{{stat5}}}</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 68: | Line 75: | ||
| cooldown = | | cooldown = | ||
| uses = | | uses = | ||
+ | |||
+ | | implicit = | ||
+ | | stat1 = | ||
+ | | stat2 = | ||
+ | | stat3 = | ||
+ | | stat4 = | ||
+ | | stat5 = | ||
}}</pre> | }}</pre> | ||
Line 90: | Line 104: | ||
;uses | ;uses | ||
: Number of uses if not infinite | : Number of uses if not infinite | ||
+ | ;implicit, stat1, stat2, ..., stat5 | ||
+ | : Stat rows. Plain text | ||
</noinclude> | </noinclude> |
Revision as of 09:12, 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 = | implicit = | stat1 = | stat2 = | stat3 = | stat4 = | stat5 = }}
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
- implicit, stat1, stat2, ..., stat5
- Stat rows. Plain text