Template:PrayerIcon: Difference between revisions

Changed over to the generic Icon template as a base.
(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>