Template:Weapon: Difference between revisions

From Inkipedia, the Splatoon wiki
(Made the Special Weapon template behave for Bomb Launcher (unspecified) like it does for Bomb Rush (unspecified). Also fixed an issue where the Bomb Rush (unspecified) template put a different link on the image and text.)
m (Reverted edits by Inkrid (talk) to last revision by GuyPerfect)
Line 5: Line 5:
|Bomb Rush (Suction Bomb) = Bomb Rush Suction Bomb
|Bomb Rush (Suction Bomb) = Bomb Rush Suction Bomb
|Bomb Rush (Seeker)      = Bomb Rush Seeker
|Bomb Rush (Seeker)      = Bomb Rush Seeker
|Bomb Launcher            = Splat-Bomb Launcher
|?                        = Random
|?                        = Random
|#default                = {{{3}}}
|#default                = {{{3}}}
}}.png|{{#if:{{{4|}}}|{{#ifeq:{{{4}}}|icononly|24|{{{4}}}}}|24}}px|link={{#switch:{{{3}}}
}}.png|{{#if:{{{4|}}}|{{#ifeq:{{{4}}}|icononly|24|{{{4}}}}}|24}}px|link={{#switch:{{{3}}}
|Bomb Rush                = Bomb Rush Splat Bomb
|Bomb Rush (Burst Bomb)  = Bomb Rush Burst Bomb
|Bomb Rush (Burst Bomb)  = Bomb Rush Burst Bomb
|Bomb Rush (Splat Bomb)  = Bomb Rush Splat Bomb
|Bomb Rush (Splat Bomb)  = Bomb Rush Splat Bomb

Revision as of 22:21, 1 January 2018

Displays an inline weapon icon with a text link.

Parameters

{{Weapon|game|category|name|size|icononly}}

game Unnamed, required. The game that the ability belongs to. Must be one of the following:
  • S for Splatoon
  • S2 for Splatoon 2
category Unnamed, required. The type of weapon. Must be one of the following:
  • Main
  • Sub
  • Special
name Unnamed, required. The English name of the weapon.
  • For Bomb Rush, specify the bomb type in parenthesis like Bomb Rush (Burst Bomb).
  • For random weapons in Salmon Run, simply use a question mark: ?
size Unnamed, optional. The pixel width for the icon. The default size is 24.
icononly Unnamed, optional. If present, the text label will be omitted.

Markup

{{Weapon|S|Special|Bomb Rush}}<br />
{{Weapon|S|Special|Bomb Rush (Seeker)|48}}<br />
{{Weapon|S2|Main|Splattershot Jr.|icononly}}<br />
{{Weapon|S2|Main|Splattershot Jr.|48|icononly}}<br />
{{Weapon|S2|Main|?}}

Output

S Weapon Special Bomb Rush Splat Bomb.png Bomb Rush
S Weapon Special Bomb Rush Seeker.png Bomb Rush
S2 Weapon Main Splattershot Jr..png
S2 Weapon Main Splattershot Jr..png
Random Random