Difference between revisions of "Template:Infobox weapon"

From Self-sufficiency
Jump to: navigation, search
(Simplify line code)
m (131 revisions from wikipedia:Template:Infobox weapon)
 
(66 intermediate revisions by 34 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{| {{WPMILHIST Infobox style|main_box}}
{| class="infobox" style="width: 315px; border-spacing: 2px; font-size: 95%; text-align: left;"
+
|- class="hproduct"
|-  
+
<!--------------------------Name, image, type, origin------------------------>
! colspan="2" style="background: lightsteelblue; text-align: center;" | {{{name|{{PAGENAME}}}}}
+
! class="fn" colspan="2" {{WPMILHIST Infobox style|header_bar}} | {{{name|{{PAGENAME}}}}}
 
|-
 
|-
 
{{#if:{{{image|}}} |
 
{{#if:{{{image|}}} |
{{!}} colspan="2" style="text-align: center; font-size: 90%; border-bottom: 1px solid #aaa;" {{!}} {{{image|}}}<br/>{{{caption|}}}
+
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image|}}}<br/>{{{caption|}}}
 
}}
 
}}
 
|-
 
|-
! style="padding-right: 1em;" | Type
+
{{#if:{{{type|}}} |
| {{{type|}}}
+
! style="padding-right: 1em;" {{!}} Type
 +
{{!}} {{{type|}}}
 +
}}
 
|-
 
|-
! style="padding-right: 1em;" | Place&nbsp;of&nbsp;origin
+
{{#if:{{{origin|}}} |
| {{{origin|}}}
+
! style="padding-right: 1em;" {{!}} Place&nbsp;of&nbsp;origin
 +
{{!}} {{{origin|}}}
 +
}}
 
|-
 
|-
 +
<!------------------------------Service history------------------------------>
 
{{#if:{{{service|}}}{{{used_by|}}}{{{wars|}}} |
 
{{#if:{{{service|}}}{{{used_by|}}}{{{wars|}}} |
! colspan="2" style="background: lightsteelblue; text-align: center;" {{!}} Service history
+
! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Service history
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{service|}}} |
 
{{#if:{{{service|}}} |
! style="padding-right: 1em;" {{!}} In service
+
! style="padding-right: 1em;" {{!}} In&nbsp;service
 
{{!}} {{{service|}}}
 
{{!}} {{{service|}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{used_by|}}} |
 
{{#if:{{{used_by|}}} |
! style="padding-right: 1em;" {{!}} Used by
+
! style="padding-right: 1em;" {{!}} Used&nbsp;by
 
{{!}} {{{used_by|}}}
 
{{!}} {{{used_by|}}}
 
}}
 
}}
Line 33: Line 38:
 
}}
 
}}
 
|-
 
|-
 +
<!----------------------------Production history----------------------------->
 
{{#if:{{{designer|}}}{{{design_date|}}}{{{manufacturer|}}}{{{production_date|}}}{{{number|}}}{{{variants|}}} |
 
{{#if:{{{designer|}}}{{{design_date|}}}{{{manufacturer|}}}{{{production_date|}}}{{{number|}}}{{{variants|}}} |
! colspan="2" style="background: lightsteelblue; text-align: center;" {{!}} Production history
+
! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Production history
 
}}
 
}}
 
|-
 
|-
Line 50: Line 56:
 
! style="padding-right: 1em;" {{!}} Manufacturer
 
! style="padding-right: 1em;" {{!}} Manufacturer
 
{{!}} {{{manufacturer|}}}
 
{{!}} {{{manufacturer|}}}
 +
}}
 +
|-
 +
{{#if:{{{unit_cost|}}} |
 +
! style="padding-right: 1em;" {{!}} Unit&nbsp;cost
 +
{{!}} {{{unit_cost|}}}
 
}}
 
}}
 
|-
 
|-
Line 67: Line 78:
 
}}
 
}}
 
