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.) |
(making into module invocation) Tag: Replaced |
||
(22 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Weapon|main}}</includeonly><noinclude> | ||
Template invocation of [[Module:Weapon]]. | |||
{{:Module:Weapon/doc}} | |||
</noinclude> | </noinclude> |
Latest revision as of 22:17, 12 September 2023
Template invocation of Module:Weapon.
Displays an inline weapon icon with a text link.
Usage
{{Weapon|<game>|<category>|<name>|<size>|<icononly>}}
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
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. |
var | Named | Optional | If present, the variant name will be appended to the file name, to choose between different variants of the same weapon's icons. |
Examples
Markup
* {{Weapon|S|Special|Bomb Rush}} * {{Weapon|S|Special|Bomb Rush (Seeker)|48}} * {{Weapon|S2|Main|Splattershot|icononly}} * {{Weapon|S2|Main|Splattershot|48|icononly}} * {{Weapon|S2|Main|?}} * {{Weapon|S2|Main|??}} * {{Weapon|S3|Main|?}} * {{Weapon|S3|Main|??}} * {{Weapon|S3|Main|Splattershot|icononly}} * {{Weapon|S3|Main|Splattershot|48|icononly}} * {{Weapon|S|Sub|Splat Bomb|icononly}} * {{Weapon|S2|Sub|Splat Bomb|icononly}} * {{Weapon|S3|Sub|Splat Bomb|icononly}} * {{Weapon|S|Special|Bomb Rush Splat Bomb|icononly}} * {{Weapon|S|Special|Killer Wail}} * {{Weapon|S3|Main|Hero Shot Replica|var=2D Current|icononly}}