Template:Brand: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Protected "Template:Brand": Widely transcluded ([Edit=Allow only autoconfirmed users] (indefinite)))
m (Supporting the neutral case)
Tag: Reverted
Line 1: Line 1:
<includeonly>[[File:{{{1|S}}}_Brand_{{{2}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2}}}|link={{{2|SquidForce}}}{{#switch:{{{2}}}
<includeonly>{{#ifeq:{{{2|}}}|Neutral|Neutral|[[File:{{{1|S}}}_Brand_{{{2}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2}}}|link={{{2|SquidForce}}}{{#switch:{{{2}}}
|amiibo
|amiibo
|Amiibo
|Amiibo
Line 18: Line 18:
|"Splat"
|"Splat"
|Splat=_(brand)
|Splat=_(brand)
|#default=}}|{{{2}}}]]}}}}</includeonly><noinclude>{{Brand/doc}}</noinclude>
|#default=}}|{{{2}}}]]}}}}}}</includeonly><noinclude>{{Brand/doc}}</noinclude>

Revision as of 14:11, 7 September 2022

Displays an inline brand icon with a text link.

If a page named "<name>_(brand)" exists, the link will point to that page, but will still only show <name> as the text.

Usage

{{Brand|<game>|<name>|<size>|<icononly>}}

Parameters

Parameter Type Status Description
game Unnamed Required The shortened game form that the brand belongs to:
  • S for Splatoon.
  • S2 for Splatoon 2.
  • S3 for Splatoon 3.
name Unnamed Required The English name of the brand. Can be either a gear brand or a weapon brand.
size Unnamed Optional The size of the icon. The default size is 24.
icononly Unnamed Optional If present, the text label will be omitted.

Examples

Markup

* {{Brand|S|Krak-On}}
* {{Brand|S|Krak-On|48}}
* {{Brand|S2|Krak-On}}
* {{Brand|S|Krak-On|icononly}}
* {{Brand|S2|Krak-On|48|icononly}}
* {{Brand|S|amiibo}}
* {{Brand|S|Custom}}
* {{Brand|S3|Emberz|36}}

Output