Template:Infobox military installation/doc
Template:Documentation subpage Template:Lua
Usage
Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".
A military installation infobox may be used to summarize information about a military structure or facility, such as a fortification or military base.
The infobox should be added using the Template:Tl template, as shown below:
{{Infobox military installation
| name =
| ensign =
| ensign_size =
| native_name =
| partof = <!-- for elements within a larger site -->
| location =
| nearest_town = <!-- used in military test site infobox -->
| country =
| image =
| alt =
| caption =
| image2 = <!--secondary image, major command emblems for airfields -->
| alt2 =
| caption2 =
| coordinates = <!-- {{Coord}} -->
| gridref =
| type =
| image_map =
| image_mapsize =
| image_map_alt =
| image_map_caption =
| pushpin_map =
| pushpin_mapsize =
| pushpin_map_alt =
| pushpin_map_caption =
| pushpin_relief =
| pushpin_image =
| pushpin_label =
| pushpin_label_position =
| pushpin_mark =
| pushpin_marksize =
| mapframe = <!-- see below for more mapframe parameters -->
| code = <!--facility/installation code -->
| site_area = <!-- area of site m2, km2 square mile etc -->
| floor_area =
| height = <!-- height of tallest part, not above sea level -->
| length = <!-- for border fences or other DMZs -->
| ownership = <!-- government department such as the MoD or the United States DoD -->
| operator = <!-- where different from ownership such as the RAF or the USAF -->
| controlledby = <!-- such as RAF Bomber Command or the Eighth Air Force -->
| open_to_public = <!-- for out of use sites/sites with museums etc -->
| condition =
| site_other_label = <!-- for renaming "Other facilities" in infobox -->
| site_other = <!-- for other sorts of facilities – radar types etc -->
| website =
| built = <!-- {{Start date|YYYY}} -->
| built_for =
| builder =
| architect =
| used = <!--{{End date|1946}} -->
| materials =
| fate = <!--changed from demolished parameter-->
| demolished =
| battles =
| events =
| current_commander = <!-- current commander -->
| past_commanders = <!-- past notable commander(s) -->
| garrison = <!-- such as the 25th Bombardment Group -->
| occupants = <!-- squadrons only -->
| designations =
| nrhp =
| footnotes = <!-- catchall in case it's needed to preserve something in infobox that doesn't work in new code -->
}}
The following supplemental blocks may be copied into the template above as needed, just prior to the "footnotes" parameter.
Test sites
<!-- begin test site information -->
| subcritical_tests =
| nuclear_tests =
| thermonuclear_tests =
| other_tests_label = <!-- changed from "Other tests" to wording of your choice -->
| other_tests =
| remediation =
| image3 =
| alt3 =
| caption3 =
<!-- end test site information -->
Airfields
<!-- begin airfield information -->
| IATA =
| ICAO =
| FAA =
| TC =
| LID =
| GPS =
| WMO =
| elevation = <!-- {{Convert| |m|0}} -->
| r1-number =
| r1-length = <!-- {{Convert| |m|0}} -->
| r1-surface =
| h1-number =
| h1-length = <!-- {{Convert| |m|0}} -->
| h1-surface =
| airfield_other_label = <!-- for renaming "Other facilities" in infobox -->
| airfield_other = <!-- for other sorts of airfield facilities -->
<!-- end airfield information -->
Parameters
Note: When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none". If a parameter is not applicable, leave it blank and it will not be displayed. All subjective or qualitative judgements and numerical quantities or statistics must be cited to a reliable source (see WP:MILMOS#CITE).
- name – the name of the installation or structure.
- ensign – optional – a small ensign image used by the installation.
- ensign_size – optional – size for ensign image.
- native_name – optional – the name of the installation in the language(s) of the country which built it, or in which it is located.
- partof – optional – the larger complex the given installation is part of, if any. For proper grammar, it may be necessary to insert "the" before the name used here.
- location – the geographical location of the installation.
- image – optional – an image of the installation. The image should be given in the form Example.jpg; other values can be inserted in the following parameters.
- image_size – optional – width of the image in pixels (px), e.g., "150"; defaults to "220".
- alt – optional – alt text for the image; see Wikipedia:Alternative text for images.
- caption – optional – the text to be placed below the image.
- image2 – optional – a second image of the installation. The image should be given in the form Example.jpg; other values can be inserted in the following parameters.
- image2_size – optional – width of the second image in pixels (px), e.g., "150"; defaults to "220".
- alt2 – optional – alt text for the second image; see Wikipedia:Alternative text for images.
- caption2 – optional – the text to be placed below the second image.
- map_type – optional – the base map to be used for the location map, e.g., "Scotland"; see Template:Tl for more details.
- map_relief – optional – set to any non-blank value to use a relief map (if available).
- map_size – optional – width of the location map in pixels (px), e.g., "150"; defaults to "220".
- map_alt – optional – alt text for location map; see Wikipedia:Alternative text for images.
- map_caption – optional – caption displayed below the location map; defaults to "Shown within {{{map_type}}}", e.g., "Shown within Scotland".
- coordinates – optional – latitude and longitude for placing the marker on the location map. Use Template:Tl; see the Coord template documentation for details.
- gridref – optional – map grid reference.
- type – optional – the general type of installation ("Castle", "Fortress", "Bunker", "Military base", "Wall", "Defensive line", etc.).
- code – optional – the location or facility code, such as the ILC or ILK code.
- site_area – optional – where relevant (e.g. for compounds), the land area of the installation.
- floor_area – optional – where relevant (e.g. for buildings), the interior floor area of the installation.
- height – optional – where relevant (e.g. for towers), the height of the installation.
- length – optional – where relevant (e.g. for fences and DMZs), the length of the installation.
- ownership – optional – the current owner of the installation, if relevant.
- operator – optional – where different from ownership.
- controlledby – optional – the country or other power controlling the installation. Multiple powers may be indicated together with the corresponding dates.
- open_to_public – optional – whether the installation is currently open to the general public, if relevant; indicated by "yes" or "no".
- condition – optional – the current condition of the installation.
- built – optional – the date when the installation was built, usually given in years. Use Template:Tl if 1583 or later.
- builder – optional – the person or group responsible for building the installation.
- used – optional – the period during which the installation was in active military use, usually given in years.
- materials – optional – the materials used to construct the installation.
- demolished – optional – the date when the installation was demolished, if applicable.
- battles – optional – any notable battles (usually sieges) that took place in or are closely associated with the installation; as above, the choice of which battles qualify as notable is left to the article editors.
- events – optional – any notable non-battle events that took place in or are closely associated with the installation; as above, the choice of which events qualify as notable is left to the article editors.
- current_commander – optional – for installations currently in military use, the current commanding officer.
- past_commanders – optional – any notable individuals that commanded the forces using this installation; the choice of which commanders qualify as notable is left to the editors of a particular article.
- garrison – optional – the military forces garrisoning the installation. Specific units may be indicated if known; general numbers should be given otherwise.
- occupants – optional – any notable occupants of the installation other than its commanders; as above, the choice of which occupants qualify as notable is left to the article editors.
- designations – legal heritage protection status
- module – optional – to embed other templates beneath this one.
- embed – optional – to embed this template into another above it.
Mapframe maps
Template:Infobox mapframe/doc/parameters
Microformat
Tracking category
TemplateData
Template:TemplateData header Template:Collapse top
An infobox for a military structure or facility, such as a fortification or military base
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the installation or structure | String | suggested |
| Ensign | ensign | a small ensign image used by the installation. | Unknown | optional |
| Ensign size | ensign_size | size for ensign image. | Unknown | optional |
| Native Name | native_name | The name of the installation in the language(s) of the country which built it, or in which it is located. | String | optional |
| Part of | partof | The larger complex the given installation is part of, if any. For proper grammar, it may be necessary to insert "the" before the name used here. | Unknown | optional |
| Location | location | The geographical location of the installation. | Unknown | optional |
| Coordinates | coordinates | Latitude and longitude for placing the marker on the location map. Use {{Coord}}; see the Coord template documentation for details.
| String | suggested |
| Image | image | an image of the installation. The image should be given in the form Example.jpg; other values can be inserted in the following parameters. | File | optional |
| Image size | image_size | width of the image in pixels (px), e.g., "150"; defaults to "220". | Unknown | optional |
| Alt | alt | alt text for the image; see Wikipedia:Alternative text for images. | Unknown | optional |
| Caption | caption | the text to be placed below the image. | Unknown | optional |
| Image2 | image2 | a second image of the installation. The image should be given in the form Example.jpg; other values can be inserted in the following parameters. | File | optional |
| Image2 size | image2_size | width of the second image in pixels (px), e.g., "150"; defaults to "220". | Unknown | optional |
| Alt2 | alt2 | alt text for the second image; see Wikipedia:Alternative text for images. | Unknown | optional |
| Caption2 | caption2 | the text to be placed below the second image. | Unknown | optional |
| Map relief | map_relief | set to any non-blank value to use a relief map (if available). | Unknown | optional |
| Map size | map_size | width of the location map in pixels (px)
| Number | optional |
| Map alt | map_alt | alt text for location map; see Wikipedia:Alternative text for images. | Unknown | optional |
| Map caption | map_caption | caption displayed below the location map; defaults to "Shown within {{{map_type}}}", e.g., "Shown within Scotland". | Unknown | optional |
| Gridref | gridref | map grid reference. | Unknown | optional |
| Type | type | The general type of installation
| String | suggested |
| Code | code | The location or facility code, such as the ILC or ILK code. | String | optional |
| Site area | site_area | where relevant (e.g. for compounds), the land area of the installation. | Unknown | optional |
| Floor area | floor_area | where relevant (e.g. for buildings), the interior floor area of the installation. | Unknown | optional |
| Height | height | where relevant (e.g. for towers), the height of the installation. | Unknown | optional |
| Length | length | where relevant (e.g. for fences and DMZs), the length of the installation. | Unknown | optional |
| Ownership | ownership | The current owner of the installation, if relevant. | Unknown | optional |
| Operator | operator | where different from ownership. | Unknown | optional |
| Controlled by | controlledby | The country or other power controlling the installation. Multiple powers may be indicated together with the corresponding dates. | Unknown | optional |
| Open to public | open_to_public | Whether the installation is currently open to the general public, if relevant; indicated by "yes" or "no".
| String | optional |
| Condition | condition | the current condition of the installation. | Unknown | optional |
| Built | built | the date when the installation was built, usually given in years. Use {{start date}} if 1583 or later. | Unknown | optional |
| Builder | builder | The person or group responsible for building the installation. | Unknown | optional |
| Used | used | the period during which the installation was in active military use, usually given in years. | Unknown | optional |
| Materials | materials | The materials used to construct the installation. | Unknown | optional |
| Demolished | demolished | the date when the installation was demolished, if applicable. | Unknown | optional |
| Battles | battles | any notable battles (usually sieges) that took place in or are closely associated with the installation; as above, the choice of which battles qualify as notable is left to the article editors. | Unknown | optional |
| Events | events | any notable non-battle events that took place in or are closely associated with the installation; as above, the choice of which events qualify as notable is left to the article editors. | Unknown | optional |
| Current commander | current_commander | for installations currently in military use, the current commanding officer. | Unknown | optional |
| Past commanders | past_commanders | any notable individuals that commanded the forces using this installation; the choice of which commanders qualify as notable is left to the editors of a particular article. | Unknown | optional |
| Garrison | garrison | The military forces garrisoning the installation. Specific units may be indicated if known; general numbers should be given otherwise. | Unknown | optional |
| Occupants | occupants | any notable occupants of the installation other than its commanders; as above, the choice of which occupants qualify as notable is left to the article editors. | Unknown | optional |
| Designations | designations | legal heritage protection status | Unknown | optional |
| Map type | map_type | the base map to be used for the location map, e.g., "Scotland"; see {{Location map}} for more details. | Unknown | optional |
| Show mapframe map | mapframe | Specify yes or no to show or hide the map, overriding the default
| String | suggested |
| Mapframe caption | mapframe-caption | Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>" | String | optional |
| Custom mapframe | mapframe-custom | Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored. | Template | optional |
| Mapframe Wikidata item | mapframe-id id qid | Id (Q-number) of Wikidata item to use.
| String | optional |
| Mapframe coordinates | mapframe-coordinates mapframe-coord coordinates coord | Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.
| Template | optional |
| Mapframe shapes from Wikidata | mapframe-wikidata | et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter
| String | optional |
| Mapframe point feature | mapframe-point | Override display of mapframe point feature. Turn off display of point feature by setting to "none". Force point marker to be displayed by setting to "on" | String | optional |
| Mapframe shape feature | mapframe-shape | Override display of mapframe shape feature. Turn off by setting to "none". Use an inverse shape (geomask) instead of a regular shape by setting to "inverse" | String | optional |
| Mapframe width | mapframe-frame-width mapframe-width | Frame width in pixels
| Number | optional |
| Mapframe height | mapframe-frame-height mapframe-height | Frame height in pixels
| Number | optional |
| Mapframe shape fill | mapframe-shape-fill | Color used to fill shape features
| String | optional |
| Mapframe shape fill opacity | mapframe-shape-fill-opacity | Opacity level of shape fill, a number between 0 and 1
| Number | optional |
| Mapframe stroke color | mapframe-stroke-color mapframe-stroke-colour | Color of line features, and outlines of shape features
| String | optional |
| Mapframe stroke width | mapframe-stroke-width | Width of line features, and outlines of shape features
| Number | optional |
| Mapframe marker | mapframe-marker | Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options
| String | optional |
| Mapframe marker color | mapframe-marker-color mapframe-marker-colour | Background color for the marker
| String | optional |
| Mapframe geomask | mapframe-geomask | Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)
| Page name | optional |
| Mapframe geomask stroke color | mapframe-geomask-stroke-color mapframe-geomask-stroke-colour | Color of outline of geomask shape
| String | optional |
| Mapframe geomask stroke width | mapframe-geomask-stroke-width | Width of outline of geomask shape
| Number | optional |
| Mapframe geomask fill | mapframe-geomask-fill | Color used to fill outside geomask features
| String | optional |
| Mapframe geomask fill opacity | mapframe-geomask-fill-opacity | Opacity level of fill outside geomask features, a number between 0 and 1
| Number | optional |
| Mapframe zoom | mapframe-zoom | Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area
| Number | optional |
| Mapframe length (km) | mapframe-length_km | Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe length (mi) | mapframe-length_mi | Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe area (km^2) | mapframe-area_km2 | Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe area (mi^2) | mapframe-area_mi2 | Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area | Number | optional |
| Mapframe frame coordinates | mapframe-frame-coordinates mapframe-frame-coord | Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}
| Template | optional |
| Mapframe switcher | mapframe-switcher | Set to "auto" or "geomasks" or "zooms" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average. | String | optional |
| mapframe-line | mapframe-line | no description | Unknown | optional |
| Embed | embed | to embed this template into another above it. | Unknown | optional |
| Module | module | to embed other templates beneath this one. | Unknown | optional |
| noheader | noheader | no description | Unknown | optional |