Difference between revisions of "Template:Infobox Weapon"
From NSwiki, the NationStates encyclopedia.
Stoklomolvi (Talk | contribs) |
|||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{| {{WPMILHIST Infobox style|main_box}} |
− | {| | + | |- |
− | + | <!--------------------------Name, image, type, origin------------------------> | |
− | ! colspan="2" style | + | ! 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|}}}{{{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|}}}| |
+ | ! 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:{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{crew|}}}| |
+ | {{#if:{{{cartridge|}}}{{{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 113: | Line 131: | ||
! 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 144: | ||
|- | |- | ||
{{#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 164: | ||
|- | |- | ||
{{#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 196: | ||
! style="padding-right: 1em;" {{!}} Sights | ! style="padding-right: 1em;" {{!}} Sights | ||
{{!}} {{{sights|}}} | {{!}} {{{sights|}}} | ||
− | |||
− | |||
− | |||
− | |||
}}}} | }}}} | ||
|- | |- | ||
Line 200: | Line 219: | ||
|- | |- | ||
{{#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|}}} | {{#if:{{{armour|}}}{{{engine|}}}{{{engine_power|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}| | + | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{armour|}}}{{{engine|}}}{{{engine_power|}}}{{{transmission|}}}{{{payload_capacity|}}}{{{fuel_capacity|}}}{{{clearance|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{suspension|}}}{{{pw_ratio|}}}{{{speed|}}}{{{vehicle_range|}}}{{{guidance|}}}| |
− | {{!}} 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;" {{!}} Primary<br>armament | + | ! style="padding-right: 1em; line-height: 11pt;" {{!}} Primary<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 260: | Line 270: | ||
! 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 267: | Line 287: | ||
}}}} | }}}} | ||
|- | |- | ||
− | {{#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_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_vehicle|}}}{{{is_missile|}}} | {{#if:{{{speed|}}} | |
! style="padding-right: 1em;" {{!}} Speed | ! style="padding-right: 1em;" {{!}} Speed | ||
{{!}} {{{speed|}}} | {{!}} {{{speed|}}} | ||
}}}} | }}}} | ||
− | |}</includeonly> | + | |- |
+ | {{#if:{{{is_vehicle|}}}{{{is_missile|}}} | {{#if:{{{guidance|}}} | | ||
+ | ! style="padding-right: 1em; line-height: 11pt;" {{!}} Guidance<br/>system | ||
+ | {{!}} {{{guidance|}}} | ||
+ | }}}} | ||
+ | </includeonly> |