Difference between revisions of "Item"

m (better item quality)
m
Line 1: Line 1:
<includeonly>{{#vardefine:quality class|{{#if:{{{2|}}}<!-- if quality parameter exists
+
<includeonly>{{#vardefine:quality class|{{#switch:{{lc:{{{2|{{#show:{{{1}}}|?Has quality}}}}}}}
-->|{{#switch:{{lc:{{{2|}}}}}
 
 
|common=quality-common
 
|common=quality-common
 
|uncommon=quality-uncommon
 
|uncommon=quality-uncommon
Line 7: Line 6:
 
|legendary=quality-legendary
 
|legendary=quality-legendary
 
|quest item=quality-quest-item
 
|quest item=quality-quest-item
}}<!-- use the quality
+
}}<!-- define quality class
-->|{{#show:{{{1}}}|?Has quality}}}}}}<!-- else get 'Has quality' property
+
-->}}<!-- else get 'Has quality' property
 
-->{{#iferror:{{icon|{{{icon|{{{1}}}.png}}}}}<!-- if icon doesn't exist
 
-->{{#iferror:{{icon|{{{icon|{{{1}}}.png}}}}}<!-- if icon doesn't exist
 
-->|{{#if:{{#show:{{{link|{{{1}}}}}}|?Has icon}}<!-- if item has 'Has icon' property
 
-->|{{#if:{{#show:{{{link|{{{1}}}}}}|?Has icon}}<!-- if item has 'Has icon' property

Revision as of 20:00, 12 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.