Difference between revisions of "Template:Item infobox"

From Isleward Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
-->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!--
 
-->{{#set: Has item quality = {{ucfirst:{{{quality}}}}} }}</dd>}}<!--
 
-->{{#if: {{{level|}}}|<dt>Level</dt><dd>[[Has level::{{{level}}}]]</dd>}}<!--
 
-->{{#if: {{{level|}}}|<dt>Level</dt><dd>[[Has level::{{{level}}}]]</dd>}}<!--
-->{{#if: {{{cooldown|}}}|<dt>Cooldown</dt><dd>{{#expr: {{#show: {{PAGENAME}}|?Has item cooldown#minutes=}} round 2 }} minutes<!--
+
-->{{#if: {{{cooldown|}}}|<dt>Cooldown</dt><dd>{{#show: {{PAGENAME}}|?Has item cooldown#minutes-p2}} minutes<!--
 
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!--
 
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!--
 
--></dl></div></div><!--
 
--></dl></div></div><!--
Line 65: Line 65:
 
| slot =
 
| slot =
 
| description =
 
| description =
 +
| cooldown =
 
}}</pre>
 
}}</pre>
  
Line 83: Line 84:
 
;description
 
;description
 
: Item in-game description.
 
: Item in-game description.
 +
;cooldown
 +
: Full item cooldown duration. Preferably taken from inspecting the item data. Understands minutes, seconds, ticks.
 
</noinclude>
 
</noinclude>

Revision as of 08:43, 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 =
}}

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.