Template:Weapon: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (Adding support for random Salmon Run weapons) |
(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.) |
||
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 (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 16:20, 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:
|
category |
Unnamed, required. | The type of weapon. Must be one of the following:
|
name |
Unnamed, required. | The English name of the weapon.
|
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|?}}