Difference between revisions of "Template:Ability icon"
(Created page with "<noinclude> ==Usage== Show the icon of an icon ability. The first parameter is the name of the ability. The second parameter (optional) is the height in pixels of the icon t...") |
|||
Line 6: | Line 6: | ||
The second parameter (optional) is the height in pixels of the icon to display. The default is 14 pixels. | The second parameter (optional) is the height in pixels of the icon to display. The default is 14 pixels. | ||
+ | |||
+ | The third parameter (optional) is a flag which if present forces non-inlining of any ability icon. | ||
==Example== | ==Example== | ||
Line 21: | Line 23: | ||
{{Ability icon|First Strike|20}} | {{Ability icon|First Strike|20}} | ||
− | </noinclude><includeonly>{{Inline|[[File:{{{1}}}-b.png|x{{{2|14}}}px|{{{1}}}|link=Abilities#{{{1}}}]]}}</includeonly> | + | </noinclude><includeonly>{{#if:{{{3|}}}|[[File:{{{1}}}-b.png|x{{{2|14}}}px|{{{1}}}|link=Abilities#{{{1}}}]]|{{Inline|[[File:{{{1}}}-b.png|x{{{2|14}}}px|{{{1}}}|link=Abilities#{{{1}}}]]}}}}</includeonly> |
Latest revision as of 06:34, 9 May 2020
Usage
Show the icon of an icon ability.
The first parameter is the name of the ability.
The second parameter (optional) is the height in pixels of the icon to display. The default is 14 pixels.
The third parameter (optional) is a flag which if present forces non-inlining of any ability icon.
Example
The following shorthand:
{{Ability icon|Berserker}} {{Ability icon|First Strike|20}}
Produces: