Difference between revisions of "Item"
Stratonian (talk | contribs) m (renamed parameter 2) |
Stratonian (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:quality class|{{#switch:{{lc:{{{quality|{{#show:{{{1}}}|?Has quality}} | + | <includeonly>{{#vardefine:quality class<!-- define quality class |
+ | -->|{{#switch:{{lc:{{#if:{{{quality}}}<!-- if quality parameter | ||
+ | -->|{{{quality}}}<!-- use quality parameter | ||
+ | -->|{{#show:{{{1}}}|?Has quality}}<!-- else use 'Has quality' property | ||
+ | -->}}}} | ||
|common=quality-common | |common=quality-common | ||
|uncommon=quality-uncommon | |uncommon=quality-uncommon | ||
Line 6: | Line 10: | ||
|legendary=quality-legendary | |legendary=quality-legendary | ||
|quest item=quality-quest-item | |quest item=quality-quest-item | ||
− | }}<!-- | + | }}<!-- |
-->}}<!-- 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 |
Revision as of 20:10, 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
- 2: The item's Quality.
- Optional.