|-
 
|-
{{#if:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{crew|}}}{{{cartridge|}}}{{{caliber|}}}{{{action|}}}{{{rate|}}}{{{velocity|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{sights|}}}{{{breech|}}}{{{recoil|}}}{{{carriage|}}}{{{elevation|}}}{{{traverse|}}}{{{blade_type|}}}{{{hilt_type|}}}{{{sheath_type|}}}{{{head_type|}}}{{{haft_type|}}}{{{armour|}}}{{{engine|}}}{{{engine_power|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}{{{guidance|}}}{{{filling|}}}{{{filling_weight|}}}{{{detonation|}}}{{{yield|}}}|
+
<!------------------------------Specifications------------------------------->
! colspan="2" style="background: lightsteelblue; text-align: center;" {{!}} Specifications
+
{{#if:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{boost|}}}{{{steering|}}}{{{transport|}}}{{{wingspan|}}}{{{crew|}}}{{{passengers|}}}{{{cartridge|}}}{{{cartridge_weight|}}}{{{caliber|}}}{{{action|}}}{{{rate|}}}{{{velocity|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{sights|}}}{{{breech|}}}{{{recoil|}}}{{{carriage|}}}{{{elevation|}}}{{{traverse|}}}{{{blade_type|}}}{{{hilt_type|}}}{{{sheath_type|}}}{{{head_type|}}}{{{haft_type|}}}{{{armour|}}}{{{engine|}}}{{{engine_power|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}{{{guidance|}}}{{{ceiling|}}}{{{altitude|}}}{{{depth|}}}{{{launch_platform|}}}{{{accuracy|}}}{{{propellant|}}}{{{filling|}}}{{{filling_weight|}}}{{{detonation|}}}{{{yield|}}}|
 +
! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Specifications {{#if:{{{spec_label|}}}|({{{spec_label}}})}}
 
}}
 
}}
 
|-
 
|-
Line 106: Line 118:
 
}}
 
}}
 
|-
 
|-
{{#if:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{crew|}}}|
+
{{#if:{{{passengers|}}} |
{{#if:{{{cartridge|}}}{{{caliber|}}}{{{action|}}}{{{rate|}}}{{{velocity|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{sights|}}}{{{breech|}}}{{{recoil|}}}{{{carriage|}}}{{{elevation|}}}{{{traverse|}}}{{{blade_type|}}}{{{hilt_type|}}}{{{sheath_type|}}}{{{head_type|}}}{{{haft_type|}}}{{{armour|}}}{{{engine|}}}{{{engine_power|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}{{{guidance|}}}{{{filling|}}}{{{filling_weight|}}}{{{detonation|}}}{{{yield|}}}|
+
! style="padding-right: 1em;" {{!}} Passengers
 +
{{!}} {{{passengers|}}}
 +
}}
 +
|-
 +
{{#if:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{crew|}}}{{{passegers|}}}|
 +
{{#if:{{{cartridge|}}}{{{cartridge_weight|}}}{{{caliber|}}}{{{barrels|}}}{{{action|}}}{{{rate|}}}{{{velocity|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{sights|}}}{{{breech|}}}{{{recoil|}}}{{{carriage|}}}{{{elevation|}}}{{{traverse|}}}{{{blade_type|}}}{{{hilt_type|}}}{{{sheath_type|}}}{{{head_type|}}}{{{haft_type|}}}{{{filling|}}}{{{filling_weight|}}}{{{detonation|}}}{{{yield|}}}|
 
{{!}} colspan="2" {{!}} <hr/>
 
{{!}} colspan="2" {{!}} <hr/>
 
}}}}
 
}}}}
Line 114: Line 131:
 
