Difference between revisions of "Template:Infobox weapon"

From Self-sufficiency
Jump to: navigation, search
(Fix code)
(Different conditional)
Line 64: Line 64:
 
! colspan="2" style="background: lightsteelblue;" | Specifications
 
! colspan="2" style="background: lightsteelblue;" | Specifications
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{cartridge|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{cartridge|}}}|
 
! style="text-align: left;" {{!}} Cartridge:
 
! style="text-align: left;" {{!}} Cartridge:
 
{{!}} {{{cartridge|}}}
 
{{!}} {{{cartridge|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{action|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{action|}}}|
 
! style="text-align: left;" {{!}} Action:
 
! style="text-align: left;" {{!}} Action:
 
{{!}} {{{action|}}}
 
{{!}} {{{action|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{rate|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{rate|}}}|
 
! style="text-align: left;" {{!}} Rate of fire:
 
! style="text-align: left;" {{!}} Rate of fire:
 
{{!}} {{{rate|}}}
 
{{!}} {{{rate|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{velocity|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{velocity|}}}|
 
! style="text-align: left;" {{!}} Muzzle velocity:
 
! style="text-align: left;" {{!}} Muzzle velocity:
 
{{!}} {{{velocity|}}}
 
{{!}} {{{velocity|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{range|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{range|}}}|
 
! style="text-align: left;" {{!}} Effective range:
 
! style="text-align: left;" {{!}} Effective range:
 
{{!}} {{{range|}}}
 
{{!}} {{{range|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{max_range|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{max_range|}}}|
 
! style="text-align: left;" {{!}} Maximum range:
 
! style="text-align: left;" {{!}} Maximum range:
 
{{!}} {{{max_range|}}}
 
{{!}} {{{max_range|}}}
Line 105: Line 105:
 
|-
 
|-
 
{{#if:{{{part_length|}}}|
 
{{#if:{{{part_length|}}}|
! style="text-align: left;" {{!}} Barrel length:
+
! style="text-align: left;" {{!}} {{#if:{{{isRanged|}}}|Barrel|{{#if:{{{isBladed|}}}|Blade|Head}}}} length:
 
{{!}} {{{part_length|}}}
 
{{!}} {{{part_length|}}}
 
}}
 
}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{feed|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{feed|}}}|
 
! style="text-align: left;" {{!}} Feed system:
 
! style="text-align: left;" {{!}} Feed system:
 
{{!}} {{{feed|}}}
 
{{!}} {{{feed|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#ifeq:{{{class|}}}|Ranged| {{#if:{{{sights|}}}|
+
{{#if:{{{isRanged|}}}| {{#if:{{{sights|}}}|
 
! style="text-align: left;" {{!}} Sights:
 
! style="text-align: left;" {{!}} Sights:
 
{{!}} {{{sights|}}}
 
{{!}} {{{sights|}}}

Revision as of 17:50, 13 June 2006

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

Usage

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