Difference between revisions of "Template:Ability"
Line 6: | Line 6: | ||
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 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== | ==Example== | ||
Line 13: | Line 15: | ||
{{Ability|First Strike}} | {{Ability|First Strike}} | ||
+ | |||
+ | {{Ability|First Strike||1}} | ||
{{Ability|Raid|Raided}} | {{Ability|Raid|Raided}} | ||
Line 24: | Line 28: | ||
{{Ability|First Strike}} | {{Ability|First Strike}} | ||
+ | |||
+ | {{Ability|First Strike||1}} | ||
{{Ability|Raid|Raided}} | {{Ability|Raid|Raided}} | ||
Line 29: | Line 35: | ||
{{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 | + | </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}}},}}| {{#if:{{{3|}}}|[[File:{{{1}}}-b.png|x14px|{{{1}}}|link=Abilities#{{{1}}}]]|{{Inline|[[File:{{{1}}}-b.png|x14px|{{{1}}}|link=Abilities#{{{1}}}]]}}}}}}</includeonly> |
Revision as of 09:50, 19 April 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}}
Produces: