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.
(ammo for reload%) |
(moved tags to below, added imgsize.) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
| {{#if: {{{manualimg|}}} | | {{#if: {{{manualimg|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| [[File: {{{image}}}| | | [[File: {{{image}}}|{{{imgsize|240}}}px|{{{weapon|{{{title|{{SUBPAGENAME}} }}} }}} |link=]] | ||
}} | }} | ||
| | | | ||
| Line 31: | Line 31: | ||
|header2 = Stats | |header2 = Stats | ||
|data5 = {{#if: {{{tier|}}} | '''Tier {{{tier|}}}''' }} | |||
<!--|label7 = Ammo Type | |||
|data7 = {{{ammotype|}}}--> | |||
|label8 = Cost | |||
|data8 = {{#if: {{{cost|{{Template:Infobox_Weapon/CostCalc|{{{tier|}}}}}}}} | {{{cost|{{Template:Infobox_Weapon/CostCalc|{{{tier|}}}}}}}} {{{costcurrency|points}}} }} | |||
|label9 = Damage | |||
|data9 = {{{damage|}}} | |||
| | <!--|label10 = | ||
|data10 = --> | |||
| | |label14 = Reload speed | ||
|data14 = {{#if: {{{reload|}}} | {{{reload|}}} s}} | |||
| | |label15 = Attack delay | ||
|data15 = {{#if: {{{attackdelay|}}} | {{{attackdelay|}}} s}} | |||
| | |label16 = Clip size | ||
|data16 = {{{clipsize|}}} | |||
| | |label17 = Min Spread | ||
|data17 = {{{minspread|}}} | |||
| | |label18 = Max Spread | ||
|data18 = {{{maxspread|}}} | |||
| | |label19 = Move Speed | ||
|data19 = {{{movespeed|}}} | |||
| | |label20 = Res Pierce | ||
|data20 = {{#if: {{{respierce|}}} | {{{respierce|}}}% }} | |||
| | |label21 = Overkill | ||
|data21 = {{#if: {{{overkill|}}} | {{{overkill|}}}% }} | |||
| | |label22 = Point Multi | ||
|data22 = {{#if: {{{pointmulti|}}} | {{{pointmulti|}}}% }} | |||
| | |label23 = Slow | ||
|data23 = {{#if: {{{pulseslow|{{{slow|}}}}}} | {{{pulseslow|{{{slow|}}}}}}%}} | |||
| | |label24 = Pierces | ||
|data24 = {{{nbpierces|}}} | |||
| | |label25 = Pierce Taper | ||
|data25 = {{{piercetaper|}}} | |||
| | |label26 = AoE Radius | ||
|data26 = {{{aoeradius|}}} | |||
| | |label27 = AoE Taper | ||
|data27 = {{{aoetaper|}}} | |||
| | |label28 = Headshot multiplier | ||
|data28 = {{#if: {{{headshotmulti|}}} | {{{headshotmulti|}}}x}} | |||
| | |label29 = Debuff Time | ||
|data29 = {{#if: {{{debufftime|}}} | {{{debufftime|}}} s}} | |||
| | |label30 = Buff Time | ||
|data30 = {{#if: {{{bufftime|}}} | {{{bufftime|}}} s}} | |||
| | |label31 = Healing | ||
|data31 = {{{healing|}}} | |||
|label32 = Ammo for Reload | |||
|data32 = {{#if: {{{ammoforreload|}}} | {{{ammoforreload|}}}%}} | |||
<!-- Melee exclusive stats --> | <!-- Melee exclusive stats --> | ||
| | |label33 = Range | ||
|data33 = {{{range|}}} | |||
| | |label34 = Knockback | ||
|data34 = {{{knockback|}}} | |||
| | |label35 = Stability | ||
|data35 = {{{stability|}}} | |||
| | |label36 = Stamina Use | ||
|data36 = {{#if: {{{staminause|}}} | {{{staminause|}}}%}} | |||
| | |label37 = Block | ||
|data37 = {{#if: {{{block|}}} | {{{block|}}}%}} | |||
| | |label38 = Impact Delay | ||
|data38 = {{{impactdelay|}}} | |||
| | |label39 = Size | ||
|data39 = {{{size|}}} | |||
| | |label40 = Abilities | ||
|data40 = {{{abilities|}}} | |||
|data49 = {{#if: {{{tags|}}} |<hr>|}} | |||
|data50 = {{Template:Infobox_Weapon/tags|{{{tags|}}}}} | |||
}}<includeonly>{{#if: {{{nocat|}}} || | }}<includeonly>{{#if: {{{nocat|}}} || | ||
{{Template:Infobox_Weapon/categorizeweapon|{{{tags|}}}|tier={{{tier|}}}|shop={{{shop|}}}|wptype={{#invoke:DetectWeaponType|GetWeaponType | {{Template:Infobox_Weapon/categorizeweapon|{{{tags|}}}|tier={{{tier|}}}|shop={{{shop|}}}|wptype={{#invoke:DetectWeaponType|GetWeaponType | ||
Latest revision as of 20:37, 24 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. |