Template:PrayerIcon: Difference between revisions

From Melvor Idle
(Created a prayer equivalent to the ItemIcon template)
 
(Changed over to the generic Icon template as a base.)
Line 3: Line 3:
Adding a second argument allows you to override the text. For example, <nowiki>{{PrayerIcon|Augury|TURBO MAGE PRAYER}}</nowiki> gives {{PrayerIcon|Augury|TURBO MAGE PRAYER}}
Adding a second argument allows you to override the text. For example, <nowiki>{{PrayerIcon|Augury|TURBO MAGE PRAYER}}</nowiki> gives {{PrayerIcon|Augury|TURBO MAGE PRAYER}}


<includeonly><onlyinclude>[[File:{{{1}}} (prayer).{{{ext|svg}}}|25px|link={{{1}}}]]&nbsp;[[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]</onlyinclude></includonly>
<includeonly><onlyinclude>{{Icon|type=prayer|{{{1}}}|{{{2|}}}|ext={{{ext|svg}}}}}</onlyinclude></includonly>

Revision as of 22:45, 24 August 2020

A template for quickly building prayer links with icons. For example, {{PrayerIcon|Mystic Might}} becomes Mystic Might.

Adding a second argument allows you to override the text. For example, {{PrayerIcon|Augury|TURBO MAGE PRAYER}} gives TURBO MAGE PRAYER