Template:Gun

<!-READ THIS BEFORE EDITING--

How Does This Template Work
This template uses variables to fill-in weapon data based on a weapon id. When a weapon id is entered, this template will define each variable with the data for the corresponding weapon. For information about the extensions used, please visit:

heroesandgenerals.gamepedia.com/Special:Version

Variables
Below is a list of what each variable stands for.

type = Type of Weapon faction = Faction of Origin ammoID = ID of the default ammo used for weapon stats damageNear = Damage (Near) damageFar = Damage (Far) rateofFire = Rate of Fire nearRange = Near Range effectiveRange = Effective Range conefire = Conefire magazineSize = Magazine Size onePouch = Total Ammo with One Ammo Pouch twoPouch = Total Ammo with Two Ammo Pouches reload = Time for Reload equipmentPoints = Equipment Point Cost class = Class Restriction startingWeapon = Starting Weapon ribbon1 = Ribbon Requirement requirement1 = Ribbon Level Requirement ribbon2 = Ribbon Requirement requirement2 = Ribbon Level Requirement ribbon3 = Ribbon Requirement requirement3 = Ribbon Level Requirement rank1= Rank Requirement rank2= Rank Requirement camouflage = Camouflages Available

How to Edit Weapon Data
There are individual sections for each weapon, and they are labeled accordingly. To change the data for a weapon, just edit the variable definition statement in the section for that weapon. For example:

This rate of fire is incorrect, so to correct it, just change the number after the < | > to the actual price:

This works the same for non-numerical data:

Obviously this is not the correct information, so just change the data after the < | > to the correct information:

When correcting numerical data, please use only numbers from in-game, and no estimations based on graphs (such as damage, damage far, range near, etc.). Also, for non-numerical data, please use only the terms listed in the non-numerical terms section (below).

Non-Numerical Terms
When editing data that is not just numbers, please use only the following terms for the corresponding variables. Doing this will avoid errors in links to other pages and create a sense of uniformity.

Type

Sub-Machine Guns Machine Gun Bolt-Action Rifle Semi-Automatic Rifle Handgun Close Combat Weapon Assault Rifle

Faction

Class Restriction

Infantry Recon Tank Crewman Fighter Pilot Paratrooper General

Starting Weapon

If startingWeapon is set to equal anything, the infobox will display "Yes". If a weapon is not a starting weapon, there will not be a variable definition statement for startingWeapon in its section. If a new starting weapon is added, or a weapon is changed to be a starting weapon, please just copy a variable definition line for startingWeapon from a previously existing starting weapon section (such as the M1 Garand).

Ribbon Requirement

For ribbon requirements, please follow this layout:

-  Replace < - > with the corresponding information.

Ribbon Image IDs look like this: CR_16

Ribbon Level Requirement

For ribbon level requirements, please follow these layouts:

*()*-  Grade *()*-  Grade *()*-  Grade Replace < - > with the corresponding information.


 * IF REQUIRED* Examples of a class restriction on an unlock would be the M2A3. For American Recons, it is unlocked at Recon Ribbon 5th Grade, but for American Infantry or German/Soviet Recons, it is unlocked at Explosives Ribbon 11th Grade. If a class restriction is otherwise stated, restricting the weapon to only one class, the class restriction on the unlock does not need to be included.

Choose which layout to use based on what the faction of the soldier that would be unlocking the weapon at the ribbon rank you are specifying.

Camouflages Available

If camouflage is set to equal anything, the template will automatically include Template:Camo Table on the page. If a weapon does not have camouflages available, there will not be a variable definition statement for camouflage in its section. If camouflages are added for a weapon that previously had no camouflages available, please just copy a variable definition line for camouflage from a previously existing starting weapon section (such as the M1 Garand).

============================ IMPORTANT INFORMATION ============================

When editing variable statements, be EXTREMELY careful to only change the data; if anything else is changed, the template WILL NOT WORK for that weapon.

Please add only data the has been 100% CONFIRMED; estimations based on graphs do not count as confirmed, as most graphs are too inaccurate to get a reliable reading. Please also refrain from using outdated information.

If you are having trouble finding a section for a specific weapon, try pressing < Ctrl + F > on Windows, Linux, or Chrome OS, or if you are using Mac OS, press < Command + F > (On Mac, the Command key looks like this: ⌘). Once you press this, a search bar will open up in the upper right of your screen. Type the name of the weapon you want to find, and it will find it. In order for this to work, you must type in the same weapon name that has been used in this template. A list of those names follows:

M1 Garand Gewehr 43 SVT-40 M1 Carbine M1A1 Carbine Rifle M1903 Karabiner 98 Kurz Mosin Nagant M1891/30 M3 Grease Gun Maschinenpistole 34 PPD-40 Thompson M1A1 Maschinenpistole 40 PPSh-41 PPS-43 M1918 Automatic Rifle Maschinengewehr 34 Degtyarev DP 28 M1919 MG Maschinengewehr 42 Johnson M1941 LMG M1/M2 Carbine Sturmgewehr 44 Fallschirmjägergewehr 42 AVS-36 1903 Pocket Hammerless Model 1934 Korovin TK 1911 Pistol C96 Tula Tokarev 33 M1917 Revolver P08 Parabellum P38 Parabellum Nagant M1895 PTRD 1941 PTRS 1941 Panzerbüchse 39 Maschinengewehr 13 Degtyarev DT-29 Maxim-Tokarev MT

!!!==- DATABASE STARTS HERE -==!!! --> {|
 * - class="hproduct"

! class="fn" colspan="2" | ! style="padding-right: 1em;" | Type ! style="padding-right: 1em;" | Faction
 * colspan="2" |
 * colspan="2" |

! colspan="2" | Statistics





















! colspan="2" | Ammunition











! colspan="2" | Specifications





! style="padding-right: 1em;" | Maintenance Load ! style="padding-right: 1em;" | Cost Per Shot ! style="padding-right: 1em;" | Faction Cost ! style="padding-right: 1em;" | Captured Cost
 * s
 * HnGCurrencySymbol credits.png
 * HnGCurrencySymbol credits.png HnGCurrencySymbol gold.png
 * HnGCurrencySymbol credits.png HnGCurrencySymbol gold.png
















 * }