Template:Brand: Difference between revisions
From Inkipedia, the Splatoon wiki
m (Fixed for realzies now) |
m (Also Splatoon 2) |
||
Line 2: | Line 2: | ||
|S | |S | ||
|S2={{{1|S}}} | |S2={{{1|S}}} | ||
|#default=S}}_Brand_{{{2|{{{1|SquidForce}}}}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2|{{{1|SquidForce}}}}}}|link={{{2|{{{1|SquidForce}}}}}}{{#ifexist:{{{2|{{{1|SquidForce}}}}}}_(brand)|_(brand)}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly|| | |#default={{#ifeq:{{{game}}}|Splatoon 2|S2|S}}}}_Brand_{{{2|{{{1|SquidForce}}}}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|{{{2|{{{1|SquidForce}}}}}}|link={{{2|{{{1|SquidForce}}}}}}{{#ifexist:{{{2|{{{1|SquidForce}}}}}}_(brand)|_(brand)}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly|| | ||
 [[{{{2|{{{1|SquidForce}}}}}}{{#ifexist:{{{2|{{{1|SquidForce}}}}}}_(brand)|_(brand)}}|{{{2|{{{1|SquidForce}}}}}}]]}}}}<!--helper code-->{{#if:{{{game|}}}|[[Category:Pages that use the old format of the Brand template]]}}{{#if:{{{icononly|}}}|[[Category:Pages that use the old format of the Brand template]]}}{{#ifeq:{{{1|}}}|S||{{#ifeq:{{{1|}}}|S2||[[Category:Pages that use the old format of the Brand template]]}}}}<!--/helper code--></includeonly><noinclude>__NOTOC__ |  [[{{{2|{{{1|SquidForce}}}}}}{{#ifexist:{{{2|{{{1|SquidForce}}}}}}_(brand)|_(brand)}}|{{{2|{{{1|SquidForce}}}}}}]]}}}}<!--helper code-->{{#if:{{{game|}}}|[[Category:Pages that use the old format of the Brand template]]}}{{#if:{{{icononly|}}}|[[Category:Pages that use the old format of the Brand template]]}}{{#ifeq:{{{1|}}}|S||{{#ifeq:{{{1|}}}|S2||[[Category:Pages that use the old format of the Brand template]]}}}}<!--/helper code--></includeonly><noinclude>__NOTOC__ | ||
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. | 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. |
Revision as of 10:33, 14 February 2018
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.
{{Brand|<game>|<name>|<size>|<icononly>}}
Parameters
game |
Unnamed | The game that the Brand belongs to. Must be one of the following:
|
name |
Unnamed. | 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}}<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}}