Template:Gear: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Heddy moved page Template:InterimGear to Template:Gear) |
|||
Line 1: | Line 1: | ||
<includeonly>[[File:{{ | <includeonly>[[File:{{{1}}}_Gear_{{{2}}}_{{{3}}}.png|{{{4|24}}}px|link={{{3}}}]]{{#if:{{{5|}}}|{{#ifeq:{{{5}}}|icononly|| [[{{{3}}}]]}}| [[{{{3}}}]]}}</includeonly><noinclude> | ||
Displays an inline [[gear]] item icon with a text link. | Displays an inline [[gear]] item icon with a text link. | ||
== Parameters == | |||
{| | <code><nowiki>{{Gear|game|category|name|size|icononly}}</nowiki></code> | ||
{| class="wikitable" | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>game</code>||Unnamed, required.||The game that the item belongs to. Must be one of the following: | ||
* | *<code>S</code> for Splatoon | ||
* | *<code>S2</code> for Splatoon 2 | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>category</code>||Unnamed, required.||The type of gear. Must be one of the following: | ||
*<code>Headgear</code> | |||
*<code>Clothing</code> | |||
*<code>Shoes</code> | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>name</code>||Unnamed, required.||The English name of the item. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>size</code>||Unnamed, optional.||The pixel width for the icon. The default size is 24px. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>icononly</code>|| | |<code>icononly</code>||Unnamed, optional.||If present, the text label will be omitted. | ||
|} | |} | ||
== Examples == | == Examples == | ||
=== | === Input === | ||
<pre>{{Gear|S|Clothing|Basic Tee}} | |||
{{Gear|Clothing|Basic Tee| | |||
{{Gear|Clothing|Basic Tee|icononly | {{Gear|S|Clothing|Basic Tee|64}} | ||
{{Gear|Clothing|Basic Tee| | |||
{{Gear|S|Clothing|Basic Tee|64|icononly}} | |||
{{Gear|S2|Clothing|Basic Tee|64|icononly}}</pre> | |||
=== Output === | === Output === | ||
[[File:S Gear Clothing Basic Tee.png|24px|link=Basic Tee]] [[Basic Tee]] | |||
[[File:S Gear Clothing Basic Tee.png|64px|link=Basic Tee]] [[Basic Tee]] | |||
[[File:S Gear Clothing Basic Tee.png|64px|link=Basic Tee]] | |||
[[File:S2 Gear Clothing Basic Tee.png|64px|link=Basic Tee]] | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Revision as of 05:46, 6 December 2017
Displays an inline gear item icon with a text link.
Parameters
{{Gear|game|category|name|size|icononly}}
game |
Unnamed, required. | The game that the item belongs to. Must be one of the following:
|
category |
Unnamed, required. | The type of gear. Must be one of the following:
|
name |
Unnamed, required. | The English name of the item. |
size |
Unnamed, optional. | The pixel width for the icon. The default size is 24px. |
icononly |
Unnamed, optional. | If present, the text label will be omitted. |
Examples
Input
{{Gear|S|Clothing|Basic Tee}} {{Gear|S|Clothing|Basic Tee|64}} {{Gear|S|Clothing|Basic Tee|64|icononly}} {{Gear|S2|Clothing|Basic Tee|64|icononly}}