Difference between revisions of "Template:Infobox military installation"
imported>Frietjes m |
imported>Frietjes (per talk page) |
||
Line 6: | Line 6: | ||
| subheaderstyle1 = {{WPMILHIST Infobox style|header_raw}}; font-weight:bold; | | subheaderstyle1 = {{WPMILHIST Infobox style|header_raw}}; font-weight:bold; | ||
| {{#ifeq:{{{embed|}}}|yes|subheader1|above}} = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes|<nowiki />|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}<!-- | | {{#ifeq:{{{embed|}}}|yes|subheader1|above}} = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes|<nowiki />|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}<!-- | ||
− | -->{{#if:{{{ensign|}}}|<div style="padding-bottom:2px">{{#invoke:InfoboxImage|InfoboxImage|image={{{ensign|}}}|size={{{ensign_size|}}}|sizedefault=90px|alt={{{ensign_alt|}}}}}</div>}} | + | -->{{#if:{{{ensign|}}}|<div style="padding-bottom:2px">{{#invoke:InfoboxImage|InfoboxImage|image={{{ensign|}}}|size={{{ensign_size|}}}|sizedefault=90px|alt={{{ensign_alt|}}}}} {{#invoke:InfoboxImage|InfoboxImage|image={{{ensign2|}}}|size={{{ensign2_size|}}}|sizedefault=90px|alt={{{ensign2_alt|}}}}}</div>}} |
| subheaderstyle2 = {{WPMILHIST Infobox style|header_raw}} | | subheaderstyle2 = {{WPMILHIST Infobox style|header_raw}} | ||
Line 278: | Line 278: | ||
| below = {{{footnotes|}}} | | below = {{{footnotes|}}} | ||
}}{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox military installation with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=y|preview=Page using [[Template:Infobox military installation]] with unknown parameter "_VALUE_" | }}{{<includeonly>safesubst:</includeonly>#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox military installation with unknown parameters|_VALUE_{{PAGENAME}}]]}}|ignoreblank=y|preview=Page using [[Template:Infobox military installation]] with unknown parameter "_VALUE_" | ||
− | | embed | name| designations| ensign| ensign_size| ensign_alt| native_name| nativename| nativename-a| nativename-r|partof| location| nearest_town| country| image| image_size| image_alt| alt| caption| image2| image2_size| image2_alt| alt2| caption2| map| image_map |map_size| image_mapsize| map_alt| image_map_alt| map_caption| image_map_caption| pushpin_map| map_type| pushpin_label_position| pushpin_label| pushpin_map_alt| pushpin_mark| pushpin_marksize| pushpin_mapsize| pushpin_relief| map_relief| pushpin_image| pushpin_map_caption| coordinates| coordinates_footnotes| gridref| type| code| site_area| height| length| ownership| owner| operator| controlledby| controlled by| controlled_by| open_to_public| condition| status| site_other| website| site_other_label| built| built_for| builder| architect| used| dates |materials| fate| demolished| battles| events| current_commander| past_commanders| garrison| occupants| subcritical_tests| nuclear_tests| thermonuclear_tests| other_tests| remediation| other_tests_label| image3| image3_size| image3_alt| alt3| caption3| r1-number| r1-length| r1-surface| h1-number| h1-length| h1-surface| airfield_other| elevation| IATA| ICAO| FAA| TC| LID| GPS| WMO| r2-number| r2-length| r2-surface| r3-number| r3-length| r3-surface| r4-number| r4-length| r4-surface| r5-number| r5-length| r5-surface| r6-number| r6-length| r6-surface| r7-number| r7-length| r7-surface| r8-number| r8-length| r8-surface| r9-number| r9-length| r9-surface| h2-number| h2-length| h2-surface| h3-number| h3-length| h3-surface| h4-number| h4-length| h4-surface| h5-number| h5-length| h5-surface| h6-number| h6-length| h6-surface| airfield_other_label| |nrhp |embedded |module| footnotes | + | | embed | name| designations| ensign| ensign_size| ensign_alt| ensign2| ensign2_size| ensign2_alt| native_name| nativename| nativename-a| nativename-r|partof| location| nearest_town| country| image| image_size| image_alt| alt| caption| image2| image2_size| image2_alt| alt2| caption2| map| image_map |map_size| image_mapsize| map_alt| image_map_alt| map_caption| image_map_caption| pushpin_map| map_type| pushpin_label_position| pushpin_label| pushpin_map_alt| pushpin_mark| pushpin_marksize| pushpin_mapsize| pushpin_relief| map_relief| pushpin_image| pushpin_map_caption| coordinates| coordinates_footnotes| gridref| type| code| site_area| height| length| ownership| owner| operator| controlledby| controlled by| controlled_by| open_to_public| condition| status| site_other| website| site_other_label| built| built_for| builder| architect| used| dates |materials| fate| demolished| battles| events| current_commander| past_commanders| garrison| occupants| subcritical_tests| nuclear_tests| thermonuclear_tests| other_tests| remediation| other_tests_label| image3| image3_size| image3_alt| alt3| caption3| r1-number| r1-length| r1-surface| h1-number| h1-length| h1-surface| airfield_other| elevation| IATA| ICAO| FAA| TC| LID| GPS| WMO| r2-number| r2-length| r2-surface| r3-number| r3-length| r3-surface| r4-number| r4-length| r4-surface| r5-number| r5-length| r5-surface| r6-number| r6-length| r6-surface| r7-number| r7-length| r7-surface| r8-number| r8-length| r8-surface| r9-number| r9-length| r9-surface| h2-number| h2-length| h2-surface| h3-number| h3-length| h3-surface| h4-number| h4-length| h4-surface| h5-number| h5-length| h5-surface| h6-number| h6-length| h6-surface| airfield_other_label| |nrhp |embedded |module| footnotes |
}}{{#if:{{#if:{{both|{{{ownership|}}}|{{{owner|}}}}}|1}}{{#if:{{both|{{{condition|}}}|{{{status|}}}}}|1}}{{#if:{{both|{{{used|}}}|{{{dates|}}}}}|1}}|[[Category:Pages using infobox military installation with unknown parameters|Δ]] | }}{{#if:{{#if:{{both|{{{ownership|}}}|{{{owner|}}}}}|1}}{{#if:{{both|{{{condition|}}}|{{{status|}}}}}|1}}{{#if:{{both|{{{used|}}}|{{{dates|}}}}}|1}}|[[Category:Pages using infobox military installation with unknown parameters|Δ]] | ||
}}{{#ifeq:{{#invoke:string|replace|{{{name|{{PAGENAME}}}}}|.* | }}{{#ifeq:{{#invoke:string|replace|{{{name|{{PAGENAME}}}}}|.* | ||
.*|CHECK|plain=false}}|CHECK|[[Category:Pages using infobox military installation with unknown parameters|Ε]] | .*|CHECK|plain=false}}|CHECK|[[Category:Pages using infobox military installation with unknown parameters|Ε]] | ||
}}<noinclude> | }}<noinclude> | ||
− | {{ | + | {{documentation}} |
<!-- Please add categories to the /doc subpage, not here. --> | <!-- Please add categories to the /doc subpage, not here. --> | ||
</noinclude> | </noinclude> |
Latest revision as of 16:39, 21 December 2019
Owner | Script error: No such module "If empty". |
---|---|
Controlled by | Script error: No such module "If empty". |
Status | Script error: No such module "If empty". |
In use | Script error: No such module "If empty". |
Current commander | Script error: No such module "If empty". |
Past commanders | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
![]() | This template uses Lua: |
Usage
Loring Air Force Base | |||||||||
---|---|---|---|---|---|---|---|---|---|
Limestone Air Force Base | |||||||||
Limestone and Caswell, Maine in United States | |||||||||
![]() USGS 1970 Aerial Photo | |||||||||
![]() Logo of Air Combat Command | |||||||||
Lua error in Module:Location_map at line 399: Malformed coordinates value. | |||||||||
Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. | ||||||||
Type | Air Force Base | ||||||||
Area | 9,000 acres (3,600 ha; 14 sq mi) | ||||||||
Site information | |||||||||
Owner | Script error: No such module "If empty". | ||||||||
Operator | 42nd Bomb Wing | ||||||||
Controlled by | Script error: No such module "If empty". | ||||||||
Open to the public | Yes | ||||||||
Status | Script error: No such module "If empty". | ||||||||
Stations | Caribou Air Force Station (East Loring), Caswell Air Force Station | ||||||||
Site history | |||||||||
Built | 1947 | –1953||||||||
Built by | United States Army Corps of Engineers | ||||||||
In use | Script error: No such module "If empty". | ||||||||
Fate | Mainly intact, partial demolition | ||||||||
Events | Cold War | ||||||||
Garrison information | |||||||||
Current commander | Script error: No such module "If empty". | ||||||||
Past commanders | Script error: No such module "If empty". | ||||||||
Garrison | 42nd Bomb Wing | ||||||||
Occupants | 69th Bombardment Squadron, 70th Bombardment Squadron, 75th Bombardment Squadron, 42d Air Refueling Squadron, 407th Air Refueling Squadron, 2192nd Communications Squadron, 101st Fighter Squadron | ||||||||
Airfield information | |||||||||
Identifiers | IATA: KLIZ, ICAO: LIZ | ||||||||
Elevation | 746 feet (227 m) AMSL | ||||||||
|
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 {{Infobox military installation}} 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 = | type = | coordinates = <!-- {{Coord}} --> | gridref = | 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 = | 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 --> | site_other_label = <!-- for renaming "Other facilities" in infobox --> | site_other = <!-- for other sorts of facilities – radar types etc --> | site_area = <!-- area of site m2, km2 square mile etc --> | code = <!--facility/installation code, applies to US --> | built = <!-- {{Start date|YYYY}} --> | used = <!--{{End date|1946}} --> | builder = | materials = | height = <!-- height of tallest part, not above sea level --> | length = <!-- for border fences or other DMZs --> | fate = <!--changed from demolished parameter--> | condition = | battles = | events = | current_commander = <!-- current commander --> | past_commanders = <!-- past notable commander(s) --> | garrison = <!-- such as the 25th Bombardment Group --> | occupants = <!-- squadrons only --> | designations = | website = | 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.
- engign_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 {{Location map}} for more details.
- map_relief – optional – set to any non-blank value to use a relief map (if available).
- coordinates – optional – latitude and longitude for placing the marker on the location map. Use {{Coord}}; see the Coord template documentation for details.
- gridref – optional – map grid reference.
- 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".
- 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.
- built – optional – the date when the installation was built, usually given in years. Use {{start date}} if 1583 or later.
- builder – optional – the person or group responsible for building the installation.
- materials – optional – the materials used to construct 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.
- floor_area – optional – where relevant (e.g. for buildings), the interior floor area of the installation.
- site_area – optional – where relevant (e.g. for compounds), the land area of the installation.
- used – optional – the period during which the installation was in active military use, usually given in years.
- demolished – optional – the date when the installation was demolished, if applicable.
- condition – optional – the current condition of the installation.
- ownership – optional – the current owner of the installation, if relevant.
- open_to_public – optional – whether the installation is currently open to the general public, if relevant; indicated by "yes" or "no".
- controlledby – optional – the country or other power controlling the installation. Multiple powers may be indicated together with the corresponding dates.
- garrison – optional – the military forces garrisoning the installation. Specific units may be indicated if known; general numbers should be given otherwise.
- 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.
- 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
- 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.
- module – optional – to embed other templates beneath this one.
- embed – optional – to embed this template into another above it.
Microformat
Tracking category
See also
The above documentation is transcluded from Template:Infobox military installation/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |