Template:WeaponData: Difference between revisions
Jump to navigation
Jump to search
m (Changed some font sizes to make it look nicer) |
m (Added documentation) |
||
Line 1: | Line 1: | ||
<noinclude>This template is | <noinclude>This template is used to display weapon data on Agent pages. | ||
Note that some agents have special stats that require unique WeaponData entries. Those can be found [[Template:WeaponData#Agent-Specific Variants|below]]. | |||
- | |||
- | == Parameters == | ||
- Larcin | {| class="wikitable" style="width:100%;" | ||
- Sasori | ! Parameter Name || Parameter Type || Required? || Parameter Description | ||
- | |- | ||
| <code>name</code> || string || ✓ || The weapon's name as it appears in-game. | |||
|- | |||
| <code>subtitle></code> || string || ✗ || The subtitle that appears below the weapon's name as it appears in-game. | |||
|- | |||
| <code>icon</code> || filename || ✓ || The file name for the weapon's icon. "File:" should be excluded (e.g. "Weapon Chavez Sentinel Icon.png" as opposed to "File:Weapon Chavez Sentinel Icon.png"). | |||
|- | |||
| <code>desc</code> || string || ✗ || The description that appears below the weapon's icon. | |||
|- | |||
| damage || number || ✓ || The amount of damage this weapon does per-bullet as a decimal. Multi-shot weapons like Cadence should be formatted as damage x number of shots, e.g. 10.0 (x2). | |||
|- | |||
| headshot || number || ✗ || The damage multiplier for a weapon headshot as a decimal. Do not include the x. | |||
|- | |||
| mag_size || number || ✓ || The number of shots the weapon has in its magazine. | |||
|- | |||
| starting_ammo || number || ✓ || The amount of ammo the Agent starts with when using this weapon. | |||
|- | |||
| reload_speed || number || ✓ || The number of seconds it takes to reload this weapon, with a decimal. | |||
|- | |||
| rof || number || ✓ || The number of shots this weapon can fire per second, with a decimal. | |||
|} | |||
== Agent-Specific Variants == | |||
{| class="wikitable" style="width"100%;" | |||
! Agent | |||
! Template | |||
|- | |||
| [[Hans]] || [[Template:WeaponData/Hans]] | |||
|- | |||
| [[Larcin]] || [[Template:WeaponData/Larcin]] | |||
|- | |||
| [[Octo]] || [[Template:WeaponData/Octo]] | |||
|- | |||
| [[Sasori]] || [[Template:WeaponData/Sasori]] | |||
|- | |||
| [[Yu-Mi]] || [[Template:WeaponData/Yumi]] | |||
|} | |||
Additionally, one has been made for generic shotguns (like Red's): [[Template:WeaponData/Shotgun]] | |||
[[Category:WeaponData Template]] | |||
</noinclude><!-- | |||
--><includeonly><table class="wikitable" style="width:100%;"> | --><includeonly><table class="wikitable" style="width:100%;"> | ||
<tr><th colspan="5"><span style="font-size: 24px;">{{{name}}}</span></th></tr> | <tr><th colspan="5"><span style="font-size: 24px;">{{{name}}}</span></th></tr> |
Revision as of 21:15, 8 November 2023
This template is used to display weapon data on Agent pages.
Note that some agents have special stats that require unique WeaponData entries. Those can be found below.
Parameters
Parameter Name | Parameter Type | Required? | Parameter Description |
---|---|---|---|
name |
string | ✓ | The weapon's name as it appears in-game. |
subtitle> |
string | ✗ | The subtitle that appears below the weapon's name as it appears in-game. |
icon |
filename | ✓ | The file name for the weapon's icon. "File:" should be excluded (e.g. "Weapon Chavez Sentinel Icon.png" as opposed to "File:Weapon Chavez Sentinel Icon.png"). |
desc |
string | ✗ | The description that appears below the weapon's icon. |
damage | number | ✓ | The amount of damage this weapon does per-bullet as a decimal. Multi-shot weapons like Cadence should be formatted as damage x number of shots, e.g. 10.0 (x2). |
headshot | number | ✗ | The damage multiplier for a weapon headshot as a decimal. Do not include the x. |
mag_size | number | ✓ | The number of shots the weapon has in its magazine. |
starting_ammo | number | ✓ | The amount of ammo the Agent starts with when using this weapon. |
reload_speed | number | ✓ | The number of seconds it takes to reload this weapon, with a decimal. |
rof | number | ✓ | The number of shots this weapon can fire per second, with a decimal. |
Agent-Specific Variants
Agent | Template |
---|---|
Hans | Template:WeaponData/Hans |
Larcin | Template:WeaponData/Larcin |
Octo | Template:WeaponData/Octo |
Sasori | Template:WeaponData/Sasori |
Yu-Mi | Template:WeaponData/Yumi |
Additionally, one has been made for generic shotguns (like Red's): Template:WeaponData/Shotgun