Template:Ability: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (Upgrading as proxy template, making "Cold-Blooded" into "Cold Blooded" when using Splatoon) |
GuyPerfect (talk | contribs) m (Removing newlines) |
||
Line 1: | Line 1: | ||
<includeonly>{{AbilityEx | <includeonly>{{AbilityEx|{{#ifeq:{{{1}}}|Cold-Blooded|{{#ifeq:{{{game|Splatoon}}}|Splatoon|Cold Blooded|Cold-Blooded}}|{{{1|?}}}}}|{{#if:{{{2|}}}|{{{2}}}|24px}}|game={{#if:{{{game|}}}|{{{game}}}|Splatoon}}|icononly={{#if:{{{icononly|}}}|{{{icononly}}}|false}}}}</includeonly><noinclude> | ||
|{{#ifeq:{{{1}}}|Cold-Blooded|{{#ifeq:{{{game|Splatoon}}}|Splatoon|Cold Blooded|Cold-Blooded}}|{{{1|?}}}}}|{{#if:{{{2|}}}|{{{2}}}|24px}} | |||
|game | |||
|icononly = {{#if:{{{icononly|}}}|{{{icononly}}}|false}} | |||
}}</includeonly><noinclude> | |||
__NOTOC__ | __NOTOC__ | ||
Displays an inline [[Ability]] icon with a text link. This template is a proxy that pre-evaluates parameters for [[Template:AbilityEx|AbilityEx]]. | Displays an inline [[Ability]] icon with a text link. This template is a proxy that pre-evaluates parameters for [[Template:AbilityEx|AbilityEx]]. |
Revision as of 04:21, 23 September 2017
Displays an inline Ability icon with a text link. This template is a proxy that pre-evaluates parameters for AbilityEx.
Parameters
name |
Unnamed, optional. | The English name of the Ability. If "?", the no-ability question mark will be used. The default value is "?". |
size |
Unnamed, optional. | A Mediawiki image size parameter for the icon. The default value is "24px". |
game |
Optional. | The game that the Brand belongs to. The default value is "Splatoon". Must be one of the following:
|
icononly |
Optional. | If present and "true", the text label will be omitted. |
Remarks
Specifying "Cold-Blooded" for name
and "Splatoon" for game
will substitute "Cold Blooded" for the name instead.
Examples
Markup
{{Ability|?}}<br /> {{Ability|Special Saver}}<br /> {{Ability|Special Saver|48px}}<br /> {{Ability|Special Saver|icononly=true}}<br /> {{Ability|Special Saver|game=Splatoon 2}}<br /> {{Ability|Cold-Blooded|game=Splatoon}}
Output
Template:AbilityEx
Template:AbilityEx
Template:AbilityEx
Template:AbilityEx
Template:AbilityEx
Template:AbilityEx