! style="padding-right: 1em;" {{!}} {{#if:{{{is_artillery|}}} | [[Shell (projectile)|Shell]]|[[Cartridge (firearms)|Cartridge]]}}
 
! style="padding-right: 1em;" {{!}} {{#if:{{{is_artillery|}}} | [[Shell (projectile)|Shell]]|[[Cartridge (firearms)|Cartridge]]}}
 
{{!}} {{{cartridge|}}}
 
{{!}} {{{cartridge|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_ranged|}}}{{{is_artillery|}}} | {{#if:{{{cartridge_weight|}}} |
 +
! style="padding-right: 1em;" {{!}} {{#if:{{{is_artillery|}}} | [[Shell (projectile)|Shell]]|[[Cartridge (firearms)|Cartridge]]}} weight
 +
{{!}} {{{cartridge_weight|}}}
 
}}}}
 
}}}}
 
|-
 
|-
Line 119: Line 141:
 
! style="padding-right: 1em;" {{!}} {{#if:{{{is_UK|}}} | [[Caliber|Calibre]] | [[Caliber]]}}
 
! style="padding-right: 1em;" {{!}} {{#if:{{{is_UK|}}} | [[Caliber|Calibre]] | [[Caliber]]}}
 
{{!}} {{{caliber|}}}
 
{{!}} {{{caliber|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_ranged|}}}{{{is_artillery|}}} | {{#if:{{{barrels|}}} |
 +
! style="padding-right: 1em;" {{!}} Barrels
 +
{{!}} {{{barrels|}}}
 
}}}}
 
}}}}
 
|-
 
|-
Line 127: Line 154:
 
|-
 
|-
 
{{#if:{{{is_artillery|}}} | {{#if:{{{breech|}}} |
 
{{#if:{{{is_artillery|}}} | {{#if:{{{breech|}}} |
! style="padding-right: 1em;" {{!}} [[Breech]]
+
! style="padding-right: 1em;" {{!}} [[Breech-loading weapon|Breech]]
 
{{!}} {{{breech|}}}
 
{{!}} {{{breech|}}}
 
}}}}
 
}}}}
Line 147: Line 174:
 
|-
 
|-
 
{{#if:{{{is_artillery|}}} | {{#if:{{{traverse|}}} |
 
{{#if:{{{is_artillery|}}} | {{#if:{{{traverse|}}} |
! style="padding-right: 1em;" {{!}} Traverse:
+
! style="padding-right: 1em;" {{!}} Traverse
 
{{!}} {{{traverse|}}}
 
{{!}} {{{traverse|}}}
 
}}}}
 
}}}}
Line 192: Line 219:
 
|-
 
|-
 
{{#if:{{{is_bladed|}}} | {{#if:{{{sheath_type|}}} |
 
{{#if:{{{is_bladed|}}} | {{#if:{{{sheath_type|}}} |
! style="padding-right: 1em;" {{!}} [[Scabbard]]/[[sheath]]
+
! style="padding-right: 1em;" {{!}} [[Scabbard]]/[[Scabbard|sheath]]
 
{{!}} {{{sheath_type|}}}
 
{{!}} {{{sheath_type|}}}
 
}}}}
 
}}}}
Line 204: Line 231:
 
! style="padding-right: 1em;" {{!}} [[wikt:haft|Haft]]&nbsp;type
 
! style="padding-right: 1em;" {{!}} [[wikt:haft|Haft]]&nbsp;type
 
{{!}} {{{haft_type|}}}
 
