Template:PrayerIcon: Difference between revisions

From Melvor Idle
(Created a prayer equivalent to the ItemIcon template)
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A template for quickly building prayer links with icons. For example, <nowiki>{{PrayerIcon|Mystic Might}}</nowiki> becomes {{PrayerIcon|Mystic Might}}.
<includeonly><onlyinclude>{{Icon|type=prayer|{{{1}}}|{{{2|}}}|ext={{{ext|}}}|size={{{size|}}}|qty={{{qty|}}}|img={{{img|}}}|notext={{{notext|}}}|nolink={{{nolink|}}}|noicon={{{noicon|}}}|menu={{{menu|}}}|section={{{section|}}}}}</onlyinclude></includeonly><noinclude>{{/doc}}</noinclude>
 
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>

Latest revision as of 13:35, 27 March 2024

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

For a complete list of options, please refer to Template:Icon.