Difference between revisions of "Template:Infobox Weapon"

From NSwiki, the NationStates encyclopedia.
Jump to: navigation, search
m
m
Line 311: Line 311:
 
{{!}} {{{guidance|}}}
 
{{!}} {{{guidance|}}}
 
}}}}
 
}}}}
|}</includeonly>
+
|}</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''' &ndash; the formal name of the weapon.
 +
* '''image''' &ndash; ''optional'' &ndash; 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''' &ndash; ''optional'' &ndash; the text to be placed below the image. 
 +
* '''origin''' &ndash; ''optional'' &ndash; the country or place where the weapon originated or was first manufactured.
 +
* '''type''' &ndash; ''optional'' &ndash; 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''' &ndash; "''yes''" if the weapon is a ranged weapon, such as a firearm or bow; '''must''' be left blank otherwise.
 +
* '''is_bladed''' &ndash; "''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''' &ndash; "''yes''" if the weapon is an explosive device, such as a grenade or bomb; '''must''' be left blank otherwise.
 +
* '''is_artillery''' &ndash; "''yes''" if the weapon is a type of artillery, such as a cannon or mortar; '''must''' be left blank otherwise.
 +
* '''is_vehicle''' &ndash; "''yes''" if the weapon is a self-propelled vehicle, such as a tank; '''must''' be left blank otherwise.
 +
* '''is_missile''' &ndash; "''yes''" if the weapon is a self-propelled missile or torpedo; '''must''' be left blank otherwise.
 +
* '''is_UK''' &ndash; "''yes''" if the field labels should use British/Commonwealth English; '''must''' be left blank otherwise.
 +
 
 +
Service history parameters:
 +
* '''service''' &ndash; ''optional'' &ndash; the period (usually given in years) when the weapon was in service. 
 +
* '''used_by''' &ndash; ''optional'' &ndash; the countries, armed forces, or other groups using the weapon; this may be omitted for weapons employed only in their country of origin. 
 +
* '''wars''' &ndash; ''optional'' &ndash; any wars during which the weapon saw service. 
 +
 
 +
Production history parameters:
 +
* '''designer''' &ndash; ''optional'' &ndash; the person or group responsible for designing the weapon. 
 +
* '''design_date''' &ndash; ''optional'' &ndash; the date (usually given as a year) when the weapon was designed. 
 +
* '''manufacturer''' &ndash; ''optional'' &ndash; the manufacturer of the weapon. 
 +
* '''unit_cost''' &ndash; ''optional'' &ndash; the unit cost of the weapon; this should only be indicated for weapons currently being produced. 
 +
* '''production_date''' &ndash; ''optional'' &ndash; the period (usually given in years) when the weapon was produced. 
 +
* '''number''' &ndash; ''optional'' &ndash; the number of weapons of this type that were manufactured. 
 +
* '''variants''' &ndash; ''optional'' &ndash; any variant models of the weapon. 
 +
 
 +
General specification parameters:
 +
* '''spec_label''' &ndash; ''optional'' &ndash; a label for the specifications, to be used when data for a particular variant is indicated; should be left blank otherwise. 
 +
* '''weight''' &ndash; ''optional'' &ndash; the weight of the weapon.  For firearms, separate loaded and unloaded weights may be indicated. 
 +
* '''length''' &ndash; ''optional'' &ndash; the total length of the weapon. 
 +
* '''part_length''' &ndash; ''optional'' &ndash; a secondary length measurement.  For firearms, this should be the barrel length; for bladed weapons, the length of the blade or head. 
 +
* '''width''' &ndash; ''optional'' &ndash; the total width of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles.
 +
* '''height''' &ndash; ''optional'' &ndash; the total height of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles. 
 +
* '''diameter''' &ndash; ''optional'' &ndash; the diameter of the weapon, where applicable; this is intended for use with explosives and missiles. 
 +
