Template:GearCategory: Difference between revisions

From Inkipedia, the Splatoon wiki
(Creating template for use in infoboxes)
 
m (Enforcing minimum element size)
 
Line 1: Line 1:
<includeonly><span class="gear-category {{{1}}}" style="width:{{{2|24}}}px; height:{{{3|{{{2|24}}}}}}px;" title="{{{1}}}">[[{{{1}}}|&nbsp;]]</span> {{#ifeq:{{{2}}}|icononly||{{#ifeq:{{{3}}}|icononly||{{#ifeq:{{{4}}}|icononly||[[{{{1}}}]]}}}}}}</includeonly><noinclude>
<includeonly><span class="gear-category {{{1}}}" style="min-width:{{{2|24}}}px; min-height:{{{3|{{{2|24}}}}}}px;" title="{{{1}}}">[[{{{1}}}|&nbsp;]]</span> {{#ifeq:{{{2}}}|icononly||{{#ifeq:{{{3}}}|icononly||{{#ifeq:{{{4}}}|icononly||[[{{{1}}}]]}}}}}}</includeonly><noinclude>
Displays an inline graphic for a [[Gear]] category that honors dark mode.
Displays an inline graphic for a [[Gear]] category that honors dark mode.



Latest revision as of 17:06, 6 September 2022

Displays an inline graphic for a Gear category that honors dark mode.

Parameters

name Unnamed. The name of the category. May be one of the following:
  • Clothing
  • Headgear
  • Shoes
width Unnamed, optional. If present, specifies the width in pixels of the output. Default is 24.
height Unnamed, optional. If present, specifies the height in pixels of the output. Default uses the value for width.
icononly Optional. If present, prevents the text link beside the graphic.

Examples

{{GearCategory|Clothing}}

  Clothing

{{GearCategory|Headgear|64}}

  Headgear

{{GearCategory|Shoes|64|32|icononly}} Inline text

  Inline text