{{!}} {{{haft_type|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{filling|}}} |
 +
! style="padding-right: 1em;" {{!}} {{#if:{{{is_missile|}}}|Warhead|Filling}}
 +
{{!}} {{{filling|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{filling_weight|}}} |
 +
! style="padding-right: 1em;" {{!}} {{#if:{{{is_missile|}}}|Warhead|Filling}}&nbsp;weight
 +
{{!}} {{{filling_weight|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{detonation|}}} |
 +
! style="padding-right: 1em; line-height: 11pt;" {{!}} Detonation<br/>mechanism
 +
{{!}} {{{detonation|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{yield|}}} |
 +
! style="padding-right: 1em;" {{!}} Blast&nbsp;yield
 +
{{!}} {{{yield|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{armour|}}}{{{wingspan|}}}{{{boost|}}}{{{steering|}}}{{{transport|}}}{{{engine|}}}{{{engine_power|}}}{{{transmission|}}}{{{payload_capacity|}}}{{{fuel_capacity|}}}{{{clearance|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}{{{guidance|}}}{{{ceiling|}}}{{{altitude|}}}{{{launch_platform|}}}{{{accuracy|}}}{{{propellant|}}}|
 +
{{!}} colspan="2" {{!}} <hr/>
 
}}}}
 
}}}}
 
|-
 
|-
 
{{#if:{{{is_vehicle|}}} | {{#if:{{{armour|}}} |
 
{{#if:{{{is_vehicle|}}} | {{#if:{{{armour|}}} |
! style="padding-right: 1em;" {{!}} [[Vehicle armour|Armour]]
+
! style="padding-right: 1em;" {{!}} [[Vehicle armour|{{#if:{{{is_UK|}}}|Armour|Armor}}]]
 
{{!}} {{{armour|}}}
 
{{!}} {{{armour|}}}
 
}}}}
 
}}}}
 
|-
 
|-
 
{{#if:{{{is_vehicle|}}} | {{#if:{{{primary_armament|}}} |
 
{{#if:{{{is_vehicle|}}} | {{#if:{{{primary_armament|}}} |
! style="padding-right: 1em;" {{!}} Primary<br>armament
+
! style="padding-right: 1em; line-height: 11pt;" {{!}} Main<br/>armament
 
{{!}} {{{primary_armament|}}}
 
{{!}} {{{primary_armament|}}}
 
}}}}
 
}}}}
 
|-
 
|-
 
{{#if:{{{is_vehicle|}}} | {{#if:{{{secondary_armament|}}} |
 
{{#if:{{{is_vehicle|}}} | {{#if:{{{secondary_armament|}}} |
! style="padding-right: 1em;" {{!}} Secondary<br>armament
+
! style="padding-right: 1em; line-height: 11pt;" {{!}} Secondary<br/>armament
 
{{!}} {{{secondary_armament|}}}
 
{{!}} {{{secondary_armament|}}}
 
}}}}
 
}}}}
Line 229: Line 280:
 
! style="padding-right: 1em;" {{!}} Power/weight
 
! style="padding-right: 1em;" {{!}} Power/weight
 
{{!}} {{{pw_ratio|}}}
 
{{!}} {{{pw_ratio|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_vehicle|}}} | {{#if:{{{payload_capacity|}}} |
 +
! style="padding-right: 1em;" {{!}} Payload&nbsp;capacity
 +
{{!}} {{{payload_capacity|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_vehicle|}}} | {{#if:{{{transmission|}}} |
 +
! style="padding-right: 1em;" {{!}} Transmission
 +
{{!}} {{{transmission|}}}
 
}}}}
 
}}}}
 
|-
 
|-
Line 234: Line 295:
 
! style="padding-right: 1em;" {{!}} Suspension
 
! style="padding-right: 1em;" {{!}} Suspension
 
{{!}} {{{suspension|}}}
 
{{!}} {{{suspension|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_vehicle|}}} | {{#if:{{{clearance|}}} |
 +
! style="padding-right: 1em;" {{!}} Ground&nbsp;clearance
 +
{{!}} {{{clearance|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_missile|}}} | {{#if:{{{wingspan|}}} |
 +
! style="padding-right: 1em;" {{!}} Wingspan
 +
{{!}} {{{wingspan|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_missile|}}} | {{#if:{{{propellant|}}} |
 +
! style="padding-right: 1em;" {{!}} Propellant
 +
{{!}} {{{propellant|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_vehicle|}}} | {{#if:{{{fuel_capacity|}}} |
 +
! style="padding-right: 1em;" {{!}} Fuel&nbsp;capacity
 +
{{!}} {{{fuel_capacity|}}}
 
}}}}
 
}}}}
 
