Template:Ability: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Referencing Ability SVGs)
(Testing new Ability template)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1}}}|?|[[File:Ability_Locked.svg{{!}}{{{2|24px}}}{{!}}link=Ability{{!}}Locked]]|[[File:Ability_{{{1}}}.svg{{!}}{{{2|24px}}}{{!}}link={{{1}}}{{!}}{{{1}}}]]}}</includeonly>
<includeonly>
[[File:{{#switch:{{{game|Splatoon}}}
|Splatoon  = S
|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|false}}}|true||
<span style="display: inline-block; text-align: right; {{#if:{{{width|}}}|width: {{{width}}};}}">&nbsp;[[{{{1}}}|{{{1}}}]]</span>
}}}}
</includeonly><noinclude>
__NOTOC__
Displays an inline [[Ability]] icon with a text link.
 
=== Parameters ===
{|
|-
|<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.
|- style="vertical-align: top;"
|<code>game</code>||Optional.||The game that the Ability belongs to. The default value is "Splatoon". Must be one of the following:
*Splatoon
*Splatoon 2
|-
|<code>icononly</code>||Optional.||If present and "true", only the Ability icon will be output.
|}
 
=== 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 ====
{{User:GuyPerfect/Ability}}<br />
{{User:GuyPerfect/Ability|Special Saver}}<br />
{{User:GuyPerfect/Ability|Special Saver|48px}}<br />
{{User:GuyPerfect/Ability|Special Saver|icononly=true}}<br />
{{User:GuyPerfect/Ability|Special Saver|game=Splatoon 2}}
</noinclude>

Revision as of 00:52, 1 August 2017


Displays an inline Ability icon with a text link.

Parameters

name Unnamed. The English name of the ability. If "?", the no-ability question mark will be used.
size Unnamed, optional. A Mediawiki image size parameter.
game Optional. The game that the Ability belongs to. The default value is "Splatoon". Must be one of the following:
  • Splatoon
  • Splatoon 2
icononly Optional. If present and "true", only the Ability icon will be output.

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

Output

User:GuyPerfect/Ability
User:GuyPerfect/Ability
User:GuyPerfect/Ability
User:GuyPerfect/Ability
User:GuyPerfect/Ability