Template:Infobox/Weapon: Difference between revisions

From Inkipedia, the Splatoon wiki
(Maybe we should add default ink consumption to the infobox. It is kind of important.)
m (Variants)
Line 1: Line 1:
<includeonly>{{Infobox/WeaponEx
<includeonly>{{User:FunPL/Sandbox/Weapon/2
|color        = {{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|color        = {{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|game        = {{{game|}}}
|game        = {{{game|}}}
Line 30: Line 30:
|handling    = {{{handling|}}}
|handling    = {{{handling|}}}
|future      = {{{future|}}}
|future      = {{{future|}}}
|alt1        = {{{alt1|}}}
|alt2        = {{{alt2|}}}
|alt3        = {{{alt3|}}}
|alt4        = {{{alt4|}}}
|alt5        = {{{alt5|}}}
}}</includeonly><noinclude>{{Infobox/WeaponDoc}}</noinclude>
}}</includeonly><noinclude>{{Infobox/WeaponDoc}}</noinclude>

Revision as of 17:52, 14 November 2019

Displays an infobox for a weapon. This template is a proxy that pre-evaluates parameters for Infobox/WeaponEx.

Parameters

game The game the weapon belongs to. Must be one of the following:
  • Splatoon
  • Splatoon 2
  • Splatoon 3
color Optional. An RGB triplet to use as the base color for formatting. If absent, the color is determined based on the value of game.
style Optional. A list of CSS values to apply to the outermost container of the infobox.
name Optional. The English name of the weapon. If absent, the page name will be used.
image Optional. An override image to use. If absent, the image filename will be determined automatically.
category The weapon's category. Must be one of the following:
  • Main
  • Sub
  • Special
class The weapon's class. Must be one of the following:
  • Blaster
  • Brella
  • Charger
  • Dualies
  • Roller
  • Shooter
  • Slosher
  • Splatling
sub Optional. The English name of the weapon's sub weapon.
special Optional. The English name of the weapon's special weapon.
cost Optional. The numeric amount of Cash required to purchase the weapon from Ammo Knights.
amiibo Optional. The amiibo that unlocks the weapon. Must be one of the following:
  • Inkling Boy Inkling Boy
  • Inkling Boy 2 Inkling Boy 2
  • Inkling Girl Inkling Girl
  • Inkling Girl 2 Inkling Girl 2
  • Inkling Squid Inkling Squid
  • Inkling Squid 2 Inkling Squid 2
scroll Optional. The English name of the boss that awards the Sunken Scroll required to purchase the weapon. Must be one of the following:
  • Octostomp
  • Octonozzle
  • Octowhirl
  • Octomaw
  • Octobot King
availability Optional. The special means by which the weapon can be obtained. Must be one of the following:
  • S2 Icon Octo Canyon.png Octo Canyon
  • Octo Expansion Icon.png Octo Expansion
  • S Icon Octo Valley.png Octo Valley
  • S2 Icon Grizzco.png Salmon Run
level Optional. The numeric level at which the weapon can be purchased.
weight Optional. The weapon speed type ("weight") of the weapon.
base Optional. The base damage of the weapon. Use <br> tags when multiple values are relevant.
duration Optional. The base duration of the weapon. Use <br> tags when multiple values are relevant.
usage Optional. The ink consumption of the weapon in percentage.
points Optional. The number of points required to charge the Special gauge.
addedin Optional The version in which the weapon was added to the game.
depletion Optional. The amount of the Special gauge that will be depleted when splatted.
range Optional. The visual amount displayed in the in-game Range meter.
damage Optional. The visual amount displayed in the in-game Damage meter.
impact Optional. The visual amount displayed in the in-game Impact meter.
fire_rate Optional. The visual amount displayed in the in-game Fire Rate meter.
charge_speed Optional. The visual amount displayed in the in-game Charge Speed meter.
ink_speed Optional. The visual amount displayed in the in-game Ink Speed meter.
mobility Optional. The visual amount displayed in the in-game Mobility meter.
durability Optional. The visual amount displayed in the in-game Durability meter.
handling Optional. The visual amount displayed in the in-game Handling meter.
future Optional. If present and true, will add the "Future" category instead of the sub / special categories to avoid showing non-final data in these categories.
alt1 Optional. If present, will add the "Variants" section and show the specified weapon.
alt2 Optional. (alt1 required) If present, will show the specified weapon in the "Variants" section.
alt3 Optional. (alt1-alt2 required) If present, will show the specified weapon in the "Variants" section.
alt4 Optional. (alt1-alt3 required) If present, will show the specified weapon in the "Variants" section.
alt5 Optional. (alt1-alt4 required) If present, will show the specified weapon in the "Variants" section.

Examples

Example 1

User:FunPL/Sandbox/Weapon/2

{{Infobox/Weapon
|game      = Splatoon
|name      = Dual Squelcher
|category  = Main
|class     = Shooter
|sub       = Splat Bomb
|special   = Echolocator
|level     = 16
|cost      = 9,800
|base      = 28
|ink       = 1.2%
|depletion = 40%
|range     = 68
|damage    = 27
|fire_rate = 55
|alt1      = Custom Dual Squelcher
|suppress category = true
}}

Example 2

User:FunPL/Sandbox/Weapon/2

{{Infobox/Weapon
|game         = Splatoon 2
|name         = Classic Squiffer
|category     = Main
|class        = Charger
|sub          = Point Sensor
|special      = Ink Armor
|level        = 12
|cost         = 8,900
|base         = 40–80 (Partial charge)<br>140 (Full charge)
|ink          = 1.9% (No charge)<br>10.5% (Full charge)
|points       = 170
|range        = 75
|charge_speed = 70
|mobility     = 60
|alt1         = New Squiffer
|alt2         = Fresh Squiffer
|suppress category = true
}}

Example 3

User:FunPL/Sandbox/Weapon/2

{{Infobox/Weapon
|game         = Splatoon 3
|name         = Tri-Stringer
|3d-image-1   = S3 Weapon Main Tri-Stringer
|category     = Main
|size         = 256px
|class        = Stringer
|sub          = Toxic Mist
|special      = Killer Wail 5.1
|level        = 4
|base         = 30–35(x3) (Partial charge)<br>35(x3) (Full charge)<br>30 (Projectile explosion)<br>40-100(x3) ([[File:S3 Icon Mr Grizz.png|24px|link=Salmon Run (series)]] [[Salmon Run Next Wave|SRNW]] Partial Charge)<br>150(x3) ([[File:S3 Icon Mr Grizz.png|24px|link=Salmon Run (series)]] [[Salmon Run Next Wave|SRNW]] Full charge)<br>40 ([[File:S3 Icon Mr Grizz.png|24px|link=Salmon Run (series)]] [[Salmon Run Next Wave|SRNW]] Projectile explosion)
|points       = 190
|range        = 88
|charge_speed = 40
|mobility     = 40
|alt1         = Inkline Tri-Stringer
|alt2         = Order Stringer Replica
|introduced   = [[Drizzle Season 2022]] ({{Ver|S3|1.1.0}})
|suppress category = true
}}