Difference between revisions of "Template:Ability"

From mtgpq wiki
Jump to: navigation, search
(Tag: Undo)
 
(2 intermediate revisions by the same user not shown)
Line 39: Line 39:
 
{{Ability|Basic Evergreen}}
 
{{Ability|Basic Evergreen}}
  
</noinclude><includeonly>[[Abilities#{{#ifeq:{{{1}}}|Protection from Color|Protection from Black|{{{1}}}}}|<span title="Abilities: {{{1}}}">''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}''</span>]]{{#if:{{#pos:{{IconAbilityList}}|,{{{1}}},}}|&thinsp;{{Ability icon|{{{1}}}|14|{{{3|}}}}}}}</includeonly>
+
</noinclude><includeonly>[[Abilities#{{#ifeq:{{{1}}}|Protection from Color|Protection from Black|{{{1}}}}}|<span title="Abilities: {{{1}}}">''{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}''</span>]]{{#if:{{#pos:{{IconAbilityList}}|,{{{1}}},}}|&thinsp;{{Ability icon|{{{1}}}|14|{{{3|}}}}} |{{#ifeq:{{{1}}}|Basic Evergreen|&thinsp;{{Ability icon|Berserker|14|{{{3|}}}}}{{Ability icon|Deathtouch|14|{{{3|}}}}}{{Ability icon|Defender|14|{{{3|}}}}}{{Ability icon|Double Strike|14|{{{3|}}}}}{{Ability icon|First Strike|14|{{{3|}}}}}{{Ability icon|Flying|14|{{{3|}}}}}{{Ability icon|Hexproof|14|{{{3|}}}}}{{Ability icon|Lifelink|14|{{{3|}}}}}{{Ability icon|Menace|14|{{{3|}}}}}{{Ability icon|Reach|14|{{{3|}}}}}{{Ability icon|Trample|14|{{{3|}}}}}{{Ability icon|Vigilance|14|{{{3|}}}}}}}}}</includeonly>

Latest revision as of 03:31, 24 October 2021

Usage

Format the name of a keyword or icon ability, including a link to its description, and an inline icon for icon abilities.

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.

The third parameter (optional) is a flag which if present forces non-inlining of any ability icon.

Example

The following shorthand:

{{Ability|Berserker}}

{{Ability|First Strike}}

{{Ability|First Strike||1}}

{{Ability|Raid|Raided}}

{{Ability|Protection from Color}}

{{Ability|Basic Evergreen}}

Produces:

BerserkerBerserker

First StrikeFirst Strike

First StrikeFirst Strike

Raided

Protection from Color

Basic EvergreenBerserkerDeathtouchDefenderDouble StrikeFirst StrikeFlyingHexproofLifelinkMenaceReachTrampleVigilance