Template:Ability: Difference between revisions

From Inkipedia, the Splatoon wiki
m (size parameter was not optional. Now it is.)
m (Small fix to the template, so that it more simply handles non-number values for parameter 3)
Line 1: Line 1:
<includeonly>[[File:{{{1}}}_Ability_{{#ifeq:{{{2}}}|?|Locked|{{{2}}}}}.png|{{#ifeq:{{{3|}}}|icononly|24|{{{3|24}}}}}px|link={{#ifeq:{{{2}}}|?|Ability|{{{2}}}}}]]{{#ifeq:{{{2}}}|?||{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||&#32;[[{{{2}}}]]}}}}}}</includeonly><noinclude>__NOTOC__
<includeonly>[[File:{{{1}}}_Ability_{{#ifeq:{{{2}}}|?|Locked|{{{2}}}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|link={{#ifeq:{{{2}}}|?|Ability|{{{2}}}}}]]{{#ifeq:{{{2}}}|?||{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||&#32;[[{{{2}}}]]}}}}}}</includeonly><noinclude>__NOTOC__
Displays an inline [[ability]] icon with a text link.
Displays an inline [[ability]] icon with a text link.



Revision as of 15:14, 1 February 2018

Displays an inline ability icon with a text link.

Parameters

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

game Unnamed, required. The game that the ability belongs to. Must be one of the following:
  • S for Splatoon
  • S2 for Splatoon 2
name Unnamed, required. The English name of the ability. If ?, the no-ability question mark will be used.
size Unnamed, optional. The pixel width for the icon. The default size is 24.
icononly Unnamed, optional. If present, the text label will be omitted.

Examples

Input

{{Ability|S|?}}<br />
{{Ability|S|Ink Saver (Main)}}<br />
{{Ability|S|Ink Saver (Main)|32}}<br />
{{Ability|S|Ink Saver (Main)|icononly}}<br />
{{Ability|S2|Ink Saver (Main)|32|icononly}}

Output

S Ability Locked.png
S Ability Ink Saver (Main).png Ink Saver (Main)
S Ability Ink Saver (Main).png Ink Saver (Main)
S Ability Ink Saver (Main).png
S2 Ability Ink Saver (Main).png