Difference between revisions of "Item"

m
m
Line 15: Line 15:
 
-->}}<!-- else get 'Has quality' property
 
-->}}<!-- else get 'Has quality' property
 
-->{{#ifexist:File:{{{1}}}.png<!-- if icon exists
 
-->{{#ifexist:File:{{{1}}}.png<!-- if icon exists
-->|<span class="{{#var:item class}}">{{icon|{{{icon|{{{1}}}.png}}}|{{{link|{{{1}}}}}}|25}}}}</span><!-- add icon with link
+
-->|<span class="{{#var:item class}}">{{icon|{{{icon|{{{1}}}.png}}}|{{{link|{{{1}}}}}}|25}}</span><!-- add icon with link
 
-->{{#if:{{{nolabel|}}}||<!-- if no label is specified
 
-->{{#if:{{{nolabel|}}}||<!-- if no label is specified
 
-->&nbsp;{{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified
 
-->&nbsp;{{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified
 
-->|{{{1}}}<!-- use plaintext
 
-->|{{{1}}}<!-- use plaintext
-->|[[{{{link|{{{1}}}}}}|{{{1}}}]]}}<!-- else add link
+
-->|[[{{{link|{{{1}}}}}}|{{{1}}}]]}}}}<!-- else add link
 
else icon doesn't exist
 
else 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 11:29, 3 February 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.