Difference between revisions of "Item"

m
m
Line 1: Line 1:
 
<includeonly>{{#vardefine:item class<!-- define item class
 
<includeonly>{{#vardefine:item class<!-- define item class
-->|{{#switch:{{lc:{{#if:{{{quality|}}}<!-- if quality parameter
+
-->|{{#switch:{{lc:{{#if:{{{quality|{{{category|}}}}}}<!-- if quality parameter
-->|{{{quality}}}<!-- use quality parameter
+
-->|{{{quality|{{{category|}}}}}}<!-- use quality parameter
 
-->|{{#show:{{{1}}}|?Has quality}}<!-- else use 'Has quality' property
 
-->|{{#show:{{{1}}}|?Has quality}}<!-- else use 'Has quality' property
 
-->}}}}
 
-->}}}}
Line 9: Line 9:
 
|epic=quality-epic
 
|epic=quality-epic
 
|legendary=quality-legendary
 
|legendary=quality-legendary
 +
|quest items
 
|quest item=quality-quest-item
 
|quest item=quality-quest-item
 
|#default=quality-common
 
|#default=quality-common

Revision as of 18:06, 15 January 2024

Description

Displays a item's icon and name, with a link to the page of the item.

Usage

{{item|<Spine>|<common>|<icon=Spine.png>|<link=Spine>|<nolabel=yes>}}

Parameters

Arrow.png1: The name of the item.
Required.
Arrow.png2: The item's Quality.
Optional.
Arrow.pngicon: The item's icon.
Optional. Defaults to '{{{1}}}.png'.
Arrow.pnglink: The page link.
Optional. Defaults to '{{{1}}}'.
Notes: If set to 'no', label will be plaintext.
Arrow.pngnolabel: Determines whether the name of the item is shown.
Optional.
Notes: Set this parameter any value to hide label text.