Difference between revisions of "Template:Ability keyword formatted"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude> ==Usage== Convert a keyword ability name to a formatted item in a list. An invalid or empty ability name produces no output. ==Example== The following shorthand...")
 
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Convert a keyword ability name to a formatted item in a list.  An invalid or empty ability name produces no output.
+
Convert a keyword ability name to a formatted item in a list, including 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 keyword formatted|Activate}}
 
{{Ability keyword formatted|Activate}}
 
{{Ability keyword formatted|Rally}}
 
{{Ability keyword formatted|Rally}}
  
</noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list keywords}}|{{{1}}}}}|* [[Abilities#{{{1}}}|{{{1}}}]]}}}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{1|}}}|{{#if: {{#pos:{{Abilities list keywords}}|{{{1}}}}}|[[Abilities#{{{1}}}|{{{1}}}]]<br>}}}}</includeonly>

Latest revision as of 03:13, 15 February 2019

Usage

Convert a keyword ability name to a formatted item in a list, including a link to the description of the ability. An invalid or empty ability name produces no output.

Example

The following shorthand:

{{Ability keyword formatted|Activate}}
{{Ability keyword formatted|Rally}}

Produces:

Activate
Rally