Difference between revisions of "Item"
Stratonian (talk | contribs) m (different file size) |
Stratonian (talk | contribs) m (quality parameter) |
||
Line 1: | Line 1: | ||
<includeonly>{{#iferror:{{icon|{{{icon|{{{1}}}.png}}}}}<!-- if icon doesn't exist | <includeonly>{{#iferror:{{icon|{{{icon|{{{1}}}.png}}}}}<!-- if icon doesn't exist | ||
-->|[[File:{{{1}}}.png|?]]<!-- handle non-existent icon | -->|[[File:{{{1}}}.png|?]]<!-- handle non-existent icon | ||
− | -->|{{icon|{{{icon|{{{1}}}.png}}}|{{{link|{{{1}}}}}}|25}}}}<!-- add icon with link | + | -->|<span class="{{#switch:{{lc:{{{2|}}}}} |
+ | |common=quality-common | ||
+ | |uncommon=quality-uncommon | ||
+ | |rare=quality-rare | ||
+ | |epic=quality-epic | ||
+ | |legendary=quality-legendary | ||
+ | |quest items=quest-item | ||
+ | }}">{{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 | ||
--> {{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified | --> {{#ifeq:{{lc:{{{link}}}}}|no<!-- if no link is specified |
Revision as of 20:52, 4 September 2023
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.