* '''crew''' &ndash; ''optional'' &ndash; 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''' &ndash; ''optional'' &ndash; for firearms or artillery, the type(s) of cartridge or shell used. 
 +
* '''caliber''' &ndash; ''optional'' &ndash; for firearms or artillery, the caliber of the barrel; this may be omitted if it is indicated by the cartridge type. 
 +
* '''barrels''' &ndash; ''optional'' &ndash; for firearms or artillery, the number of distinct barrels; this may be omitted if the weapon is single-barreled. 
 +
* '''action''' &ndash; ''optional'' &ndash; for firearms, the type of action (e.g. "flintlock"). 
 +
* '''rate''' &ndash; ''optional'' &ndash; the rate of fire. 
 +
* '''velocity''' &ndash; ''optional'' &ndash; for firearms or artillery, the muzzle velocity of the fired projectile. 
 +
* '''range''' &ndash; ''optional'' &ndash; the effective range of the weapon. 
 +
* '''max_range''' &ndash; ''optional'' &ndash; the maximum range of the weapon. 
 +
* '''feed''' &ndash; ''optional'' &ndash; for firearms, the feed system or magazine used. 
 +
* '''sights''' &ndash; ''optional'' &ndash; for firearms or artillery, the type of sights used. 
 +
 
 +
Artillery specification parameters (only available if '''is_artillery''' is set to "''yes''"):
 +
* '''breech''' &ndash; ''optional'' &ndash; for artillery, the type of breech mechanism. 
 +
* '''recoil''' &ndash; ''optional'' &ndash; for artillery, the recoil system used.
 +
* '''carriage''' &ndash; ''optional'' &ndash; for artillery, the type of carriage used. 
 +
* '''elevation''' &ndash; ''optional'' &ndash; for artillery, the vertical range of possible firing angles. 
 +
* '''traverse''' &ndash; ''optional'' &ndash; for artillery, the horizontal range of possible firing angles. 
 +
 
 +
Bladed weapon specification parameters (only available if '''is_bladed''' is set to "''yes''"):
 +
* '''blade_type''' &ndash; ''optional'' &ndash; for bladed weapons (e.g. swords), a description of the blade. 
 +
* '''hilt_type''' &ndash; ''optional'' &ndash; for bladed weapons (e.g. swords), a description of the hilt.
 +
* '''sheath_type''' &ndash; ''optional'' &ndash; for bladed weapons (e.g. swords), a description of the scabbard or sheath, if any. 
 +
* '''head_type''' &ndash; ''optional'' &ndash; for blunt or striking weapons (e.g. axes, polearms, or maces), a description of the head. 
 +
* '''haft_type''' &ndash; ''optional'' &ndash; 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''' &ndash; ''optional'' &ndash; the explosive filling material. 
 +
* '''filling_weight''' &ndash; ''optional'' &ndash; the weight of the explosive material or warhead. 
 +
* '''detonation''' &ndash; ''optional'' &ndash; the detonation trigger type (e.g. "timer", "pressure", "motion sensor"). 
 +
