Difference between revisions of "Template:Item infobox"

From Isleward Wiki
Jump to navigation Jump to search
(add redeemable)
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: {{{redeemable|}}}|<dt>Redeemable</dt><dd>Yes</dd>}}<!--
 
-->{{#if: {{{stat1|}}}{{{implicit|}}}{{{effect|}}}|<dt><br /></dt><dd></dd>}}<!--
 
-->{{#if: {{{stat1|}}}{{{implicit|}}}{{{effect|}}}|<dt><br /></dt><dd></dd>}}<!--
 
-->{{#if: {{{implicit|}}}|<dt>Implicit</dt><dd>{{{implicit}}}</dd>}}<!--
 
-->{{#if: {{{implicit|}}}|<dt>Implicit</dt><dd>{{{implicit}}}</dd>}}<!--
Line 78: Line 79:
 
| cooldown =
 
| cooldown =
 
| uses =
 
| uses =
 +
| redeemable =
  
 
| implicit =
 
| implicit =
Line 110: Line 112:
 
;uses
 
;uses
 
: Number of uses if not infinite
 
: Number of uses if not infinite
 +
;redeemable
 +
: y/n. When redeemed, the item is stored in the cosmetics inventory
 
;implicit, stat1, stat2, ..., stat5
 
;implicit, stat1, stat2, ..., stat5
 
: Stat rows. Plain text
 
: Stat rows. Plain text

Revision as of 21:31, 22 July 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 =
| redeemable =

| implicit =
| stat1 =
| stat2 =
| stat3 =
| stat4 =
| stat5 =
| effect =

| append =
}}

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
redeemable
y/n. When redeemed, the item is stored in the cosmetics inventory
implicit, stat1, stat2, ..., stat5
Stat rows. Plain text
effect
Effect text
append
Append more elements (used for weapon abilities)