Difference between revisions of "Template:Ability icon formatted"

From mtgpq wiki
Jump to: navigation, search
 
(3 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>
+
</noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}|[[File:{{{1}}}-b.png|20px|{{{1}}}]] [[Abilities#{{{1}}}|{{{1}}}]]<br>}}}}</includeonly>
{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list icons}}|{{{1}}}}}|* [[File:{{{1}}}.png|20px|{{{1}}}]] [[Abilities#{{{1}}}|{{{1}}}]]}}}}</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:

First Strike First Strike
Defender Defender