Template:Ability: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Converting non-breaking space to regular space)
(making into module invocation)
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{#switch:{{#if:{{{game|}}}|{{{game}}}|Splatoon}}
<includeonly>{{#invoke:Ability|main}}</includeonly><noinclude>
|Splatoon  = S
Template invocation of [[Module:Ability]].
|Splatoon 2 = S2
|#default  = S
}}_Ability_{{#ifeq:{{{1|?}}}|?|Locked|{{{1}}}}}.png|{{{2|24px}}}|{{#ifeq:{{{1|?}}}|?|Ability|{{{1}}}}}|link={{#ifeq:{{{1|?}}}|?|Ability|{{{1}}}}}]]{{#ifeq:{{{1|?}}}|?||{{#ifeq:{{{icononly|}}}|true||&#32;[[{{{1}}}|{{{1}}}]]}}}}</includeonly><noinclude>
__NOTOC__
Displays an inline [[Ability]] icon with a text link.


=== Parameters ===
{{:Module:Ability/doc}}
{|
|-
|<code>name</code>||Unnamed.||The English name of the Ability. If "?", the no-ability question mark will be used.
|-
|<code>size</code>||Unnamed, optional.||A Mediawiki image size parameter for the icon.
|- 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.
|}
 
=== 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}}</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}}
</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