Template:Brand: Difference between revisions

From Inkipedia, the Splatoon wiki
(Making Link param editable, updating amiibo example to match.)
m (Undo revision 290782 by GuyPerfect (talk) That's not what needs to be neutral)
Tag: Undo
 
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{ImageLabel|Brand_{{{1}}}.png|{{if||{{{text|}}}|{{{text}}}|{{#ifeq:{{{icononly|}}}|true||[[{{{1}}}]]}}}}|size={{{size|30px}}}|link={{if||{{{link|}}}|{{{link}}}|{{{1}}}}}|width={{{width|auto}}}|align={{{align|left}}}}}</includeonly><noinclude>
<includeonly>[[File:{{{1|S}}}_Brand_{{{2}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2}}}|link={{{2|SquidForce}}}{{#switch:{{{2}}}
 
|amiibo
== Usage ==
|Amiibo
<nowiki>{{</nowiki>Brand|''brand''}}
|Ammo Knights
*''brand'' - The full name of the Brand, such as "Splash Mob"
|Custom
 
|Nintendo
'''Optional Parameters:'''
|Sheldon's Picks
*''size'' - If present, the size parameter for the <nowiki>[[File]]</nowiki> element.
|"Splat"
*''text'' - If present, replaces the default link text with the specified text. Overrides icononly.
|Splat=_(brand)
*''icononly'' - If present and set to "true", the text link will not appear.
|#default=}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||
 
&#32;[[{{{2}}}{{#switch:{{{2}}}
== Examples ==
|amiibo
{{Brand|amiibo|link=amiibo (brand)|text=[[amiibo (brand)|amiibo]]}}
|Amiibo
{{Brand|Cuttlegear}}<br />
|Ammo Knights
{{Brand|Famitsu}}<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|The SQUID GIRL}}<br />
{{Brand|SquidForce}}<br />
{{Brand|Takoroka}}<br />
{{Brand|Tentatek}}<br />
{{Brand|Zekko}}<br />
{{Brand|Zink}}<br />
{{Brand|Firefin|text=[[Firefin]] has a good chance to roll [[Ink Saver (Sub)]] but a poor chance to roll [[Ink Recovery Up]]}}<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