Template:Ability: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Removing newlines)
(making into module invocation)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<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>
<includeonly>{{#invoke:Ability|main}}</includeonly><noinclude>
__NOTOC__
Template invocation of [[Module:Ability]].
Displays an inline [[Ability]] icon with a text link. This template is a proxy that pre-evaluates parameters for [[Template:AbilityEx|AbilityEx]].


=== Parameters ===
{{:Module:Ability/doc}}
{|
|-
|<code>name</code>||Unnamed, optional.||The English name of the Ability. If "?", the no-ability question mark will be used. The default value is "?".
|-
|<code>size</code>||Unnamed, optional.||A Mediawiki image size parameter for the icon. The default value is "24px".
|- style="vertical-align: top;"
|<code>game</code>||Optional.||The game that the Brand belongs to. The default value is "Splatoon". Must be one of the following:
*Splatoon
*Splatoon 2
|-
|<code>icononly</code>||Optional.||If present and "true", the text label will be omitted.
|}
 
=== Remarks ===
Specifying "Cold-Blooded" for <code>name</code> and "Splatoon" for <code>game</code> will substitute "Cold Blooded" for the name instead.
 
=== Examples ===
==== Markup ====
<nowiki>
{{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}}</nowiki>
 
==== Output ====
{{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}}
</noinclude>
</noinclude>

Latest revision as of 20:51, 7 September 2023

Template invocation of Module:Ability.

Displays an inline gear ability icon with a text link.

Usage

{{Ability|<game>|<name>|<size>|<icononly>}}

Parameters

Parameter Type Status Description
game Unnamed Required The game that the ability belongs to. Must be one of the following:
  • S for Splatoon
  • S2 for Splatoon 2
  • S3 for Splatoon 3
name Unnamed Required The English name of the ability.
  • ? can be used to get the no-ability question mark.
size Unnamed Optional The pixel width for the icon. The default size is 24. Required if icononly is specified.
icononly Unnamed Optional. If present, the text label will be omitted.

Examples

Markup

* {{Ability|S|?}}
* {{Ability|S|Ink Saver (Main)}}
* {{Ability|S|Ink Saver (Main)|32}}
* {{Ability|S2|Ink Saver (Main)|32|icononly}}
* {{Ability|S3|Ink Saver (Main)|32|icononly}}

Output