Sign in to follow this  
Africandave

Behind the Scenes: Gun Templates used on wiki pages

Recommended Posts

Africandave    177

Just wanted to feature a template made by Nemotoad that has made it easier to keep weapon stats etc in line with info extracted from ReDemons spreadsheet.

{{#switch: {{{id|}}}|40=

{{#vardefine: t | [[semi automatic rifles|Semi-Automatic Rifle]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 49}}

{{#vardefine: df | 34}}

{{#vardefine: rof | 240}}

{{#vardefine: nr | 65}}

{{#vardefine: er | 150}}

{{#vardefine: mag | 8}}

{{#vardefine: rld | 2.8}}

{{#vardefine: eqp | 5}}

{{#vardefine: sw | Yes}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Paratrooper_soldier|Paratrooper]], [[Recon_soldier|Recon]]}}

{{#vardefine: c | 1}} |44=

{{#vardefine: t | [[semi automatic rifles|Semi-Automatic Rifle]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 47}}

{{#vardefine: df | 34}}

{{#vardefine: rof | 225}}

{{#vardefine: nr | 65}}

{{#vardefine: er | 160}}

{{#vardefine: mag | 10}}

{{#vardefine: rld | 3.1}}

{{#vardefine: eqp | 5}}

{{#vardefine: sw | Yes}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Paratrooper_soldier|Paratrooper]], [[Recon_soldier|Recon]]}}

{{#vardefine: c | 1}} |14=

{{#vardefine: t | [[semi automatic rifles|Semi-Automatic Rifle]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 47}}

{{#vardefine: df | 37}}

{{#vardefine: rof | 257}}

{{#vardefine: nr | 70}}

{{#vardefine: er | 95}}

{{#vardefine: mag | 10}}

{{#vardefine: rld | 2.9}}

{{#vardefine: eqp | 5}}

{{#vardefine: sw | Yes}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Paratrooper_soldier|Paratrooper]], [[Recon_soldier|Recon]]}}

{{#vardefine: c | 1}} |16=

{{#vardefine: t | [[semi automatic rifles|Semi-Automatic Rifle]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 29}}

{{#vardefine: df | 15}}

{{#vardefine: rof | 400}}

{{#vardefine: nr | 35}}

{{#vardefine: er | 80}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 3.1}}

{{#vardefine: eqp | 5}}

{{#vardefine: cls | [[Paratrooper_soldier|Paratrooper]]}}

{{#vardefine: rib1 | [[File]] [[Parachute Ribbon|Parachute]]}}

{{#vardefine: req1 | [[File]]- 6th Grade}} |56=

{{#vardefine: t | [[semi automatic rifles|Semi-Automatic Rifle]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 29}}

{{#vardefine: df | 15}}

{{#vardefine: rof | 400}}

{{#vardefine: nr | 35}}

{{#vardefine: er | 80}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 3.1}}

{{#vardefine: eqp | 4}}

{{#vardefine: cls | [[Paratrooper_soldier|Paratrooper]], [[Tank Crew|Tank Crewman]]}}

{{#vardefine: rib1 | [[File]] [[Parachute Ribbon|Parachute]]}}

{{#vardefine: req1 | [[File]]- 6th Grade}}

{{#vardefine: rib2 | [[File]] [[Armor Damage Ribbon|Armor Damage]]}}

{{#vardefine: req2 | [[File]]- 9th Grade}}

{{#vardefine: c | 1}} |46=

{{#vardefine: t | [[bolt-Action rifles|Bolt-Action Rifle]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 56}}

{{#vardefine: df | 41}}

{{#vardefine: rof | 35}}

{{#vardefine: nr | 175}}

{{#vardefine: er | 620}}

{{#vardefine: mag | 5}}

{{#vardefine: rld | 3.4}}

{{#vardefine: eqp | 5}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Recon_soldier|Recon]]}}

{{#vardefine: c | 1}} |43=

{{#vardefine: t | [[bolt-Action rifles|Bolt-Action Rifle]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 54}}

{{#vardefine: df | 41}}

{{#vardefine: rof | 34}}

{{#vardefine: nr | 180}}

{{#vardefine: er | 660}}

{{#vardefine: mag | 5}}

{{#vardefine: rld | 3.7}}

{{#vardefine: eqp | 5}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Recon_soldier|Recon]]}}

{{#vardefine: c | 1}} |12=

{{#vardefine: t | [[bolt-Action rifles|Bolt-Action Rifle]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 52}}

{{#vardefine: df | 45}}

{{#vardefine: rof | 34}}

{{#vardefine: nr | 160}}

{{#vardefine: er | 450}}

{{#vardefine: mag | 5}}

{{#vardefine: rld | 3.6}}

{{#vardefine: eqp | 5}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Recon_soldier|Recon]]}}

{{#vardefine: c | 1}} |5=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 29}}

{{#vardefine: df | 16}}

{{#vardefine: rof | 480}}

{{#vardefine: nr | 17}}

{{#vardefine: er | 57}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 3.1}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 5th Grade}}

{{#vardefine: rib2 | [[File]] [[Armor Damage Ribbon|Armor Damage]]}}

{{#vardefine: req2 | [[File]]- 5th Grade}}

{{#vardefine: c | 1}} |6=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 28}}

{{#vardefine: df | 14}}

{{#vardefine: rof | 480}}

{{#vardefine: nr | 24}}

{{#vardefine: er | 55}}

{{#vardefine: mag | 20}}

{{#vardefine: rld | 2.9}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 5th Grade}}

{{#vardefine: rib2 | [[File]] [[Armor Damage Ribbon|Armor Damage]]}}

{{#vardefine: req2 | [[File]]- 5th Grade}}

{{#vardefine: c | 1}} |24=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 25}}

{{#vardefine: df | 8}}

{{#vardefine: rof | 480}}

{{#vardefine: nr | 19}}

{{#vardefine: er | 55}}

{{#vardefine: mag | 71}}

{{#vardefine: rld | 4.2}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 5th Grade}}

{{#vardefine: rib2 | [[File]] [[Armor Damage Ribbon|Armor Damage]]}}

{{#vardefine: req2 | [[File]]- 5th Grade}}

{{#vardefine: c | 1}} |32=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 28}}

{{#vardefine: df | 17}}

{{#vardefine: rof | 600}}

{{#vardefine: nr | 19}}

{{#vardefine: er | 59}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 2.9}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[‎SMG Assault Ribbon|SMG Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}}

{{#vardefine: c | 1}} |31=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 30}}

{{#vardefine: df | 15}}

{{#vardefine: rof | 553}}

{{#vardefine: nr | 22}}

{{#vardefine: er | 67}}

{{#vardefine: mag | 32}}

{{#vardefine: rld | 3.2}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[‎SMG Assault Ribbon|SMG Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}}

{{#vardefine: c | 1}} |33=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 26}}

{{#vardefine: df | 9}}

{{#vardefine: rof | 654}}

{{#vardefine: nr | 17}}

{{#vardefine: er | 60}}

{{#vardefine: mag | 71}}

{{#vardefine: rld | 4.3}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[‎SMG Assault Ribbon|SMG Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}}

{{#vardefine: c | 1}} |57=

{{#vardefine: t | [[sub-Machine Gun]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 29}}

{{#vardefine: df | 15}}

{{#vardefine: rof | 553}}

{{#vardefine: nr | 19}}

{{#vardefine: er | 64}}

{{#vardefine: mag | 35}}

{{#vardefine: rld | 3.0}}

{{#vardefine: eqp | 6}}

{{#vardefine: rib1 | [[File]] [[sMG Assault Ribbon|SMG Assault]]}}

{{#vardefine: req1 | [[File]]- 11th Grade}}

{{#vardefine: c | 1}} |45=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 37}}

{{#vardefine: df | 22}}

{{#vardefine: rof | 480}}

{{#vardefine: nr | 65}}

{{#vardefine: er | 445}}

{{#vardefine: mag | 20}}

{{#vardefine: rld | 4.1}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}} |63=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 34}}

{{#vardefine: df | 26}}

{{#vardefine: rof | 553}}

{{#vardefine: nr | 60}}

{{#vardefine: er | 500}}

{{#vardefine: mag | 50}}

{{#vardefine: rld | 5.9}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | | [[File]]- 9th Grade}} |9=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 35}}

{{#vardefine: df | 28}}

{{#vardefine: rof | 553}}

{{#vardefine: nr | 60}}

{{#vardefine: er | 225}}

{{#vardefine: mag | 47}}

{{#vardefine: rld | 5.7}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}} |62=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 41}}

{{#vardefine: df | 24}}

{{#vardefine: rof | 600}}

{{#vardefine: nr | 65}}

{{#vardefine: er | 375}}

{{#vardefine: mag | 50}}

{{#vardefine: rld | 6.2}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[LMG Assault Ribbon|LMG Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}} |61=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 34}}

{{#vardefine: df | 28}}

{{#vardefine: rof | 900}}

{{#vardefine: nr | 55}}

{{#vardefine: er | 435}}

{{#vardefine: mag | 50}}

{{#vardefine: rld | 6.4}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[LMG Assault Ribbon|LMG Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}} |66=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 39}}

{{#vardefine: df | 28}}

{{#vardefine: rof | 600}}

{{#vardefine: nr | 50}}

{{#vardefine: er | 120}}

{{#vardefine: mag | 20}}

{{#vardefine: rld | 4.3}}

{{#vardefine: eqp | 6}}

{{#vardefine: cls | [[infantryman|Infantry]], [[Paratrooper_soldier|Paratrooper]]}}

{{#vardefine: rib1 | [[File]] [[LMG Assault Ribbon|LMG Assault]]}}

{{#vardefine: req1 | [[File]]- 12th Grade}}

{{#vardefine: rib2 | [[File]] [[Parachute Ribbon|Parachute]]}}

{{#vardefine: req2 | [[File]]- 9th Grade}} |50=

{{#vardefine: t | [[Assault Rifles|Assault Rifle]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 29}}

{{#vardefine: df | 15}}

{{#vardefine: rof | 720}}

{{#vardefine: nr | 35}}

{{#vardefine: er | 80}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 3.0}}

{{#vardefine: eqp | 6}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 12th Grade}} |49=

{{#vardefine: t | [[Assault Rifles|Assault Rifle]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 34}}

{{#vardefine: df | 23}}

{{#vardefine: rof | 514}}

{{#vardefine: nr | 35}}

{{#vardefine: er | 140}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 3.2}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 12th Grade}}

{{#vardefine: c | 1}} |47=

{{#vardefine: t | [[Machineguns|Machine Gun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 33}}

{{#vardefine: df | 22}}

{{#vardefine: rof | 514}}

{{#vardefine: nr | 50}}

{{#vardefine: er | 125}}

{{#vardefine: mag | 30}}

{{#vardefine: rld | 3.3}}

{{#vardefine: eqp | 6}}

{{#vardefine: cls | [[Paratrooper_soldier|Paratrooper]]}}

{{#vardefine: rib1 | [[File]] [[Parachute Ribbon|Parachute]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}} |54=

{{#vardefine: t | [[Assault Rifles|Assault Rifle]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 37}}

{{#vardefine: df | 30}}

{{#vardefine: rof | 600}}

{{#vardefine: nr | 65}}

{{#vardefine: er | 95}}

{{#vardefine: mag | 15}}

{{#vardefine: rld | 3.5}}

{{#vardefine: eqp | 7}}

{{#vardefine: cls | [[infantryman|Infantry]]}}

{{#vardefine: rib1 | [[File]] [[infantry Assault Ribbon|Infantry Assault]]}}

{{#vardefine: req1 | [[File]]- 12th Grade}}

{{#vardefine: c | 1}} |20=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 33}}

{{#vardefine: df | 18}}

{{#vardefine: rof | 266}}

{{#vardefine: nr | 20}}

{{#vardefine: er | 65}}

{{#vardefine: mag | 8}}

{{#vardefine: rld | 2.9}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Tactical Ribbon|Tactical]]}}

{{#vardefine: req1 | [[File]]- 5th Grade}} |21=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 32}}

{{#vardefine: df | 18}}

{{#vardefine: rof | 257}}

{{#vardefine: nr | 22}}

{{#vardefine: er | 68}}

{{#vardefine: mag | 10}}

{{#vardefine: rld | 2.7}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Tactical Ribbon|Tactical]]}}

{{#vardefine: req1 | [[File]]- 5th Grade}} |22=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 29}}

{{#vardefine: df | 11}}

{{#vardefine: rof | 276}}

{{#vardefine: nr | 20}}

{{#vardefine: er | 65}}

{{#vardefine: mag | 8}}

{{#vardefine: rld | 3.0}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Tactical Ribbon|Tactical]]}}

{{#vardefine: req1 | [[File]]- 5th Grade}}

{{#vardefine: c | 1}} |8=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{TemplateUSA}}}}

{{#vardefine: d | 39}}

{{#vardefine: df | 20}}

{{#vardefine: rof | 232}}

{{#vardefine: nr | 18}}

{{#vardefine: er | 55}}

{{#vardefine: mag | 6}}

{{#vardefine: rld | 3.4}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Handgun_Assault_Ribbon|Handgun Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}}

{{#vardefine: c | 1}} |7=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 35}}

{{#vardefine: df | 19}}

{{#vardefine: rof | 300}}

{{#vardefine: nr | 22}}

{{#vardefine: er | 61}}

{{#vardefine: mag | 8}}

{{#vardefine: rld | 2.6}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Handgun_Assault_Ribbon|Handgun Assault]]}}

{{#vardefine: req1 | [[File]]- 8th Grade}}

{{#vardefine: c | 1}} |58=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{TemplateSoviet}}}}

{{#vardefine: d | 37}}

{{#vardefine: df | 23}}

{{#vardefine: rof | 240}}

{{#vardefine: nr | 22}}

{{#vardefine: er | 65}}

{{#vardefine: mag | 7}}

{{#vardefine: rld | 5.5}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Handgun_Assault_Ribbon|Handgun Assault]]}}

{{#vardefine: req1 | [[File]]- 9th Grade}} |67=

{{#vardefine: t | [[Handguns|Handgun]]}}

{{#vardefine: f | {{Germany}}}}

{{#vardefine: d | 36}}

{{#vardefine: df | 19}}

{{#vardefine: rof | 300}}

{{#vardefine: nr | 22}}

{{#vardefine: er | 71}}

{{#vardefine: mag | 8}}

{{#vardefine: rld | 2.7}}

{{#vardefine: eqp | 2}}

{{#vardefine: rib1 | [[File]] [[Handgun_Assault_Ribbon|Handgun Assault]]}}

{{#vardefine: req1 | [[File]]- 12th Grade}} |

}}{| {{WPMILHIST Infobox style|main_box}}

|- class="hproduct"

! class="fn" colspan="2" {{WPMILHIST Infobox style|header_bar}} | {{{name|{{PAGENAME}}}}}

|-

{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} [[File]]
{{{caption|}}}

|-

! style="padding-right: 1em;" {{!}} Type

{{!}} {{#var: t}}

|-

! style="padding-right: 1em;" {{!}} Faction

{{!}} {{#var: f}}

|-

! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Statistics

|-

! style="padding-right: 1em;" {{!}} Damage

{{!}} {{#var: d}}

|-

{{#switch: {{#varexists: df}}|1=

! style="padding-right: 1em;" {{!}} Damage Far

{{!}} {{#var: df}}

}}

|-

{{#switch: {{#varexists: rof}}|1=

! style="padding-right: 1em;" {{!}} Rate of Fire

{{!}} {{#var: rof}} rpm

}}

|-

{{#switch: {{#varexists: nr}}|1=

! style="padding-right: 1em;" {{!}} Near Range

{{!}} {{#var: nr}} m

}}

|-

{{#switch: {{#varexists: er}}|1=

! style="padding-right: 1em;" {{!}} Effective Range

{{!}} {{#var: er}} m

}}

|-

! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Ammunition

|-

{{#switch: {{#varexists: mag}}|1=

! style="padding-right: 1em;" {{!}} Magazine Size

{{!}} {{#var: mag}}

}}

|-

{{#switch: {{#varexists: pch}}|1=

! style="padding-right: 1em;" {{!}} 1 Ammo Pouch

{{!}} {{#var: pch}}

}}

|-

{{#switch: {{#varexists: 2pch}}|1=

! style="padding-right: 1em;" {{!}} 2 Ammo Pouches

{{!}} {{#var: 2pch}}

}}

|-

{{#switch: {{#varexists: rld}}|1=

! style="padding-right: 1em;" {{!}} Reload Time

{{!}} {{#var: rld}} s

}}

|-

! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Specifications {{#if:{{{spec_label|}}}|({{{spec_label}}})}}

|-

{{#switch: {{#varexists: sw}}|1=

! style="padding-right: 1em;" {{!}} Starting Weapon

{{!}} {{#var: sw}}

}}

|-

{{#switch: {{#varexists: cls}}|1=

! style="padding-right: 1em;" {{!}} Class Restriction

{{!}} {{#var: cls}}

}}

|-

{{#switch: {{#varexists: eqp}}|1=

! style="padding-right: 1em;" {{!}} Equipment Points

{{!}} [[File]]

}}

|-

! style="padding-right: 1em;" {{!}} Credits Cost

{{!}} {{PriceCreditsWeapon|id={{{id|}}}}} [[File]]

|-

! style="padding-right: 1em;" {{!}} Gold Cost

{{!}} {{PriceGoldWeapon|id={{{id|}}}}} [[File]]

|-

{{#switch: {{#varexists: rib1}}|1=

! style="padding-right: 1em;" {{!}} Ribbon Required

{{!}} {{#var: rib1}}

}}

|-

{{#switch: {{#varexists: req1}}|1=

! style="padding-right: 1em;" {{!}} Requirement

{{!}} {{#var: req1}}

}}

|-

{{#switch: {{#varexists: rib2}}|1=

! style="padding-right: 1em;" {{!}} Ribbon Required:

{{!}} {{#var: rib2}}

}}

|-

{{#switch: {{#varexists: req2}}|1=

! style="padding-right: 1em;" {{!}} Requirement:

{{!}} {{#var: req2}}

}}

|-

{{#switch: {{#varexists: rib3}}|1=

! style="padding-right: 1em;" {{!}} Ribbon Required:

{{!}} {{#var: rib3}}

}}

|-

{{#switch: {{#varexists: req3}}|1=

! style="padding-right: 1em;" {{!}} Requirement:

{{!}} {{#var: req3}}

}}

|}

= Description =

{{WeaponDescriptions

|id={{{id|}}}

}}

{{#if: {{{History|}}} |

= History =

{{{History|}}}

}}

{{#if: {{{Gameplay|}}} |

= Gameplay =

{{{Gameplay|}}}

}}

{{#if: {{#varexists: c}}|

= Camouflage =

{{Camo Weapon

|id={{{id|}}}

}}

}}

= Specialist Ribbon =

{{WeaponSpecialists

|id={{{id|}}}

}}

{{Documentation}}

Share this post


Link to post
Share on other sites
Nemotoad    18

Also, I am planning to (eventually) make a page on how to edit variable-based templates.

Share this post


Link to post
Share on other sites
Africandave    177

Well this is just a text dump - you can use the visual editor on the wiki itself.

This makes it incredibly easy to weapons up to date and more importantly safe from random sometimes malicious edits.

So adding a big template to a page is as easy as {{gun |ID=5 }}

[spoiler={{gun |ID=5 }}]zk6fb1x.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this