Difference between revisions of "Template:Infobox Weapon"
Jump to navigation
Jump to search
⌸ — 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.
m |
m |
||
Line 91: | Line 91: | ||
|label32 = Abilities | |label32 = Abilities | ||
|data32 = {{{abilities|}}} | |data32 = {{{abilities|}}} | ||
}}<includeonly>{{#if: {{{nocat|}}} ||{{Template:Infobox_Weapon/ | }}<includeonly>{{#if: {{{nocat|}}} ||{{Template:Infobox_Weapon/categorizeweapon|{{{tags|}}}|tier={{{tier}}}|shop={{{shop|}}}|wptype={{{wptype|gun}}}}}}}</includeonly></onlyinclude><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> |
Revision as of 20:38, 22 December 2021
Stats |
---|
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 |
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.
Parameter | Result |
---|---|
fire | ![]() |
acid | ![]() |
serrate | ![]() |
frost | ![]() |
electro | ![]() |
sap | ![]() |
soften | ![]() |
bounty | ![]() |
hinder | ![]() |
spotted | ![]() |
Category Exclusive Matches Is automatically done with values calc. Can be disabled if nocat is trueIf 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)}} |
![]() ![]() |
{{Template:Infobox_Weapon/tags|(BOUNTYFIRE)}} |
|
{{Template:Infobox_Weapon/tags|(BOUNTYFIREfrosthinder)}} |
![]() ![]() |
{{Template:Infobox_Weapon/tags|(zselectrozsacidzs)}} |
![]() ![]() |
{{Template:Infobox_Weapon/tags|(acidacidacidshockfire)}} |
![]() ![]() ![]() |
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}} |
|
The above documentation is transcluded from Template:Infobox Weapon/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |