Ad placeholder

Template:Item icon: Difference between revisions

Jump to navigation Jump to search
Add rarity support
(plug /Family)
(Add rarity support)
Line 1: Line 1:
<includeonly><onlyinclude>{{#cargo_query:
<includeonly><onlyinclude>{{#cargo_query:
tables=item_icon
tables=item_icon
|fields=TRIM(icon),CONCAT('', '{{{size|40}}}')
|fields=TRIM(icon),CONCAT('', '{{{size|40}}}'),rarity,CONCAT('', '{{{show_rarity|}}}')
|where=item_icon._pageName="{{{name}}}"
|where=item_icon._pageName="{{{name}}}"
|limit=1
|limit=1
Line 19: Line 19:
|size=(optional) the size of the icon
|size=(optional) the size of the icon
|show_name=(optional) Whether to show the name. Any value will show the name of the item as a link. Omit to hide it.
|show_name=(optional) Whether to show the name. Any value will show the name of the item as a link. Omit to hide it.
|show_rarity=(optional) Whether to add a border and background to the icon according to the item's rarity. Omit to not show it.
}}</pre>
}}</pre>


Navigation menu