Difference between revisions of "Template:Infobox Weapon/doc"
Jump to navigation
Jump to search
m (→Examples) |
(updated doc.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|- | |- | ||
| image | | image | ||
| Infobox Image, if manualimg is empty, the valid value is the filename, else, is the image (containing all parameters) <code><nowiki>[[File:Image|300px]]</nowiki></code> with full manipulation ; | | Infobox Image, if manualimg is empty, the valid value is the filename, else, is the image (containing all parameters) <code><nowiki>[[File:Image|300px|link=any|Description]]</nowiki></code> with full manipulation; | ||
|- | |||
| imgsize | |||
| Defines the image size | |||
|- | |||
| ammoforreload | |||
| How much ammo the weapon consumes per reload in %. | |||
|- | |- | ||
| abilties | | abilties | ||
Line 20: | Line 26: | ||
| manualimg | | manualimg | ||
| By default if empty, if not, it will allow the use of complete manipulation of image. (WIP) | | By default if empty, if not, it will allow the use of complete manipulation of image. (WIP) | ||
|- | |- | ||
| tier | | tier | ||
| Weapon tier, if "Cost" parameter is empty, it will get the default price in game <nowiki>(15|30|65|115|170|280)</nowiki> from tier 1 to 6 respectively | | ⌸ Weapon tier, if "Cost" parameter is empty, it will get the default price in game <nowiki>(15|30|65|115|170|280)</nowiki> from tier 1 to 6 respectively | ||
|- | |- | ||
| cost | | cost | ||
Line 34: | Line 37: | ||
|- | |- | ||
| reload | | reload | ||
| Weapon reload time in seconds. | | ⌸ 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 | | attackdelay | ||
Line 43: | Line 52: | ||
|- | |- | ||
| minspread | | minspread | ||
| Weapon minimum spread (minimum bullet spread cone). | | ⌸ Weapon minimum spread (minimum bullet spread cone). | ||
|- | |- | ||
| maxspread | | maxspread | ||
| Weapon maximum spread. (maximum bullet spread cone). | | ⌸ Weapon maximum spread. (maximum bullet spread cone). | ||
|- | |- | ||
| movespeed | | movespeed | ||
Line 85: | Line 94: | ||
|- | |- | ||
| healing | | healing | ||
| Heal Value | | ⌸ Heal Value | ||
|- | |- | ||
! colspan=2 | Melee Exclusive Stats | ! colspan=2 | Melee Exclusive Stats | ||
|- | |- | ||
| range | | range | ||
| How longer the melee attack can reach at target | | ⌸ How longer the melee attack can reach at target. | ||
|- | |- | ||
| knockback | | knockback | ||
| Knockback Damage (not hp damage) | | ⌸ Melee Knockback Damage (not hp damage) | ||
|- | |- | ||
| stability | | stability | ||
Line 105: | Line 114: | ||
|- | |- | ||
| impactdelay | | impactdelay | ||
| How longer the melee attack takes after impact (collision with solid or entities) in seconds. | | ⌸ How longer the melee attack takes after impact (collision with solid or entities) in seconds. | ||
|- | |- | ||
| size | | size | ||
| Melee attack size. | | Melee attack size. | ||
|} | |- | ||
| repair | |||
| ⌸ (WIP) How much repair the weapon will give. | |||
|- | |||
! colspan = 2 | 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 == | == Tags == | ||
Line 123: | Line 149: | ||
|- | |- | ||
|<pre>{{Infobox Weapon | |<pre>{{Infobox Weapon | ||
|weapon = 'Equinox' Shock Rifle | |||
|tags = electro | |tags = electro | ||
|image = Equinox main screen 1.png | |image = Equinox main screen 1.png | ||
|tier = 5 | |tier = 5 | ||
Line 137: | Line 163: | ||
|respierce = -20 | |respierce = -20 | ||
|aoeradius = 110 | |aoeradius = 110 | ||
|aoetaper = 83 | |aoetaper = 83 | ||
|nocat = 1 | |nocat = 1}} | ||
</pre> | |||
| {{Infobox Weapon | | {{Infobox Weapon | ||
|weapon = 'Equinox' Shock Rifle | |weapon = 'Equinox' Shock Rifle |
Latest revision as of 16:23, 25 December 2021
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.
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}} |
|