Module:Weapon/doc: Difference between revisions

From Inkipedia, the Splatoon wiki
m (→‎Examples: S3 wildcards (same appearance, different link))
m (Undo revision 606914 by Wmyttmlimvty (talk) - Last version was cleaner without changing visual appereance. This should be good now.)
Tag: Undo
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACE}}|Module|For use with [[Template:Weapon]]. [[Category:Modules]]|}}
{{Clr}}</includeonly> <!-- When modifying the above code, check out how it affects this page plus both the Module and Template pages. -->
Displays an inline [[weapon]] icon with a text link.
Displays an inline [[weapon]] icon with a text link.
__NOTOC__
__NOTOC__
Line 28: Line 30:
| Required
| Required
| The English name of the weapon.
| The English name of the weapon.
* For Bomb Rush, specify the bomb type in parenthesis like <code>Bomb Rush (Burst Bomb)</code>.
* For Bomb Rush, specify the bomb type after "Bomb Rush", with or without parentheses like <code>Bomb Rush Burst Bomb</code> or <code>Bomb Rush (Burst Bomb)</code>.  
* For random weapons in [[Salmon Run]], simply use a question mark: ? for the green random weapon and ?? for the yellow random weapon.
* For random weapons in [[Salmon Run]], simply use a question mark: ? for the green random weapon and ?? for the yellow random weapon.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
Line 63: Line 65:
* {{Weapon|S2|Sub|Splat Bomb|icononly}}
* {{Weapon|S2|Sub|Splat Bomb|icononly}}
* {{Weapon|S3|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}}
</pre>
</pre>
=== Output ===
=== Output ===
* {{Weapon|S|Special|Bomb Rush}}
* {{Weapon|S|Special|Bomb Rush}}
Line 77: Line 83:
* {{Weapon|S|Sub|Splat Bomb|icononly}}
* {{Weapon|S|Sub|Splat Bomb|icononly}}
* {{Weapon|S2|Sub|Splat Bomb|icononly}}
* {{Weapon|S2|Sub|Splat Bomb|icononly}}
* {{Weapon|S3|Sub|Splat Bomb|icononly}}<includeonly>
* {{Weapon|S3|Sub|Splat Bomb|icononly}}
[[Category:Templates]]</includeonly><noinclude>
* {{Weapon|S|Special|Bomb Rush Splat Bomb|icononly}}
[[Category:Template documentation]]</noinclude>
* {{Weapon|S|Special|Killer Wail}}
* {{Weapon|S3|Main|Slosher Deco}}
* {{Weapon|S3|Main|Hero Shot Replica|var=2D Current|icononly}}
<noinclude>
[[Category:Module documentation]]
</noinclude>

Latest revision as of 20:35, 26 June 2024

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:
  • S for Splatoon
  • S2 for Splatoon 2
  • S3 for Splatoon 3
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 after "Bomb Rush", with or without parentheses like Bomb Rush Burst Bomb or Bomb Rush (Burst Bomb).
  • For random weapons in Salmon Run, simply use a question mark: ? for the green random weapon and ?? for the yellow random 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}}

Output