Difference between revisions of "Template:Infobox weapon"
From Self-sufficiency
(Cleaning up code) |
m (131 revisions from wikipedia:Template:Infobox weapon) |
||
(83 intermediate revisions by 39 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{| {{WPMILHIST Infobox style|main_box}} |
− | {| class=" | + | |- class="hproduct" |
− | + | <!--------------------------Name, image, type, origin------------------------> | |
− | ! | + | ! class="fn" colspan="2" {{WPMILHIST Infobox style|header_bar}} | {{{name|{{PAGENAME}}}}} |
|- | |- | ||
{{#if:{{{image|}}} | | {{#if:{{{image|}}} | | ||
− | {{!}} colspan="2" style | + | {{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image|}}}<br/>{{{caption|}}} |
}} | }} | ||
|- | |- | ||
− | ! style="padding-right: 1em;" | + | {{#if:{{{type|}}} | |
− | + | ! style="padding-right: 1em;" {{!}} Type | |
+ | {{!}} {{{type|}}} | ||
+ | }} | ||
|- | |- | ||
− | ! style="padding-right: 1em;" | + | {{#if:{{{origin|}}} | |
− | + | ! style="padding-right: 1em;" {{!}} Place of origin | |
+ | {{!}} {{{origin|}}} | ||
+ | }} | ||
|- | |- | ||
+ | <!------------------------------Service history------------------------------> | ||
{{#if:{{{service|}}}{{{used_by|}}}{{{wars|}}} | | {{#if:{{{service|}}}{{{used_by|}}}{{{wars|}}} | | ||
− | ! colspan="2" style | + | ! colspan="2" {{WPMILHIST Infobox style|header_bar}} {{!}} Service history |
}} | }} | ||
|- | |- | ||
{{#if:{{{service|}}} | | {{#if:{{{service|}}} | | ||
− | ! style="padding-right: 1em;" {{!}} In service | + | ! style="padding-right: 1em;" {{!}} In service |
{{!}} {{{service|}}} | {{!}} {{{service|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{used_by|}}} | | {{#if:{{{used_by|}}} | | ||
− | ! style="padding-right: 1em;" {{!}} Used by | + | ! style="padding-right: 1em;" {{!}} Used 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 | + | ! 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 cost | ||
+ | {{!}} {{{unit_cost|}}} | ||
}} | }} | ||
|- | |- | ||
Line 67: | Line 78: | ||
}} | }} | ||
|- | |- | ||
− | {{#if:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{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|}}}{{{ | + | <!------------------------------Specifications-------------------------------> |
− | ! colspan="2" style | + | {{#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 94: | Line 106: | ||
! style="padding-right: 1em;" {{!}} Height | ! style="padding-right: 1em;" {{!}} Height | ||
{{!}} {{{height|}}} | {{!}} {{{height|}}} | ||
+ | }} | ||
+ | |- | ||
+ | {{#if:{{{diameter|}}} | | ||
+ | ! style="padding-right: 1em;" {{!}} Diameter | ||
+ | {{!}} {{{diameter|}}} | ||
}} | }} | ||
|- | |- | ||
Line 101: | Line 118: | ||
}} | }} | ||
|- | |- | ||
− | {{#if:{{{ | + | {{#if:{{{passengers|}}} | |
+ | ! 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 108: | 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 113: | 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 121: | 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 141: | 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 173: | Line 206: | ||
! style="padding-right: 1em;" {{!}} Sights | ! style="padding-right: 1em;" {{!}} Sights | ||
{{!}} {{{sights|}}} | {{!}} {{{sights|}}} | ||
− | |||
− | |||
− | |||
− | |||
}}}} | }}}} | ||
|- | |- | ||
Line 190: | 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 200: | Line 229: | ||
|- | |- | ||
{{#if:{{{is_bladed|}}} | {{#if:{{{haft_type|}}} | | {{#if:{{{is_bladed|}}} | {{#if:{{{haft_type|}}} | | ||
− | ! style="padding-right: 1em;" {{!}} [[Haft]] type | + | ! style="padding-right: 1em;" {{!}} [[wikt:haft|Haft]] type |
{{!}} {{{haft_type|}}} | {{!}} {{{haft_type|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_explosive|}}} | + | {{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{filling|}}} | |
− | + | ! style="padding-right: 1em;" {{!}} {{#if:{{{is_missile|}}}|Warhead|Filling}} | |
− | + | ||
− | + | ||
− | {{#if:{{{ | + | |
− | ! style="padding-right: 1em;" {{!}} | + | |
− | + | ||
− | + | ||
− | + | ||
− | {{#if:{{{ | + | |
− | + | ||
{{!}} {{{filling|}}} | {{!}} {{{filling|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_explosive|}}} | {{#if:{{{filling_weight|}}} | | + | {{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{filling_weight|}}} | |
− | ! style="padding-right: 1em;" {{!}} Filling weight | + | ! style="padding-right: 1em;" {{!}} {{#if:{{{is_missile|}}}|Warhead|Filling}} weight |
{{!}} {{{filling_weight|}}} | {{!}} {{{filling_weight|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_explosive|}}} | {{#if:{{{detonation|}}} | | + | {{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{detonation|}}} | |
− | ! style="padding-right: 1em;" {{!}} Detonation<br>mechanism | + | ! style="padding-right: 1em; line-height: 11pt;" {{!}} Detonation<br/>mechanism |
{{!}} {{{detonation|}}} | {{!}} {{{detonation|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_explosive|}}} | {{#if:{{{yield|}}} | | + | {{#if:{{{is_explosive|}}}{{{is_missile|}}} | {{#if:{{{yield|}}} | |
! style="padding-right: 1em;" {{!}} Blast yield | ! style="padding-right: 1em;" {{!}} Blast yield | ||
{{!}} {{{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|}}}| | |
− | {{#if:{{{is_vehicle|}}} | {{#if:{{{armour|}}}{{{engine|}}}{{{engine_power|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}| | + | {{!}} colspan="2" {{!}} <hr/> |
− | {{!}} 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;" {{!}} | + | ! 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|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_vehicle|}}} | {{#if:{{{engine|}}}{{{engine_power|}}} | | + | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{engine|}}}{{{engine_power|}}} | |
! style="padding-right: 1em;" {{!}} Engine | ! style="padding-right: 1em;" {{!}} Engine | ||
{{!}} {{{engine|}}}<br/>{{{engine_power|}}} | {{!}} {{{engine|}}}<br/>{{{engine_power|}}} | ||
Line 261: | 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 capacity | ||
+ | {{!}} {{{payload_capacity|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_vehicle|}}} | {{#if:{{{transmission|}}} | | ||
+ | ! style="padding-right: 1em;" {{!}} Transmission | ||
+ | {{!}} {{{transmission|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
Line 268: | Line 297: | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_vehicle|}}} | {{#if:{{{vehicle_range|}}} | | + | {{#if:{{{is_vehicle|}}} | {{#if:{{{clearance|}}} | |
− | ! style="padding-right: 1em;" {{!}} Operational<br>range | + | ! style="padding-right: 1em;" {{!}} Ground 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 capacity | ||
+ | {{!}} {{{fuel_capacity|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{vehicle_range|}}} | | ||
+ | ! style="padding-right: 1em; line-height: 11pt;" {{!}} Operational<br/>range | ||
{{!}} {{{vehicle_range|}}} | {{!}} {{{vehicle_range|}}} | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#if:{{{is_vehicle|}}} | {{#if:{{{speed|}}} | | + | {{#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|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{speed|}}} | | ||
! style="padding-right: 1em;" {{!}} Speed | ! style="padding-right: 1em;" {{!}} Speed | ||
{{!}} {{{speed|}}} | {{!}} {{{speed|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{guidance|}}} | | ||
+ | ! style="padding-right: 1em; line-height: 11pt;" {{!}} Guidance<br/>system | ||
+ | {{!}} {{{guidance|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{steering|}}} | | ||
+ | ! style="padding-right: 1em; line-height: 11pt;" {{!}} Steering<br/>system | ||
+ | {{!}} {{{steering|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_missile|}}} | {{#if:{{{accuracy|}}} | | ||
+ | ! style="padding-right: 1em;" {{!}} Accuracy | ||
+ | {{!}} {{{accuracy|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_missile|}}} | {{#if:{{{launch_platform|}}} | | ||
+ | ! style="padding-right: 1em;" {{!}} Launch<br/>platform | ||
+ | {{!}} {{{launch_platform|}}} | ||
+ | }}}} | ||
+ | |- | ||
+ | {{#if:{{{is_missile|}}} | {{#if:{{{transport|}}} | | ||
+ | ! style="padding-right: 1em;" {{!}} Transport | ||
+ | {{!}} {{{transport|}}} | ||
}}}} | }}}} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
− | {{ | + | {{Pp-template|small=yes}} |
− | + | {{Documentation}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</noinclude> | </noinclude> |
Latest revision as of 11:08, 21 December 2011
[edit]
Documentation