|-
 
|-
 
{{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{vehicle_range|}}} |
 
{{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{vehicle_range|}}} |
! style="padding-right: 1em;" {{!}} Operational<br>range
+
! style="padding-right: 1em; line-height: 11pt;" {{!}} Operational<br/>range
 
{{!}} {{{vehicle_range|}}}
 
{{!}} {{{vehicle_range|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_missile|}}} | {{#if:{{{ceiling|}}} |
 +
! style="padding-right: 1em;" {{!}} Flight ceiling
 +
{{!}} {{{ceiling|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_missile|}}} | {{#if:{{{altitude|}}} |
 +
! style="padding-right: 1em;" {{!}} Flight altitude
 +
{{!}} {{{altitude|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_missile|}}} | {{#if:{{{boost|}}} |
 +
! style="padding-right: 1em;" {{!}} Boost time
 +
{{!}} {{{boost|}}}
 +
}}}}
 +
|-
 +
{{#if:{{{is_missile|}}} | {{#if:{{{depth|}}} |
 +
! style="padding-right: 1em;" {{!}} Maximum depth
 +
{{!}} {{{depth|}}}
 
}}}}
 
}}}}
 
|-
 
|-
Line 247: Line 348:
 
|-
 
|-
 
{{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{guidance|}}} |
 
{{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{guidance|}}} |
! style="padding-right: 1em;" {{!}} Guidance<br>system
+
! style="padding-right: 1em; line-height: 11pt;" {{!}} Guidance<br/>system
 
{{!}} {{{guidance|}}}
 
{{!}} {{{guidance|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{filling|}}} |
+
{{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{steering|}}} |
! style="padding-right: 1em;" {{!}} {{#if:{{{is_missile|}}}|Warhead|Filling}}
+
! style="padding-right: 1em; line-height: 11pt;" {{!}} Steering<br/>system
{{!}} {{{filling|}}}
+
{{!}} {{{steering|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{filling_weight|}}} |
+
{{#if:{{{is_missile|}}} | {{#if:{{{accuracy|}}} |
! style="padding-right: 1em;" {{!}} {{#if:{{{is_missile|}}}|Warhead|Filling}} weight
+
! style="padding-right: 1em;" {{!}} Accuracy
{{!}} {{{filling_weight|}}}
+
{{!}} {{{accuracy|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{detonation|}}} |
+
{{#if:{{{is_missile|}}} | {{#if:{{{launch_platform|}}} |
! style="padding-right: 1em;" {{!}} Detonation<br>mechanism
+
! style="padding-right: 1em;" {{!}} Launch<br/>platform
{{!}} {{{detonation|}}}
+
{{!}} {{{launch_platform|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{yield|}}} |
+
{{#if:{{{is_missile|}}} | {{#if:{{{transport|}}} |
! style="padding-right: 1em;" {{!}} Blast&nbsp;yield
+
! style="padding-right: 1em;" {{!}} Transport
{{!}} {{{yield|}}}
+
{{!}} {{{transport|}}}
 
}}}}
 
}}}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
{{Wikipedia:WikiProject Military history/Weapon infobox}}
+
{{Pp-template|small=yes}}
 
+
{{Documentation}}
[[Category:Military infobox templates|Weapon]]
+
[[Category:Technology infobox templates|Weapon]]
+
[[Category:Templates using ParserFunctions|Infobox Weapon]]
+
 
+
[[de:Vorlage:Infobox_Handfeuerwaffe]]
+
[[fr:Modèle:Infobox Arme à feu]]
+
[[it:Template:Infobox Arma da fuoco]]
+
[[ms:Template:Infobox Weapon]]
+
 
+
 
</noinclude>
 
</noinclude>

Latest revision as of 12:08, 21 December 2011