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 }}<!--
+
-->{{#if: {{{cooldown|}}}|<dt>Cooldown</dt><dd>{{#expr: {{#show: {{PAGENAME}}|?Has item cooldown#minutes=}} round 2 }} minutes<!--
 
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!--
 
-->{{#set: Has item cooldown = {{{cooldown}}} }}</dd>}}<!--
 
--></dl></div></div><!--
 
--></dl></div></div><!--

Revision as of 08:40, 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.