Difference between revisions of "Template:Ability icon formatted"
(One intermediate revision 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 and a link to the ability | + | 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 16: | Line 16: | ||
{{Ability icon formatted|Defender}} | {{Ability icon formatted|Defender}} | ||
− | </noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}|[[File:{{{1}}}.png|20px|{{{1}}}]] [[Abilities#{{{1}}}|{{{1}}}]]<br>}}}}</includeonly> | + | </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: