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:{{{1}}}_Gear_{{{2}}}_{{{3}}}.png|{{{4|24}}}px|link={{{3}}}]]{{#if:{{{5|}}}|{{#ifeq:{{{5}}}|icononly||&#32;[[{{{3}}}]]}}|&#32;[[{{{3}}}]]}}</includeonly><noinclude>
<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||&#32;[[{{{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 ===
<code><nowiki>{{Gear|game|category|name|size|icononly}}</nowiki></code>
{|
{| class="wikitable"
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>game</code>||Unnamed, required.||The game that the item belongs to. Must be one of the following:
|<code>category</code>||Unnamed.||The type of gear. Must be one of the following:
*<code>S</code> for Splatoon
*Headgear
*<code>S2</code> for Splatoon 2
*Clothing
*Shoes
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>category</code>||Unnamed, required.||The type of gear. Must be one of the following:
|<code>name</code>||Unnamed.||The English name of the item.
*<code>Headgear</code>
*<code>Clothing</code>
*<code>Shoes</code>
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>name</code>||Unnamed, required.||The English name of the item.
|<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>size</code>||Unnamed, optional.||The pixel width for the icon. The default size is 24px.
|<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>||Unnamed, optional.||If present, the text label will be omitted.
|<code>icononly</code>||Optional.||If present and "true", the text label will be omitted.
|}
|}


== Examples ==
== Examples ==
=== Input ===
=== Markup ===
<pre>{{Gear|S|Clothing|Basic Tee}}
<nowiki>{{Gear|Clothing|Basic Tee}}<br />
 
{{Gear|Clothing|Basic Tee|48px}}<br />
{{Gear|S|Clothing|Basic Tee|64}}
{{Gear|Clothing|Basic Tee|icononly=true}}<br />
 
{{Gear|Clothing|Basic Tee|game=Splatoon 2}}</nowiki>
{{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]]
{{Gear|Clothing|Basic Tee}}<br />
 
{{InterimGear|S|Clothing|Basic Tee|48}}<br />
[[File:S Gear Clothing Basic Tee.png|64px|link=Basic Tee]] [[Basic Tee]]
{{InterimGear|S|Clothing|Basic Tee|icononly}}<br />
 
{{InterimGear|S2|Clothing|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: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:
  • Headgear
  • Clothing
  • Shoes
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:
  • Splatoon
  • Splatoon 2
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

S Gear Clothing Basic Tee.png Basic Tee
Template:InterimGear
Template:InterimGear
Template:InterimGear