Anonymous

Template:ItemIcon: Difference between revisions

From Melvor Idle
Added qty option
(Now references generic Icon template.)
(Added qty option)
Line 5: Line 5:
Optionally, you can set the 'ext' argument for the rare items that have non-SVG extensions. For example, <nowiki>{{ItemIcon|Crown of Rhaelyx|ext=png}}</nowiki> gives {{ItemIcon|Crown of Rhaelyx|ext=png}}
Optionally, you can set the 'ext' argument for the rare items that have non-SVG extensions. For example, <nowiki>{{ItemIcon|Crown of Rhaelyx|ext=png}}</nowiki> gives {{ItemIcon|Crown of Rhaelyx|ext=png}}


Also the qty option allows you to set a number of an item, so <nowiki>{{ItemIcon|Red Dragonhide|qty=200}}</nowiki> becomes {{ItemIcon|Red Dragonhide|qty=200}}


<includeonly><onlyinclude>{{Icon|type=item|{{{1}}}|{{{2|}}}|ext={{{ext|svg}}}}}</onlyinclude></includonly>
 
<includeonly><onlyinclude>{{Icon|type=item|{{{1}}}|{{{2|}}}|ext={{{ext|svg}}}|qty={{{qty|}}}}}</onlyinclude></includonly>