Difference between revisions of "Template:Infobox weapon"

From Self-sufficiency
Jump to: navigation, search
(Optional field)
(Add class parameter)
Line 64: Line 64:
 
! colspan="2" style="background: lightsteelblue;" | Specifications
 
! colspan="2" style="background: lightsteelblue;" | Specifications
 
|-
 
|-
{{#if:{{{cartridge|}}}|
+
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{cartridge|}}}|
 
! style="text-align: left;" {{!}} Cartridge:
 
! style="text-align: left;" {{!}} Cartridge:
 
{{!}} {{{cartridge|}}}
 
{{!}} {{{cartridge|}}}
}}
+
}}}}
 
|-
 
|-
{{#if:{{{action|}}}|
+
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{action|}}}|
 
! style="text-align: left;" {{!}} Action:
 
! style="text-align: left;" {{!}} Action:
 
{{!}} {{{action|}}}
 
{{!}} {{{action|}}}
}}
+
}}}}
 
|-
 
|-
 
{{#if:{{{rate|}}}|
 
{{#if:{{{rate|}}}|
Line 79: Line 79:
 
}}
 
}}
 
|-
 
|-
{{#if:{{{velocity|}}}|
+
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{velocity|}}}|
 
! style="text-align: left;" {{!}} Muzzle velocity:
 
! style="text-align: left;" {{!}} Muzzle velocity:
 
{{!}} {{{velocity|}}}
 
{{!}} {{{velocity|}}}
}}
+
}}}}
 
|-
 
|-
 
{{#if:{{{range|}}}|
 
{{#if:{{{range|}}}|
Line 95: Line 95:
 
|-
 
|-
 
{{#if:{{{weight|}}}|
 
{{#if:{{{weight|}}}|
! style="text-align: left;" {{!}} Weight:
+
! style="text-align: left;" {{!}} Weight{{#ifeq:{{{class|}}}|Firearm| (unloaded)}}:
 
{{!}} {{{weight|}}}
 
{{!}} {{{weight|}}}
 
}}
 
}}
Line 104: Line 104:
 
}}
 
}}
 
|-
 
|-
{{#if:{{{barrel_length|}}}|
+
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{barrel_length|}}}|
 
! style="text-align: left;" {{!}} Barrel length:
 
! style="text-align: left;" {{!}} Barrel length:
 
{{!}} {{{barrel_length|}}}
 
{{!}} {{{barrel_length|}}}
}}
+
}}}}
 
|-
 
|-
{{#if:{{{feed|}}}|
+
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{feed|}}}|
 
! style="text-align: left;" {{!}} Feed system:
 
! style="text-align: left;" {{!}} Feed system:
 
{{!}} {{{feed|}}}
 
{{!}} {{{feed|}}}
}}
+
}}}}
 
|-
 
|-
{{#if:{{{sights|}}}|
+
{{#ifeq:{{{class|}}}|Firearm| {{#if:{{{sights|}}}|
 
! style="text-align: left;" {{!}} Sights:
 
! style="text-align: left;" {{!}} Sights:
 
{{!}} {{{sights|}}}
 
{{!}} {{{sights|}}}
}}
+
}}}}
 
|-
 
|-
 
|}<noinclude> {{clear}}
 
|}<noinclude> {{clear}}

Revision as of 05:07, 12 June 2006

Infobox weapon
Type:
Country of origin:
Service history
Production history
Specifications