Difference between revisions of "Template:Ability"
Line 21: | Line 21: | ||
{{Ability|Protection from Color}} | {{Ability|Protection from Color}} | ||
+ | |||
+ | {{Ability|Basic Evergreen}} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 35: | Line 37: | ||
{{Ability|Protection from Color}} | {{Ability|Protection from Color}} | ||
− | </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}}},}}| {{ | + | {{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}}},}}| {{Ability icon|{{{1}}}|14|{{{3|}}}}}}}</includeonly> |
Revision as of 06:36, 9 May 2020
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: