Module:Weapon/doc: Difference between revisions
From Inkipedia, the Splatoon wiki
(Added S3 and var parameter documentation) |
m (Removed duplicated word) |
||
Line 44: | Line 44: | ||
| Named | | Named | ||
| Optional | | Optional | ||
| If present, the variant name will be appended to the file name, to choose between different variants of the | | If present, the variant name will be appended to the file name, to choose between different variants of the same weapon's icons. | ||
|} | |} | ||
Revision as of 09:58, 8 September 2022
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 Jr.|icononly}} * {{Weapon|S2|Main|Splattershot Jr.|48|icononly}} * {{Weapon|S2|Main|?}} * {{Weapon|S2|Main|??}}