Difference between revisions of "Template:Infobox weapon"

From Self-sufficiency
Jump to: navigation, search
(Add usage notes)
(Update fields)
Line 10: Line 10:
 
| {{{type|}}}
 
| {{{type|}}}
 
|-
 
|-
! style="text-align: left;" | Country of origin:
+
! style="text-align: left;" | Place of origin:
| {{{country|}}}
+
| {{{origin|}}}
 
|-
 
|-
 
! colspan="2" style="background: lightsteelblue;" | Service history
 
! colspan="2" style="background: lightsteelblue;" | Service history
Line 35: Line 35:
 
! style="text-align: left;" {{!}} Designer:
 
! style="text-align: left;" {{!}} Designer:
 
{{!}} {{{designer|}}}
 
{{!}} {{{designer|}}}
}}
 
|-
 
{{#if:{{{manufacturer|}}}|
 
! style="text-align: left;" {{!}} Manufacturer:
 
{{!}} {{{manufacturer|}}}
 
 
}}
 
}}
 
|-
 
|-
Line 45: Line 40:
 
! style="text-align: left;" {{!}} Date of design:
 
! style="text-align: left;" {{!}} Date of design:
 
{{!}} {{{design_date|}}}
 
{{!}} {{{design_date|}}}
 +
}}
 +
|-
 +
{{#if:{{{manufacturer|}}}|
 +
! style="text-align: left;" {{!}} Manufacturer:
 +
{{!}} {{{manufacturer|}}}
 
}}
 
}}
 
|-
 
|-
Line 50: Line 50:
 
! style="text-align: left;" {{!}} Dates of production:
 
! style="text-align: left;" {{!}} Dates of production:
 
{{!}} {{{production_date|}}}
 
{{!}} {{{production_date|}}}
}}
 
|-
 
{{#if:{{{variants|}}}|
 
! style="text-align: left;" {{!}} Variants:
 
{{!}} {{{variants|}}}
 
 
}}
 
}}
 
|-
 
|-
Line 60: Line 55:
 
! style="text-align: left;" {{!}} Number built:
 
! style="text-align: left;" {{!}} Number built:
 
{{!}} {{{number|}}}
 
{{!}} {{{number|}}}
 +
}}
 +
|-
 +
{{#if:{{{variants|}}}|
 +
! style="text-align: left;" {{!}} Variants:
 +
{{!}} {{{variants|}}}
 
}}
 
}}
 
|-
 
|-
 
! colspan="2" style="background: lightsteelblue;" | Specifications
 
! colspan="2" style="background: lightsteelblue;" | Specifications
 
|-
 
|-
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{cartridge|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{cartridge|}}}|
 
! style="text-align: left;" {{!}} Cartridge:
 
! style="text-align: left;" {{!}} Cartridge:
 
{{!}} {{{cartridge|}}}
 
{{!}} {{{cartridge|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{action|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{action|}}}|
 
! style="text-align: left;" {{!}} Action:
 
! style="text-align: left;" {{!}} Action:
 
{{!}} {{{action|}}}
 
{{!}} {{{action|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{rate|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{rate|}}}|
 
! style="text-align: left;" {{!}} Rate of fire:
 
! style="text-align: left;" {{!}} Rate of fire:
 
{{!}} {{{rate|}}}
 
{{!}} {{{rate|}}}
}}
+
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{velocity|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{velocity|}}}|
 
! style="text-align: left;" {{!}} Muzzle velocity:
 
! style="text-align: left;" {{!}} Muzzle velocity:
 
{{!}} {{{velocity|}}}
 
{{!}} {{{velocity|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{range|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{range|}}}|
 
! style="text-align: left;" {{!}} Effective range:
 
! style="text-align: left;" {{!}} Effective range:
 
{{!}} {{{range|}}}
 
{{!}} {{{range|}}}
}}
+
}}}}
 
|-
 
|-
{{#if:{{{max_range|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{max_range|}}}|
 
! style="text-align: left;" {{!}} Maximum range:
 
! style="text-align: left;" {{!}} Maximum range:
 
{{!}} {{{max_range|}}}
 
{{!}} {{{max_range|}}}
}}
+
}}}}
 
|-
 
|-
 
{{#if:{{{weight|}}}|
 
{{#if:{{{weight|}}}|
! style="text-align: left;" {{!}} Weight{{#ifeq:{{{class|}}}|Firearm| (unloaded)}}:
+
! style="text-align: left;" {{!}} Weight:
 
{{!}} {{{weight|}}}
 
{{!}} {{{weight|}}}
 
}}
 
}}
Line 104: Line 104:
 
}}
 
}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{barrel_length|}}}|
+
{{#if:{{{part_length|}}}|
 
! style="text-align: left;" {{!}} Barrel length:
 
! style="text-align: left;" {{!}} Barrel length:
{{!}} {{{barrel_length|}}}
+
{{!}} {{{part_length|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{feed|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{feed|}}}|
 
! style="text-align: left;" {{!}} Feed system:
 
! style="text-align: left;" {{!}} Feed system:
 
{{!}} {{{feed|}}}
 
{{!}} {{{feed|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{sights|}}}|
+
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{sights|}}}|
 
! style="text-align: left;" {{!}} Sights:
 
! style="text-align: left;" {{!}} Sights:
 
{{!}} {{{sights|}}}
 
{{!}} {{{sights|}}}

Revision as of 17:39, 13 June 2006

}}
Infobox weapon
Type:
Place of origin:
Service history
Production history
Specifications

Usage

{{Wikipedia:WikiProject Military history/Weapon infobox}}