Difference between revisions of "Template:Infobox Weapon"
Stoklomolvi (Talk | contribs) m |
|||
(3 intermediate revisions by the same user not shown) | |||
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><noinclude> | ||
+ | ==== Weapon infobox ==== | ||
+ | A weapon infobox may be used to summarize information about a particular weapon or weapon system (such as a firearm, a sword, a grenade, an artillery piece, a torpedo, or a tank); cartridges and artillery shells should use {{tl|Infobox Firearm Cartridge}} instead. The infobox should be added using the {{tl|Infobox Weapon}} template, as shown below: | ||
+ | |||
+ | <div style="width: 350px; background: #dddddd; border: 1px solid black; padding:0.5em 1em 0.5em 1em;"><pre> | ||
+ | {{Infobox Weapon | ||
+ | |name= | ||
+ | |image= | ||
+ | |caption= | ||
+ | |origin= | ||
+ | |type= | ||
+ | <!-- Type selection --> | ||
+ | |is_ranged= | ||
+ | |is_bladed= | ||
+ | |is_explosive= | ||
+ | |is_artillery= | ||
+ | |is_vehicle= | ||
+ | |is_missile= | ||
+ | |is_UK= | ||
+ | <!-- Service history --> | ||
+ | |service= | ||
+ | |used_by= | ||
+ | |wars= | ||
+ | <!-- Production history --> | ||
+ | |designer= | ||
+ | |design_date= | ||
+ | |manufacturer= | ||
+ | |unit_cost= | ||
+ | |production_date= | ||
+ | |number= | ||
+ | |variants= | ||
+ | <!-- General specifications --> | ||
+ | |spec_label= | ||
+ | |weight= | ||
+ | |length= | ||
+ | |part_length= | ||
+ | |width= | ||
+ | |height= | ||
+ | |diameter= | ||
+ | |crew= | ||
+ | <!-- Ranged weapon specifications --> | ||
+ | |cartridge= | ||
+ | |caliber= | ||
+ | |barrels= | ||
+ | |action= | ||
+ | |rate= | ||
+ | |velocity= | ||
+ | |range= | ||
+ | |max_range= | ||
+ | |feed= | ||
+ | |sights= | ||
+ | <!-- Artillery specifications --> | ||
+ | |breech= | ||
+ | |recoil= | ||
+ | |carriage= | ||
+ | |elevation= | ||
+ | |traverse= | ||
+ | <!-- Bladed weapon specifications --> | ||
+ | |blade_type= | ||
+ | |hilt_type= | ||
+ | |sheath_type= | ||
+ | |head_type= | ||
+ | |haft_type= | ||
+ | <!-- Explosive specifications --> | ||
+ | |filling= | ||
+ | |filling_weight= | ||
+ | |detonation= | ||
+ | |yield= | ||
+ | <!-- Vehicle/missile specifications --> | ||
+ | |armour= | ||
+ | |primary_armament= | ||
+ | |secondary_armament= | ||
+ | |engine= | ||
+ | |engine_power= | ||
+ | |transmission= | ||
+ | |payload_capacity= | ||
+ | |fuel_capacity= | ||
+ | |pw_ratio= | ||
+ | |suspension= | ||
+ | |clearance= | ||
+ | |vehicle_range= | ||
+ | |speed= | ||
+ | |guidance= | ||
+ | }} | ||
+ | </pre></div> | ||
+ | |||
+ | General parameters: | ||
+ | * '''name''' – the formal name of the weapon. | ||
+ | * '''image''' – ''optional'' – an image of the weapon. The image must be given in the form <nowiki>[[Image:Example.jpg|300px]]</nowiki>; in particular, the ''thumb'' attribute must '''not''' be selected. | ||
+ | * '''caption''' – ''optional'' – the text to be placed below the image. | ||
+ | * '''origin''' – ''optional'' – the country or place where the weapon originated or was first manufactured. | ||
+ | * '''type''' – ''optional'' – the type of weapon (e.g. "[[Wikipedia:service rifle|service rifle]]", "dress sword", and so forth). | ||
+ | |||
+ | Type selection parameters (these parameters control whether—and how—particular specification fields will be displayed; multiple ones may be enabled where appropriate): | ||
+ | * '''is_ranged''' – "''yes''" if the weapon is a ranged weapon, such as a firearm or bow; '''must''' be left blank otherwise. | ||
+ | * '''is_bladed''' – "''yes''" if the weapon is a bladed, pointed, or blunt hand-held weapon, such as a sword, mace, or polearm; '''must''' be left blank otherwise. | ||
+ | * '''is_explosive''' – "''yes''" if the weapon is an explosive device, such as a grenade or bomb; '''must''' be left blank otherwise. | ||
+ | * '''is_artillery''' – "''yes''" if the weapon is a type of artillery, such as a cannon or mortar; '''must''' be left blank otherwise. | ||
+ | * '''is_vehicle''' – "''yes''" if the weapon is a self-propelled vehicle, such as a tank; '''must''' be left blank otherwise. | ||
+ | * '''is_missile''' – "''yes''" if the weapon is a self-propelled missile or torpedo; '''must''' be left blank otherwise. | ||
+ | * '''is_UK''' – "''yes''" if the field labels should use British/Commonwealth English; '''must''' be left blank otherwise. | ||
+ | |||
+ | Service history parameters: | ||
+ | * '''service''' – ''optional'' – the period (usually given in years) when the weapon was in service. | ||
+ | * '''used_by''' – ''optional'' – the countries, armed forces, or other groups using the weapon; this may be omitted for weapons employed only in their country of origin. | ||
+ | * '''wars''' – ''optional'' – any wars during which the weapon saw service. | ||
+ | |||
+ | Production history parameters: | ||
+ | * '''designer''' – ''optional'' – the person or group responsible for designing the weapon. | ||
+ | * '''design_date''' – ''optional'' – the date (usually given as a year) when the weapon was designed. | ||
+ | * '''manufacturer''' – ''optional'' – the manufacturer of the weapon. | ||
+ | * '''unit_cost''' – ''optional'' – the unit cost of the weapon; this should only be indicated for weapons currently being produced. | ||
+ | * '''production_date''' – ''optional'' – the period (usually given in years) when the weapon was produced. | ||
+ | * '''number''' – ''optional'' – the number of weapons of this type that were manufactured. | ||
+ | * '''variants''' – ''optional'' – any variant models of the weapon. | ||
+ | |||
+ | General specification parameters: | ||
+ | * '''spec_label''' – ''optional'' – a label for the specifications, to be used when data for a particular variant is indicated; should be left blank otherwise. | ||
+ | * '''weight''' – ''optional'' – the weight of the weapon. For firearms, separate loaded and unloaded weights may be indicated. | ||
+ | * '''length''' – ''optional'' – the total length of the weapon. | ||
+ | * '''part_length''' – ''optional'' – a secondary length measurement. For firearms, this should be the barrel length; for bladed weapons, the length of the blade or head. | ||
+ | * '''width''' – ''optional'' – the total width of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles. | ||
+ | * '''height''' – ''optional'' – the total height of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles. | ||
+ | * '''diameter''' – ''optional'' – the diameter of the weapon, where applicable; this is intended for use with explosives and missiles. | ||
+ | * '''crew''' – ''optional'' – for crewed weapons, the number of people required. | ||
+ | |||
+ | Ranged weapon specification parameters (most only available if '''is_ranged''' is set to "''yes''"; some are also activated when '''is_explosive''' or '''is_artillery''' is set to "''yes''"): | ||
+ | * '''cartridge''' – ''optional'' – for firearms or artillery, the type(s) of cartridge or shell used. | ||
+ | * '''caliber''' – ''optional'' – for firearms or artillery, the caliber of the barrel; this may be omitted if it is indicated by the cartridge type. | ||
+ | * '''barrels''' – ''optional'' – for firearms or artillery, the number of distinct barrels; this may be omitted if the weapon is single-barreled. | ||
+ | * '''action''' – ''optional'' – for firearms, the type of action (e.g. "flintlock"). | ||
+ | * '''rate''' – ''optional'' – the rate of fire. | ||
+ | * '''velocity''' – ''optional'' – for firearms or artillery, the muzzle velocity of the fired projectile. | ||
+ | * '''range''' – ''optional'' – the effective range of the weapon. | ||
+ | * '''max_range''' – ''optional'' – the maximum range of the weapon. | ||
+ | * '''feed''' – ''optional'' – for firearms, the feed system or magazine used. | ||
+ | * '''sights''' – ''optional'' – for firearms or artillery, the type of sights used. | ||
+ | |||
+ | Artillery specification parameters (only available if '''is_artillery''' is set to "''yes''"): | ||
+ | * '''breech''' – ''optional'' – for artillery, the type of breech mechanism. | ||
+ | * '''recoil''' – ''optional'' – for artillery, the recoil system used. | ||
+ | * '''carriage''' – ''optional'' – for artillery, the type of carriage used. | ||
+ | * '''elevation''' – ''optional'' – for artillery, the vertical range of possible firing angles. | ||
+ | * '''traverse''' – ''optional'' – for artillery, the horizontal range of possible firing angles. | ||
+ | |||
+ | Bladed weapon specification parameters (only available if '''is_bladed''' is set to "''yes''"): | ||
+ | * '''blade_type''' – ''optional'' – for bladed weapons (e.g. swords), a description of the blade. | ||
+ | * '''hilt_type''' – ''optional'' – for bladed weapons (e.g. swords), a description of the hilt. | ||
+ | * '''sheath_type''' – ''optional'' – for bladed weapons (e.g. swords), a description of the scabbard or sheath, if any. | ||
+ | * '''head_type''' – ''optional'' – for blunt or striking weapons (e.g. axes, polearms, or maces), a description of the head. | ||
+ | * '''haft_type''' – ''optional'' – for blunt or striking weapons (e.g. axes, polearms, or maces), a description of the haft. | ||
+ | |||
+ | Explosive weapon specification parameters (only available if '''is_explosive''' or '''is_missile''' is set to "''yes''"): | ||
+ | * '''filling''' – ''optional'' – the explosive filling material. | ||
+ | * '''filling_weight''' – ''optional'' – the weight of the explosive material or warhead. | ||
+ | * '''detonation''' – ''optional'' – the detonation trigger type (e.g. "timer", "pressure", "motion sensor"). | ||
+ | * '''yield''' – ''optional'' – for larger explosives, the yield (in tons of [[Wikipedia:trinitrotoluene|TNT]]) of the device. | ||
+ | |||
+ | Vehicle/missile specification parameters (most only available if '''is_vehicle''' is set to "''yes''"; some are also activated if '''is_missile''' is set to "''yes''"): | ||
+ | * '''armour''' – ''optional'' – the [[Wikipedia:vehicle armour|armour plating]] of the vehicle; different armour thickness at different points may be indicated if needed. | ||
+ | * '''primary_armament''' – ''optional'' – the primary armament mounted on the vehicle, if any. | ||
+ | * '''secondary_armament''' – ''optional'' – the secondary armament mounted on the vehicle, if any. | ||
+ | * '''engine''' – ''optional'' – the type of engine used by the vehicle or missile. | ||
+ | * '''engine_power''' – ''optional'' – the power output of the engine, usually in hp or kW. | ||
+ | * '''pw_ratio''' – ''optional'' – the power-to-weight ratio, usually in hp/tonne. | ||
+ | * '''transmission''' – ''optional'' – the type of transmission used by the vehicle. | ||
+ | * '''payload_capacity''' – ''optional'' – the overall payload capacity weight of the vehicle. | ||
+ | * '''fuel_capacity''' – ''optional'' – the fuel capacity of the vehicle. | ||
+ | * '''suspension''' – ''optional'' – the suspension of the vehicle. | ||
+ | * '''clearance''' – ''optional'' – the ground clearance of the vehicle. | ||
+ | * '''vehicle_range''' – ''optional'' – the operational range of the vehicle or missile. | ||
+ | * '''speed''' – ''optional'' – the maximum speed of the vehicle or missile; this is usually the road speed, but other values may be indicated if appropriate. | ||
+ | * '''guidance''' – ''optional'' – the guidance system used by the missile (or the vehicle, if unmanned).</noinclude> |
Latest revision as of 14:19, 26 October 2007
Weapon infobox
A weapon infobox may be used to summarize information about a particular weapon or weapon system (such as a firearm, a sword, a grenade, an artillery piece, a torpedo, or a tank); cartridges and artillery shells should use {{Infobox Firearm Cartridge}} instead. The infobox should be added using the {{Infobox Weapon}} template, as shown below:
{{Infobox Weapon |name= |image= |caption= |origin= |type= <!-- Type selection --> |is_ranged= |is_bladed= |is_explosive= |is_artillery= |is_vehicle= |is_missile= |is_UK= <!-- Service history --> |service= |used_by= |wars= <!-- Production history --> |designer= |design_date= |manufacturer= |unit_cost= |production_date= |number= |variants= <!-- General specifications --> |spec_label= |weight= |length= |part_length= |width= |height= |diameter= |crew= <!-- Ranged weapon specifications --> |cartridge= |caliber= |barrels= |action= |rate= |velocity= |range= |max_range= |feed= |sights= <!-- Artillery specifications --> |breech= |recoil= |carriage= |elevation= |traverse= <!-- Bladed weapon specifications --> |blade_type= |hilt_type= |sheath_type= |head_type= |haft_type= <!-- Explosive specifications --> |filling= |filling_weight= |detonation= |yield= <!-- Vehicle/missile specifications --> |armour= |primary_armament= |secondary_armament= |engine= |engine_power= |transmission= |payload_capacity= |fuel_capacity= |pw_ratio= |suspension= |clearance= |vehicle_range= |speed= |guidance= }}
General parameters:
- name – the formal name of the weapon.
- image – optional – an image of the weapon. The image must be given in the form [[Image:Example.jpg|300px]]; in particular, the thumb attribute must not be selected.
- caption – optional – the text to be placed below the image.
- origin – optional – the country or place where the weapon originated or was first manufactured.
- type – optional – the type of weapon (e.g. "service rifle", "dress sword", and so forth).
Type selection parameters (these parameters control whether—and how—particular specification fields will be displayed; multiple ones may be enabled where appropriate):
- is_ranged – "yes" if the weapon is a ranged weapon, such as a firearm or bow; must be left blank otherwise.
- is_bladed – "yes" if the weapon is a bladed, pointed, or blunt hand-held weapon, such as a sword, mace, or polearm; must be left blank otherwise.
- is_explosive – "yes" if the weapon is an explosive device, such as a grenade or bomb; must be left blank otherwise.
- is_artillery – "yes" if the weapon is a type of artillery, such as a cannon or mortar; must be left blank otherwise.
- is_vehicle – "yes" if the weapon is a self-propelled vehicle, such as a tank; must be left blank otherwise.
- is_missile – "yes" if the weapon is a self-propelled missile or torpedo; must be left blank otherwise.
- is_UK – "yes" if the field labels should use British/Commonwealth English; must be left blank otherwise.
Service history parameters:
- service – optional – the period (usually given in years) when the weapon was in service.
- used_by – optional – the countries, armed forces, or other groups using the weapon; this may be omitted for weapons employed only in their country of origin.
- wars – optional – any wars during which the weapon saw service.
Production history parameters:
- designer – optional – the person or group responsible for designing the weapon.
- design_date – optional – the date (usually given as a year) when the weapon was designed.
- manufacturer – optional – the manufacturer of the weapon.
- unit_cost – optional – the unit cost of the weapon; this should only be indicated for weapons currently being produced.
- production_date – optional – the period (usually given in years) when the weapon was produced.
- number – optional – the number of weapons of this type that were manufactured.
- variants – optional – any variant models of the weapon.
General specification parameters:
- spec_label – optional – a label for the specifications, to be used when data for a particular variant is indicated; should be left blank otherwise.
- weight – optional – the weight of the weapon. For firearms, separate loaded and unloaded weights may be indicated.
- length – optional – the total length of the weapon.
- part_length – optional – a secondary length measurement. For firearms, this should be the barrel length; for bladed weapons, the length of the blade or head.
- width – optional – the total width of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles.
- height – optional – the total height of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles.
- diameter – optional – the diameter of the weapon, where applicable; this is intended for use with explosives and missiles.
- crew – optional – for crewed weapons, the number of people required.
Ranged weapon specification parameters (most only available if is_ranged is set to "yes"; some are also activated when is_explosive or is_artillery is set to "yes"):
- cartridge – optional – for firearms or artillery, the type(s) of cartridge or shell used.
- caliber – optional – for firearms or artillery, the caliber of the barrel; this may be omitted if it is indicated by the cartridge type.
- barrels – optional – for firearms or artillery, the number of distinct barrels; this may be omitted if the weapon is single-barreled.
- action – optional – for firearms, the type of action (e.g. "flintlock").
- rate – optional – the rate of fire.
- velocity – optional – for firearms or artillery, the muzzle velocity of the fired projectile.
- range – optional – the effective range of the weapon.
- max_range – optional – the maximum range of the weapon.
- feed – optional – for firearms, the feed system or magazine used.
- sights – optional – for firearms or artillery, the type of sights used.
Artillery specification parameters (only available if is_artillery is set to "yes"):
- breech – optional – for artillery, the type of breech mechanism.
- recoil – optional – for artillery, the recoil system used.
- carriage – optional – for artillery, the type of carriage used.
- elevation – optional – for artillery, the vertical range of possible firing angles.
- traverse – optional – for artillery, the horizontal range of possible firing angles.
Bladed weapon specification parameters (only available if is_bladed is set to "yes"):
- blade_type – optional – for bladed weapons (e.g. swords), a description of the blade.
- hilt_type – optional – for bladed weapons (e.g. swords), a description of the hilt.
- sheath_type – optional – for bladed weapons (e.g. swords), a description of the scabbard or sheath, if any.
- head_type – optional – for blunt or striking weapons (e.g. axes, polearms, or maces), a description of the head.
- haft_type – optional – for blunt or striking weapons (e.g. axes, polearms, or maces), a description of the haft.
Explosive weapon specification parameters (only available if is_explosive or is_missile is set to "yes"):
- filling – optional – the explosive filling material.
- filling_weight – optional – the weight of the explosive material or warhead.
- detonation – optional – the detonation trigger type (e.g. "timer", "pressure", "motion sensor").
- yield – optional – for larger explosives, the yield (in tons of TNT) of the device.
Vehicle/missile specification parameters (most only available if is_vehicle is set to "yes"; some are also activated if is_missile is set to "yes"):
- armour – optional – the armour plating of the vehicle; different armour thickness at different points may be indicated if needed.
- primary_armament – optional – the primary armament mounted on the vehicle, if any.
- secondary_armament – optional – the secondary armament mounted on the vehicle, if any.
- engine – optional – the type of engine used by the vehicle or missile.
- engine_power – optional – the power output of the engine, usually in hp or kW.
- pw_ratio – optional – the power-to-weight ratio, usually in hp/tonne.
- transmission – optional – the type of transmission used by the vehicle.
- payload_capacity – optional – the overall payload capacity weight of the vehicle.
- fuel_capacity – optional – the fuel capacity of the vehicle.
- suspension – optional – the suspension of the vehicle.
- clearance – optional – the ground clearance of the vehicle.
- vehicle_range – optional – the operational range of the vehicle or missile.
- speed – optional – the maximum speed of the vehicle or missile; this is usually the road speed, but other values may be indicated if appropriate.
- guidance – optional – the guidance system used by the missile (or the vehicle, if unmanned).