Difference between revisions of "Template:Ability icon formatted"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> ==Usage== Convert an icon ability name to a formatted item in a list, including the icon. ==Example== The following shorthand: <pre><nowiki> {{Ability icon forma...")
 
Line 16: Line 16:
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}|* [[File:{{{1}}}.png|20px|{{{1}}}]] [[Abilities#{{{1}}}|{{{1}}}]]}}</includeonly>
+
{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}|* [[File:{{{1}}}.png|20px|{{{1}}}]] [[Abilities#{{{1}}}|{{{1}}}]]}}}}</includeonly>

Revision as of 02:59, 15 February 2019

Usage

Convert an icon ability name to a formatted item in a list, including the icon.

Example

The following shorthand:

{{Ability icon formatted|First Strike}}
{{Ability icon formatted|Defender}}

Produces: First Strike First Strike
Defender Defender