Difference between revisions of "Template:Ability"

From mtgpq wiki
Jump to: navigation, search
Line 16: Line 16:
  
 
Produces:
 
Produces:
 +
 +
{{Ability|Berserker}}
  
 
{{Ability|First Strike}}
 
{{Ability|First Strike}}
Line 23: Line 25:
 
{{Ability|Protection from Color}}
 
{{Ability|Protection from Color}}
  
</noinclude><includeonly>[[Abilities#{{#ifeq:{{{1}}}|Protection from Color|Protection from Black|{{{1}}}}}|<span title="Abilities: {{{1}}}">''{{{2|{{{1}}}}}}''</span>]]</includeonly>
+
</noinclude><includeonly>[[Abilities#{{#ifeq:{{{1}}}|Protection from Color|Protection from Black|{{{1}}}}}|<span title="Abilities: {{{1}}}">''{{{2|{{{1}}}}}}''</span>]]{{#if:{{#pos:{{IconAbilityList}}|,{{{1}}},}}|&nbsp;[[File:{{{1}}}-b.png|x15px|{{{1}}}|link=Abilities#{{{1}}}]]}}</includeonly>

Revision as of 06:39, 5 April 2020

Usage

Format the name of a keyword or icon ability, including a link to its description.

The first parameter is the name of the ability.

The second parameter (optional) is the text to display for the ability, which should be limited to the ability name in a different word form. The default value is the first parameter.

Example

The following shorthand:

{{Ability|First Strike}}

{{Ability|Raid|Raided}}

Produces:

BerserkerBerserker

First StrikeFirst Strike

Raided

Protection from Color