User:Heddy/Test/1: Difference between revisions

From Inkipedia, the Splatoon wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[[File:{{{1}}}_Ability_{{#ifeq:{{{2|?}}}|?|Locked|}}.png|{{{3|24}}}px|link={{#ifeq:{{{2|?}}}|?|Ability|{{{2}}}}}]]{{#ifeq:{{{2|?}}}|?||{{#if:{{{4|}}}|{{#ifeq:{{{4}}}|icononly||&#32;[[{{{2}}}]]}}|&#32;[[{{{2}}}]]}}}}</includeonly><noinclude>__NOTOC__
<includeonly>[[File:{{{1}}}_Ability_{{#ifeq:{{{2}}}|?|Locked|}}.png|{{{3|24}}}px|link={{#ifeq:{{{2}}}|?|Ability|{{{2}}}}}]]{{#ifeq:{{{2}}}|?||{{#if:{{{4|}}}|{{#ifeq:{{{4}}}|icononly||&#32;[[{{{2}}}]]}}|&#32;[[{{{2}}}]]}}}}</includeonly><noinclude>__NOTOC__
Displays an inline [[ability]] icon with a text link.
Displays an inline [[ability]] icon with a text link.


Line 11: Line 11:
*<code>S2</code> for Splatoon 2
*<code>S2</code> for Splatoon 2
|-
|-
|<code>name</code>||Unnamed, optional.||The English name of the ability. If <code>?</code>, the no-ability question mark will be used. The default value is <code>?</code>.
|<code>name</code>||Unnamed, required.||The English name of the ability. If <code>?</code>, the no-ability question mark will be used.
|-
|-
|<code>size</code>||Unnamed, optional.||The pixel width for the icon. The default size is 24.
|<code>size</code>||Unnamed, optional.||The pixel width for the icon. The default size is 24.
Line 31: Line 31:


=== Output ===
=== Output ===
{{User:Heddy/Test/1|S||32|icononly}}
[[File:S Ability Locked.png|24px|link=Ability]]
[[File:S Ability Locked.png|24px|link=Ability]]



Revision as of 04:39, 7 December 2017

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}}

{{Ability|S|Ink Saver (Main)}}

{{Ability|S|Ink Saver (Main)|32}}

{{Ability|S|Ink Saver (Main)|32|icononly}}

{{Ability|S2|Ink Saver (Main)|32|icononly}}

Output

File:S Ability .png

Ink Saver (Main)

Ink Saver (Main)