|
|
Line 1: |
Line 1: |
| <includeonly>[[File:{{{1}}}_Ability_{{#ifeq:{{{2}}}|?|Locked|}}.png|{{{3|24}}}px|link={{#ifeq:{{{2}}}|?|Ability|{{{2}}}}}]]{{#ifeq:{{{2}}}|?||{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly|| [[{{{2}}}]]}}}}}}</includeonly><noinclude>__NOTOC__ | | <includeonly>{{Infobox/BrandEx |
| Displays an inline [[ability]] icon with a text link.
| | |color = {{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}} |
| | | |style = {{{style|}}} |
| == Parameters == | | |game = {{#if:{{{game|}}}|{{{game}}}|Splatoon 2}} |
| <code><nowiki>{{Ability|game|name|size|icononly}}</nowiki></code>
| | |split = {{#if:{{{game|}}}|true}} |
| | | |name = {{{name|{{PAGENAME}}}}} |
| {| class="wikitable"
| | |favored = {{{favored|}}} |
| |- style="vertical-align: top;"
| | |favored2 = {{{favored2|}}} |
| |<code>game</code>||Unnamed, required.||The game that the ability belongs to. Must be one of the following:
| | |unfavored = {{{unfavored|}}} |
| *<code>S</code> for Splatoon
| | |unfavored2 = {{{unfavored2|}}} |
| *<code>S2</code> for Splatoon 2
| | |sameicon = {{{sameicon|}}} |
| |-
| | }}</includeonly><noinclude>{{Infobox/BrandDoc}}</noinclude> |
| |<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>icononly</code>||Unnamed, optional.||If present, the text label will be omitted.
| |
| |}
| |
| | |
| == Examples ==
| |
| === Input ===
| |
| <pre>{{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}}</pre>
| |
| | |
| === Output ===
| |
| [[File:S Ability Locked.png|24px|link=Ability]]
| |
| | |
| [[File:S Ability Ink Saver (Main).png|24px|link=Ink Saver (Main)]] [[Ink Saver (Main)]]
| |
| | |
| [[File:S Ability Ink Saver (Main).png|32px|link=Ink Saver (Main)]] [[Ink Saver (Main)]]
| |
| | |
| [[File:S Ability Ink Saver (Main).png|32px|link=Ink Saver (Main)]]
| |
| | |
| [[File:S2 Ability Ink Saver (Main).png|32px|link=Ink Saver (Main)]]
| |
| | |
| [[Category:Templates]]
| |
| </noinclude> | |