Difference between revisions of "Item"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (recipe icon) |
||
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 | ||
− | -->|{{#if:{{#show:{{{link|{{{1}}}}}}|?Has icon}}|<span class="{{#switch:{{lc:{{{2|}}}}} | + | -->|{{#if:{{#show:{{{link|{{{1}}}}}}|?Has icon}}<!-- if item has 'Has icon' property |
+ | -->|<span class="{{#switch:{{lc:{{{2|}}}}} | ||
|common=quality-common | |common=quality-common | ||
|uncommon=quality-uncommon | |uncommon=quality-uncommon | ||
Line 7: | Line 8: | ||
|legendary=quality-legendary | |legendary=quality-legendary | ||
|quest item=quality-quest-item | |quest item=quality-quest-item | ||
− | }}">[[File:{{#show:{{{link|{{{1}}}}}}|?Has icon}}|25px]]</span><!-- use 'Has icon' property | + | }}">[[File:{{#show:{{{link|{{{1}}}}}}|?Has icon}}|25px]]</span><!-- then use 'Has icon' property |
− | -->|[[File:{{{1}}}.png|?]]}}<!-- handle non-existent icon | + | -->|{{#ifeq:{{#explode:{{{1}}}|:|0}}|Recipe<!-- else if item is a recipe |
+ | -->|{{Recipe icon|{{{1}}}|small=y|quality={{#switch:{{lc:{{{2|}}}}} | ||
+ | |common=quality-common | ||
+ | |uncommon=quality-uncommon | ||
+ | |rare=quality-rare | ||
+ | |epic=quality-epic | ||
+ | |legendary=quality-legendary | ||
+ | |quest item=quality-quest-item | ||
+ | }}}}<!-- use recipe icon | ||
+ | -->|[[File:{{{1}}}.png|?]]}}}}<!-- else handle non-existent icon | ||
-->|<span class="{{#switch:{{lc:{{{2|}}}}} | -->|<span class="{{#switch:{{lc:{{{2|}}}}} | ||
|common=quality-common | |common=quality-common |
Revision as of 18:27, 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.