Template:Gear: Difference between revisions
From Inkipedia, the Splatoon wiki
(Created page.) |
m (→Output: Upgrade: Template:Gear → Template:InterimGear) |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{{ | <includeonly>[[File:{{#switch:{{#if:{{{game|}}}|{{{game}}}|Splatoon}} | ||
|Splatoon = S | |||
|Splatoon 2 = S2 | |||
|#default = S | |||
}}_Gear_{{{1}}}_{{{2}}}.png|{{{3|24px}}}|link={{{2}}}]]{{#ifeq:{{{icononly|}}}|true|| [[{{{2}}}|{{{2}}}]]}}</includeonly><noinclude>__NOTOC__ | |||
Displays an inline [[gear]] item icon with a text link. | Displays an inline [[gear]] item icon with a text link. | ||
== Parameters == | === Parameters === | ||
{| | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>category</code>||Unnamed.||The type of gear. Must be one of the following: | ||
* | *Headgear | ||
* | *Clothing | ||
*Shoes | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>name</code>||Unnamed.||The English name of the item. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>size</code>||Unnamed, optional.||A Mediawiki image size parameter for the icon. The default size is 24px. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code> | |<code>game</code>||Optional.||The game that the item belongs to. The default value is "Splatoon". Must be one of the following: | ||
*Splatoon | |||
*Splatoon 2 | |||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
|<code>icononly</code>|| | |<code>icononly</code>||Optional.||If present and "true", the text label will be omitted. | ||
|} | |} | ||
== Examples == | == Examples == | ||
=== | === Markup === | ||
< | <nowiki>{{Gear|Clothing|Basic Tee}}<br /> | ||
{{Gear|Clothing|Basic Tee|48px}}<br /> | |||
{{Gear | {{Gear|Clothing|Basic Tee|icononly=true}}<br /> | ||
{{Gear|Clothing|Basic Tee|game=Splatoon 2}}</nowiki> | |||
{{Gear | |||
{{Gear | |||
=== Output === | === Output === | ||
{{Gear|Clothing|Basic Tee}}<br /> | |||
{{InterimGear|S|Clothing|Basic Tee|48}}<br /> | |||
{{InterimGear|S|Clothing|Basic Tee|icononly}}<br /> | |||
{{InterimGear|S2|Clothing|Basic Tee}} | |||
</noinclude> | </noinclude> |
Revision as of 05:16, 6 December 2017
Displays an inline gear item icon with a text link.
Parameters
category |
Unnamed. | The type of gear. Must be one of the following:
|
name |
Unnamed. | The English name of the item. |
size |
Unnamed, optional. | A Mediawiki image size parameter for the icon. The default size is 24px. |
game |
Optional. | The game that the item belongs to. The default value is "Splatoon". Must be one of the following:
|
icononly |
Optional. | If present and "true", the text label will be omitted. |
Examples
Markup
{{Gear|Clothing|Basic Tee}}<br /> {{Gear|Clothing|Basic Tee|48px}}<br /> {{Gear|Clothing|Basic Tee|icononly=true}}<br /> {{Gear|Clothing|Basic Tee|game=Splatoon 2}}
Output
Basic Tee
Template:InterimGear
Template:InterimGear
Template:InterimGear