Template:Brand: Difference between revisions

From Inkipedia, the Splatoon wiki
m (How to grammar?)
m (Undo revision 290782 by GuyPerfect (talk) That's not what needs to be neutral)
Tag: Undo
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{#switch:{{#if:{{{game|}}}|{{{game}}}|Splatoon}}
<includeonly>[[File:{{{1|S}}}_Brand_{{{2}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2}}}|link={{{2|SquidForce}}}{{#switch:{{{2}}}
|Splatoon  = S
|amiibo
|Splatoon 2 = S2
|Amiibo
|#default  = S
|Ammo Knights
}}_Brand_{{{1|SquidForce}}}.png|{{{2|24px}}}|{{{1|SquidForce}}}|link={{{1|SquidForce}}}]]{{#ifeq:{{{icononly|}}}|true||
|Custom
&nbsp;[[{{{1}}}|{{{1}}}]]
|Nintendo
}}</includeonly><noinclude>__NOTOC__
|Sheldon's Picks
Displays an inline [[Brand]] icon with a text link.
|"Splat"
 
|Splat=_(brand)
=== Parameters ===
|#default=}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||
{|
&#32;[[{{{2}}}{{#switch:{{{2}}}
|-
|amiibo
|<code>name</code>||Unnamed.||The English name of the Brand.
|Amiibo
|-
|Ammo Knights
|<code>size</code>||Unnamed, optional.||A Mediawiki image size parameter for the icon. The default size is 24px.
|Custom
|- style="vertical-align: top;"
|Nintendo
|<code>game</code>||Optional.||The game that the Brand belongs to. The default value is "Splatoon". Must be one of the following:
|Sheldon's Picks
*Splatoon
|"Splat"
*Splatoon 2
|Splat=_(brand)
|-
|#default=}}|{{{2}}}]]}}}}</includeonly><noinclude>{{Brand/doc}}</noinclude>
|<code>icononly</code>||Optional.||If present and "true", the text label will be omitted.
|}
 
=== Examples ===
==== Markup ====
<nowiki>{{Brand|Krak-On}}<br />
{{Brand|Krak-On|48px}}<br />
{{Brand|Krak-On|game=Splatoon 2}}<br />
{{Brand|Krak-On|icononly=true}}</nowiki>
 
==== Output ====
{{Brand|Krak-On}}<br />
{{Brand|Krak-On|48px}}<br />
{{Brand|Krak-On|game=Splatoon 2}}<br />
{{Brand|Krak-On|icononly=true}}
</noinclude>

Latest revision as of 14:12, 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