Difference between revisions of "Template:Weapon Infobox"

From Sunrust Wiki
Jump to navigation Jump to search
(Created page with "{{#invoke:Guninfobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Guninfobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Guninfobox|Category:Infobox templates|{{r...")
 
m (Engie moved page Template:Gun infobox to Template:Weapon Infobox: Infobox will be made to apply to all weapons)
(No difference)

Revision as of 14:29, 7 April 2020

Script error: No such module "Guninfobox".

50px Template documentation[view] [edit] [history] [purge]

Alternative version of Weapon Infobox, but using wikitext. It has the same parameters as the original, but contains more parameters and tags.

Usage

Parameter Description
title
weapon
Infobox Title; by default, is the sub page name.
image Infobox Image, if manualimg is empty, the valid value is the filename, else, is the image (containing all parameters) [[File:Image|300px|link=any|Description]] with full manipulation;
imgsize Defines the image size
ammoforreload How much ammo the weapon consumes per reload in %.
abilties Weapon abilities, use {{Gamekey|KEY}} to set which key has the special ability.
floatleft (WIP) Makes the infobox at left side.
manualimg By default if empty, if not, it will allow the use of complete manipulation of image. (WIP)
tier ⌸ Weapon tier, if "Cost" parameter is empty, it will get the default price in game (15|30|65|115|170|280) from tier 1 to 6 respectively
cost Weapon cost, if this parameter is empty, it will get the default price in game (15|30|65|115|170|280) from tier 1 to 6 respectively based on which tier is defined
damage Weapon damage
reload ⌸ Weapon reload time in seconds.
shop where the weapon is purchased, supplycrate/crate, banished or any(pointsshop or arsenal)
ammotype (WIP) What type of ammo is used.
attackdelay Weapon attack delay in seconds.
clipsize Weapon clip size.
minspread ⌸ Weapon minimum spread (minimum bullet spread cone).
maxspread ⌸ Weapon maximum spread. (maximum bullet spread cone).
movespeed Weapon movement speed.
respierce Weapon resistance pierce in %.
overkill Weapon overkill in %.
pointmulti Weapon point multiplier in %. 100% = default for every weapon.
pulseslow
slow
Weapon elemental slow in %.
nbpierces Gun bullet pierce. (For guns)
piercetaper Melee pierce taper. (For melee weapons)
aoeradius Radius of AoE Damage
aoetaper Area of Effect Taper
headshotmulti Headshot Damage Multiplier in numberx
debufftime Duration of Debuff in seconds.
bufftime Duration of Buff in seconds.
healing ⌸ Heal Value
Melee Exclusive Stats
range ⌸ How longer the melee attack can reach at target.
knockback ⌸ Melee Knockback Damage (not hp damage)
stability How much damage the melee weapon will absorb until the guard break, increases chances of parry.
staminause (OBSOLETE) How much stamina the melee weapon consumes, it is no longer used since that melee weapons don't consume stamina on melee swings.
block How much melee damage taken the melee weapon can absorb in % while blocking.
impactdelay ⌸ How longer the melee attack takes after impact (collision with solid or entities) in seconds.
size Melee attack size.
repair ⌸ (WIP) How much repair the weapon will give.
Others
nocat Disables all categorization included on this infobox.
elsewptype If all categorization check fails, it will send this value.
forcereturn Force the categorization to return this value. Check Module:DetectWeaponType/doc for more info.
tags See #Tags
⌸ — Auto-categorized value, if included, will categorize the weapon with the included value, but will be ignored if the value (nocat) is filled or forcereturn is set.

Tags

This template is used for implementing which "Innate" the weapon has.

Usage

{{Template:Infobox_Weapon/tags|(TEXT)}}

(TEXT) = It creates an image if the text is in argument 1.

Available matches
Parameter Result
fire Innate Fire
acid Innate Acid
serrate Inflicts Serrate
frost Innate Ice
electro Innate Electro
sap Innate Sap
soften Innate Soften
bounty Innate Bounty
hinder Innate Hinder
spotted Innate Spotted
Category Exclusive Matches
Is automatically done with values calc.
Can be disabled if nocat is true
If nocat is false, it will require these tags
Parameter Description
melee Defines the weapon as melee
gun Defines the weapon as gun
medtool Defines the weapon as medical tool, e.g.: Medical Kit, Critical Care
heal Defines the weapon as weapon with healing implemented.
consumable Defines the weapon as consumable, e.g.: Grenades.

Note: This template has case-sensitive arguments, i.e., putting in capital letters will not work.

Example

Wikitext Result
{{Template:Infobox_Weapon/tags|(bountyfire)}}
Innate FireInnate Bounty
{{Template:Infobox_Weapon/tags|(BOUNTYFIRE)}}
{{Template:Infobox_Weapon/tags|(BOUNTYFIREfrosthinder)}}
Innate IceInnate Hinder
{{Template:Infobox_Weapon/tags|(zselectrozsacidzs)}}
Innate ElectroInnate Acid
{{Template:Infobox_Weapon/tags|(acidacidacidshockfire)}}
Innate FireInnate ElectroInnate Acid

Examples

Wikitext What is rendered
{{Infobox Weapon
|weapon = 'Equinox' Shock Rifle
|tags = electro
|image = Equinox main screen 1.png
|tier = 5
|cost = 170
|damage = 53.5
|reload = 3.7
|attackdelay = 0.61
|clipsize = 25
|minspread = 0.3
|maxspread = 0.3
|movespeed = 218
|respierce = -20
|aoeradius = 110
|aoetaper = 83
|nocat = 1}}
'Equinox' Shock Rifle
'Equinox' Shock Rifle
Stats
Tier 5
Cost170 points
Damage53.5
Reload speed3.7 s
Attack delay0.61 s
Clip size25
Min Spread0.3
Max Spread0.3
Move Speed218
Res Pierce-20%
AoE Radius110
AoE Taper83

Innate Electro