Template:Gear: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Protected "Template:Gear": Widely transcluded ([Edit=Allow only autoconfirmed users] (indefinite))) |
Trig Jegman (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{{1}}}_Gear_{{{2}}}_{{{3}}}.png|{{#iferror:{{#expr:{{{4|24}}}}}|24}}px|link={{{3}}}]]{{#ifeq:{{{4}}}|icononly||{{#ifeq:{{{5}}}|icononly|| [[{{{3}}}]]}}}}</includeonly><noinclude>{{Gear/doc}}</noinclude> | <includeonly>[[File:{{#if:{{{mio|}}}|{{{mio|}}}|{{{1}}}_Gear_{{{2}}}_{{{3}}}.png}}|{{#iferror:{{#expr:{{{4|24}}}}}|24}}px|link={{{3}}}]]{{#ifeq:{{{4}}}|icononly||{{#ifeq:{{{5}}}|icononly|| [[{{{3}}}]]}}}}</includeonly><noinclude>{{Gear/doc}}</noinclude> |
Revision as of 15:00, 1 September 2023
Displays an inline gear item icon with a text link.
Usage
{{Gear|<game>|<category>|<name>|<size>|<icononly>}}
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
game | Named or unnamed (first positional) | Optional, defaults to S | The game that the item belongs to. Must be one of the following:
|
category | Named or unnamed (second positional) | Optional, defaults to Headgear | The type of gear. Must be one of the following:
|
name | Named or unnamed (third positional) | Optional, defaults to White Headband | The English name of the item. |
size | Named or unnamed (fourth positional) | Optional | The pixel width for the icon. The default size is 24px. |
icononly | Named or unnamed (fourth or fifth positional) | Optional | If present, the text label will be omitted. |
mio | Named only | Optional | For manually overriding the icon with a different filename. This parameter is particularly helpful when an icon is missing and needs a temporary placeholder. 'mio' stands for manual icon override. |
Examples
Markup
* {{Gear}} * {{Gear|S|Clothing|Basic Tee}} * {{Gear|S2|Clothing|Basic Tee|64}} * {{Gear|S3|Clothing|Basic Tee|200px}} * {{Gear|S|Clothing|Basic Tee|64|icononly}} * {{Gear|S|Clothing|Basic Tee|icononly}} * {{Gear|S2|Clothing|Basic Tee|64|icononly}} * {{Gear|S|Shoes|Cream Basics|256|mio=S2 Gear Shoes Cream Basics.png}}
Output
- [[File:{{{1}}}_Gear_{{{2}}}_{{{3}}}.png|24px|link={{{3}}}]] [[{{{3}}}]]
Basic Tee
Basic Tee
Basic Tee
Cream Basics