* '''yield''' &ndash; ''optional'' &ndash; for larger explosives, the yield (in tons of [[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''' &ndash; ''optional'' &ndash; the [[vehicle armour|armour plating]] of the vehicle; different armour thickness at different points may be indicated if needed. 
 +
* '''primary_armament''' &ndash; ''optional'' &ndash; the primary armament mounted on the vehicle, if any. 
 +
* '''secondary_armament''' &ndash; ''optional'' &ndash; the secondary armament mounted on the vehicle, if any. 
 +
* '''engine''' &ndash; ''optional'' &ndash; the type of engine used by the vehicle or missile. 
 +
* '''engine_power''' &ndash; ''optional'' &ndash; the power output of the engine, usually in hp or kW.
 +
* '''pw_ratio''' &ndash; ''optional'' &ndash; the power-to-weight ratio, usually in hp/tonne.
 +
* '''transmission''' &ndash; ''optional'' &ndash; the type of transmission used by the vehicle. 
 +
* '''payload_capacity''' &ndash; ''optional'' &ndash; the overall payload capacity weight of the vehicle. 
 +
* '''fuel_capacity''' &ndash; ''optional'' &ndash; the fuel capacity of the vehicle. 
 +
* '''suspension''' &ndash; ''optional'' &ndash; the suspension of the vehicle.
 +
* '''clearance''' &ndash; ''optional'' &ndash; the ground clearance of the vehicle. 
 +
* '''vehicle_range''' &ndash; ''optional'' &ndash; the operational range of the vehicle or missile.
 +
* '''speed''' &ndash; ''optional'' &ndash; the maximum speed of the vehicle or missile; this is usually the road speed, but other values may be indicated if appropriate.
 +
* '''guidance''' &ndash; ''optional'' &ndash; the guidance system used by the missile (or the vehicle, if unmanned).</noinclude>

Revision as of 14:16, 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.
  • imageoptional – 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.
  • captionoptional – the text to be placed below the image.
  • originoptional – the country or place where the weapon originated or was first manufactured.
  • typeoptional – 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:

  • serviceoptional – the period (usually given in years) when the weapon was in service.
  • used_byoptional – the countries, armed forces, or other groups using the weapon; this may be omitted for weapons employed only in their country of origin.
  • warsoptional – any wars during which the weapon saw service.

Production history parameters:

  • designeroptional – the person or group responsible for designing the weapon.
  • design_dateoptional – the date (usually given as a year) when the weapon was designed.
  • manufactureroptional – the manufacturer of the weapon.
  • unit_costoptional – the unit cost of the weapon; this should only be indicated for weapons currently being produced.
  • production_dateoptional – the period (usually given in years) when the weapon was produced.
  • numberoptional – the number of weapons of this type that were manufactured.
  • variantsoptional – any variant models of the weapon.

General specification parameters:

  • spec_labeloptional – a label for the specifications, to be used when data for a particular variant is indicated; should be left blank otherwise.
  • weightoptional – the weight of the weapon. For firearms, separate loaded and unloaded weights may be indicated.
  • lengthoptional – the total length of the weapon.
  • part_lengthoptional – a secondary length measurement. For firearms, this should be the barrel length; for bladed weapons, the length of the blade or head.
  • widthoptional – the total width of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles.
  • heightoptional – the total height of the weapon, where applicable; this is intended for use with larger weapons, such as artillery or vehicles.
  • diameteroptional – the diameter of the weapon, where applicable; this is intended for use with explosives and missiles.
  • crewoptional – 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"):

  • cartridgeoptional – for firearms or artillery, the type(s) of cartridge or shell used.
  • caliberoptional – for firearms or artillery, the caliber of the barrel; this may be omitted if it is indicated by the cartridge type.
  • barrelsoptional – for firearms or artillery, the number of distinct barrels; this may be omitted if the weapon is single-barreled.
  • actionoptional – for firearms, the type of action (e.g. "flintlock").
  • rateoptional – the rate of fire.
  • velocityoptional – for firearms or artillery, the muzzle velocity of the fired projectile.
  • rangeoptional – the effective range of the weapon.
  • max_rangeoptional – the maximum range of the weapon.
  • feedoptional – for firearms, the feed system or magazine used.
  • sightsoptional – for firearms or artillery, the type of sights used.

Artillery specification parameters (only available if is_artillery is set to "yes"):

  • breechoptional – for artillery, the type of breech mechanism.
  • recoiloptional – for artillery, the recoil system used.
  • carriageoptional – for artillery, the type of carriage used.
  • elevationoptional – for artillery, the vertical range of possible firing angles.
  • traverseoptional – for artillery, the horizontal range of possible firing angles.

Bladed weapon specification parameters (only available if is_bladed is set to "yes"):

  • blade_typeoptional – for bladed weapons (e.g. swords), a description of the blade.
  • hilt_typeoptional – for bladed weapons (e.g. swords), a description of the hilt.
  • sheath_typeoptional – for bladed weapons (e.g. swords), a description of the scabbard or sheath, if any.
  • head_typeoptional – for blunt or striking weapons (e.g. axes, polearms, or maces), a description of the head.
  • haft_typeoptional – 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"):

  • fillingoptional – the explosive filling material.
  • filling_weightoptional – the weight of the explosive material or warhead.
  • detonationoptional – the detonation trigger type (e.g. "timer", "pressure", "motion sensor").
  • yieldoptional – 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"):

  • armouroptional – the armour plating of the vehicle; different armour thickness at different points may be indicated if needed.
  • primary_armamentoptional – the primary armament mounted on the vehicle, if any.
  • secondary_armamentoptional – the secondary armament mounted on the vehicle, if any.
  • engineoptional – the type of engine used by the vehicle or missile.
  • engine_poweroptional – the power output of the engine, usually in hp or kW.
  • pw_ratiooptional – the power-to-weight ratio, usually in hp/tonne.
  • transmissionoptional – the type of transmission used by the vehicle.
  • payload_capacityoptional – the overall payload capacity weight of the vehicle.
  • fuel_capacityoptional – the fuel capacity of the vehicle.
  • suspensionoptional – the suspension of the vehicle.
  • clearanceoptional – the ground clearance of the vehicle.
  • vehicle_rangeoptional – the operational range of the vehicle or missile.
  • speedoptional – the maximum speed of the vehicle or missile; this is usually the road speed, but other values may be indicated if appropriate.
  • guidanceoptional – the guidance system used by the missile (or the vehicle, if unmanned).