Difference between revisions of "Template:Ability icon formatted"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
− | Convert an icon ability name to a formatted item in a list, including the icon. | + | Convert an icon ability name to a formatted item in a list, including the icon and a link to the description of the ability. An invalid or empty ability name produces no output. |
==Example== | ==Example== | ||
Line 12: | Line 12: | ||
Produces: | Produces: | ||
+ | |||
{{Ability icon formatted|First Strike}} | {{Ability icon formatted|First Strike}} | ||
{{Ability icon formatted|Defender}} | {{Ability icon formatted|Defender}} | ||
− | </noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}| | + | </noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}|[[File:{{{1}}}-b.png|20px|{{{1}}}]] [[Abilities#{{{1}}}|{{{1}}}]]<br>}}}}</includeonly> |
Latest revision as of 11:45, 15 May 2021
Usage
Convert an icon ability name to a formatted item in a list, including the icon and a link to the description of the ability. An invalid or empty ability name produces no output.
Example
The following shorthand:
{{Ability icon formatted|First Strike}} {{Ability icon formatted|Defender}}
Produces: