Template:Brand: Difference between revisions

From Inkipedia, the Splatoon wiki
(Reworking template to have the functionality of Template:Ability)
m (Undo revision 290782 by GuyPerfect (talk) That's not what needs to be neutral)
Tag: Undo
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly><div style="display: inline-block; vertical-align: middle;">
<includeonly>[[File:{{{1|S}}}_Brand_{{{2}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2}}}|link={{{2|SquidForce}}}{{#switch:{{{2}}}
{|style="border-spacing: 0px;"
|amiibo
|-
|Amiibo
|style="padding-right: 4px;"|[[File:Brand_{{{1}}}.png|{{{size|30px}}}|link={{{1}}}|{{{1}}}]]{{#ifeq:{{{icononly|false}}}|true||{{!}}{{!}}[[{{{1}}}]]}}
|Ammo Knights
|}</div></includeonly><noinclude>== Usage ==
|Custom
<nowiki>{{</nowiki>Brand|''brand''}}
|Nintendo
*''brand'' - The full name of the Brand, such as "Splash Mob"
|Sheldon's Picks
 
|"Splat"
'''Optional Parameters:'''
|Splat=_(brand)
*''size'' - If present, the size parameter for the <nowiki>[[File]]</nowiki> element.
|#default=}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||
*''icononly'' - If present and set to "true", the text link will not appear.
&#32;[[{{{2}}}{{#switch:{{{2}}}
 
|amiibo
== Examples ==
|Amiibo
{{Brand|amiibo}}<br />
|Ammo Knights
{{Brand|Cuttlegear}}<br />
|Custom
{{Brand|Firefin}}<br />
|Nintendo
{{Brand|Forge}}<br />
|Sheldon's Picks
{{Brand|Inkline}}<br />
|"Splat"
{{Brand|KOG}}<br />
|Splat=_(brand)
{{Brand|Krak-On}}<br />
|#default=}}|{{{2}}}]]}}}}</includeonly><noinclude>{{Brand/doc}}</noinclude>
{{Brand|Rockenberg}}<br />
{{Brand|Skalop}}<br />
{{Brand|Splash Mob}}<br />
{{Brand|SquidForce}}<br />
{{Brand|Takoroka}}<br />
{{Brand|Tentatek}}<br />
{{Brand|Zekko}}<br />
{{Brand|Zink}}<br />
{{Brand|Forge|size=64px}}<br />
{{Brand|Forge|icononly=true}}<br />
</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