Template:Brand: Difference between revisions

From Inkipedia, the Splatoon wiki
(Removed the helper code, since all pages are now converted to the new format. YAY!)
m (Undo revision 290782 by GuyPerfect (talk) That's not what needs to be neutral)
Tag: Undo
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1|S}}}_Brand_{{{2|SquidForce}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2|SquidForce}}}|link={{{2|SquidForce}}}{{#ifexist:{{{2|SquidForce}}}_(brand)|_(brand)}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||
<includeonly>[[File:{{{1|S}}}_Brand_{{{2}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2}}}|link={{{2|SquidForce}}}{{#switch:{{{2}}}
&#32;[[{{{2|SquidForce}}}{{#ifexist:{{{2|SquidForce}}}_(brand)|_(brand)}}|{{{2|SquidForce}}}]]}}}}</includeonly><noinclude>__NOTOC__
|amiibo
Displays an inline [[Brand]] icon with a text link.<br />If a page named "<name>_(brand)" exists, the link will point to that page, but will still only show <name> as the text.
|Amiibo
 
|Ammo Knights
{{t|Brand|game|name|size|icononly}}
|Custom
=== Parameters ===
|Nintendo
{|
|Sheldon's Picks
|- style="vertical-align: top;"
|"Splat"
|<code>game</code>||Unnamed||The game that the Brand belongs to. Must be one of the following:
|Splat=_(brand)
*<code>S</code> for Splatoon
|#default=}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly||
*<code>S2</code> for Splatoon 2
&#32;[[{{{2}}}{{#switch:{{{2}}}
|-
|amiibo
|<code>name</code>||Unnamed.||The English name of the Brand. Can be either a [[Brand|gear brand]] or a [[weapon brand]].
|Amiibo
|-
|Ammo Knights
|<code>size</code>||Unnamed, optional.||The size of the icon. The default size is 24.
|Custom
|-
|Nintendo
|<code>icononly</code>||Unnamed, Optional.||If present, the text label will be omitted.
|Sheldon's Picks
|}
|"Splat"
 
|Splat=_(brand)
=== Examples ===
|#default=}}|{{{2}}}]]}}}}</includeonly><noinclude>{{Brand/doc}}</noinclude>
==== Markup ====
<pre>
{{Brand|S|Krak-On}}<br />
{{Brand|S|Krak-On|48}}<br />
{{Brand|S2|Krak-On}}<br />
{{Brand|S|Krak-On|icononly}}<br />
{{Brand|S2|Krak-On|48|icononly}}<br />
{{Brand|S|amiibo}}<br />
{{Brand|S|Custom}}
</pre>
 
==== Output ====
{{Brand|S|Krak-On}}<br />
{{Brand|S|Krak-On|48}}<br />
{{Brand|S2|Krak-On}}<br />
{{Brand|S|Krak-On|icononly}}<br />
{{Brand|S2|Krak-On|48|icononly}}<br />
{{Brand|S|amiibo}}<br />
{{Brand|S|Custom}}
</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