Template:Infobox military installation/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#ifeq:{{{noheader|}}}|yes| {{#ifeq:{{#invoke:High-use|num|x|demo={{ROOTPAGENAME}}}}|many||{{High-use|demo={{ROOTPAGENAME}}}}}} ==== Military installation infobox ==== |{{Documentation subpage}} {{Lua|Module:Infobox|Module:InfoboxImage|Module:String|Module:Check for unknown parameters}} ==Usage== }} {{Infobox military installation | name = Loring Air Force Base | native_name = Limestone Air Force Base | partof = | location = Limestone and Casw...") |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{ | {{infobox | ||
{{#ifeq:{{#invoke: | | child = {{#ifeq:{{{embed|}}}|yes|yes}} | ||
| bodyclass = vcard | |||
| bodystyle = {{WPMILHIST Infobox style|main_box_raw|vcard}} | |||
| abovestyle = {{WPMILHIST Infobox style|header_raw}} | |||
| subheaderstyle1 = {{WPMILHIST Infobox style|header_raw}}; font-weight:bold; | |||
| {{#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|}}}}} {{#invoke:InfoboxImage|InfoboxImage|image={{{ensign2|}}}|size={{{ensign2_size|}}}|sizedefault=90px|alt={{{ensign2_alt|}}}}}</div>}} | |||
==== | | subheaderstyle2 = {{WPMILHIST Infobox style|header_raw}} | ||
|{{ | | subheader2 = {{br separated entries | ||
{{ | |1 = {{#if:{{{native_name|}}}|<div style="display:inline;" class="nickname">''{{{native_name|}}}''</div>}} | ||
|2 = {{#if:{{{nativename|}}}|<div style="display:inline;" class="nickname">''{{{nativename|}}}''</div>}} | |||
|3 = {{#if:{{{nativename-a|}}}|<div style="display:inline;" class="nickname">{{{nativename-a}}}</div>}} | |||
|4 = {{#if:{{{nativename-r|}}}|<div style="display:inline;" class="nickname">{{{nativename-r}}}</div>}} | |||
}} | |||
| subheaderstyle3 = {{WPMILHIST Infobox style|sub_header_raw}} | |||
| subheader3 = {{#if:{{{partof|}}}| Part of {{{partof}}}}} | |||
| subheaderstyle4 = {{WPMILHIST Infobox style|sub_header_raw}} | |||
| subheader4 = {{#if:{{{location|}}}{{{nearest_town|}}}{{{country|}}} | |||
|<span class="label">{{br separated entries | |||
|1={{{location|}}} | |||
|2={{#if:{{{nearest_town|}}}|Near {{{nearest_town}}} }} | |||
}} {{#if:{{{country|}}} | {{#if:{{{location|}}}{{{nearest_town|}}}|in }}{{{country}}}}}</span> | |||
}} | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=250px|alt={{{image_alt|{{{alt|}}}}}}}} | |||
| caption = {{{caption|}}} | |||
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image2_size|}}}|sizedefault=75px|alt={{{image2_alt|{{{alt2|}}}}}}}} | |||
| caption2 = {{{caption2|}}} | |||
| image3 = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|{{{image_map|}}}}}}|size={{{map_size|{{{image_mapsize|}}}}}}|sizedefault=250px|alt={{{map_alt|{{{image_map_alt|}}}}}}}} | |||
| caption3 = {{{map_caption|{{{image_map_caption|}}}}}} | |||
| image4 = {{#if:{{{pushpin_map|{{{map_type|}}}}}} | |||
|{{Location map|{{{pushpin_map|{{{map_type|}}}}}} | |||
|label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{#if:{{{pushpin_label|}}}|{{{pushpin_label}}}|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}} }} | |||
|alt = {{{pushpin_map_alt|}}} | |||
|coordinates = {{{coordinates|}}} | |||
|mark = {{#if: {{{pushpin_mark|}}} | {{{pushpin_mark}}} | Red_pog.svg }} | |||
|marksize = {{#if: {{{pushpin_marksize|}}} | {{{pushpin_marksize}}} | 10 }} | |||
|float = center | |||
|caption = {{{pushpin_map_caption|}}} | |||
|border = infobox | |||
|position = {{{pushpin_label_position|}}} | |||
|width = {{#if:{{{pushpin_mapsize|{{{map_size|}}}}}}|{{{pushpin_mapsize|{{{map_size|}}}}}} | 250 }} | |||
|relief = {{{pushpin_relief|{{{map_relief|}}}}}} | |||
|AlternativeMap = {{{pushpin_image|}}} | |||
}}}} | |||
| labelstyle = padding-right:1em | |||
| headerstyle = {{WPMILHIST Infobox style|header_raw}} | |||
| label1 = Coordinates | |||
| data1 = {{#if:{{{coordinates|}}}|{{{coordinates}}} {{{coordinates_footnotes|{{{coord_footnotes|}}}}}} }} | |||
== | | label2 = [[Grid reference]] | ||
}} | | data2 = {{{gridref|}}} | ||
| label3 = Type | |||
| data3 = {{{type|}}} | |||
| label4 = Code | |||
| data4 = {{{code|}}} | |||
| label5 = Area | |||
| data5 = {{{site_area|}}} | |||
| label6 = Floor area | |||
| data6 = {{{floor_area|}}} | |||
| label7 = Height | |||
| data7 = {{{height|}}} | |||
| label8 = Length | |||
| data8 = {{{length|}}} | |||
| header9 ={{#if:{{{ownership|}}}{{{owner|}}}{{{operator|}}}{{{controlledby|}}}{{{controlled by|}}}{{{controlled_by|}}}{{{open_to_public|}}}{{{condition|}}}{{{status|}}}{{{site_other|}}}{{{website|}}}|Site information}} | |||
| label10 = Owner | |||
| data10 = {{if empty|{{{ownership|}}}|{{{owner|}}}}} | |||
| label11 = Operator | |||
| data11 = {{{operator|}}} | |||
| label12 = Controlled by | |||
| data12 = {{if empty|{{{controlledby|}}}|{{{controlled by|}}}|{{{controlled_by|}}}}} | |||
| label13 = Open to<br />the public | |||
| data13 = {{{open_to_public|}}} | |||
| label14 = {{#if: {{{condition|}}}|Condition|Status}} | |||
| data14 = {{if empty|{{{condition|}}}|{{{status|}}}}} | |||
| label15 = {{#if:{{{site_other_label|}}} | {{{site_other_label}}} | Other site<br>facilities }} | |||
| data15 = {{{site_other|}}} | |||
| label16 = Website | |||
| data16 = {{{website|}}} | |||
| header17 = {{#if:{{{built|}}}{{{built_for|}}}{{{builder|}}}{{{architect|}}}{{{used|}}}{{{dates|}}}{{{materials|}}}{{{fate|}}}{{{demolished|}}}{{{battles|}}}{{{events|}}} | Site history }} | |||
| label18 = Built | |||
| data18 = {{{built|}}} | |||
| label19 = Built for | |||
| data19 = {{{built_for|}}} | |||
| label20 = Built by | |||
| data20 = {{{builder|}}} | |||
| label21 = Architect | |||
| data21 = {{{architect|}}} | |||
| label22 = In use | |||
| data22 = {{if empty|{{{used|}}}|{{{dates|}}}}} | |||
| label23 = Materials | |||
| data23 = {{{materials|}}} | |||
| label24 = Fate | |||
| data24 = {{{fate|}}} | |||
| label25 = Demolished | |||
| data25 = {{{demolished|}}} | |||
| label26 = Battles/wars | |||
| data26 = {{{battles|}}} | |||
| label27 = Events | |||
| data27 = {{{events|}}} | |||
| header28 = {{#if:{{{commander|}}}{{{current_commander|}}}{{{past_commanders|{{{commanders|}}}}}}{{{garrison|}}}{{{occupants|}}} | Garrison information }} | |||
| label29 = Current<br />commander | |||
| data29 = {{if empty|{{{current_commander|}}}|{{{commander|}}}}} | |||
| label30 = Past<br />commanders | |||
| data30 = {{if empty|{{{past_commanders|}}}|{{{commanders|}}}}} | |||
| label31 = Garrison | |||
| data31 = {{{garrison|}}} | |||
| label32 = Occupants | |||
| data32 = {{{occupants|}}} | |||
| label33 = Designations | |||
| data33 = {{{designations|}}} | |||
| header34 = {{#if:{{{subcritical_tests|}}}{{{nuclear_tests|}}}{{{thermonuclear_tests|}}}{{{other_tests|}}}{{{remediation|}}} | Test information }} | |||
| label35 = [[Subcritical]] tests | |||
| data35 = {{{subcritical_tests|}}} | |||
| label36 = [[Nuclear fission|Nuclear]] tests | |||
| | | data36 = {{{nuclear_tests|}}} | ||
| | |||
| | |||
| | |||
| | |||
| label37 = [[Nuclear fusion|Thermonuclear]] tests | |||
| data37 = {{{thermonuclear_tests|}}} | |||
| label38 = {{#if:{{{other_tests_label|}}} | {{{other_tests_label}}} | Other tests }} | |||
| data38 = {{{other_tests|}}} | |||
| label39 = [[Environmental remediation|Remediation]] | |||
| data39 = {{{remediation|}}} | |||
| | |||
| | |||
| | |||
}} | |||
<!-- image3 testing area (START) --> | |||
| data40 = {{#if:{{{image3|}}}| | |||
{{#invoke:InfoboxImage|InfoboxImage|image={{{image3|}}}|size={{{image3_size|}}}|sizedefault=250px|alt={{{image3_alt|{{{alt3|}}}}}}}}{{#if:{{{caption3|}}}|<div>{{{caption3|}}}</div>}}}} | |||
<!-- image3 testing area (END) --> | |||
| header41 = {{#if:{{{r1-number|}}}{{{r1-length|}}}{{{r1-surface|}}}{{{h1-number|}}}{{{h1-length|}}}{{{h1-surface|}}}{{{airfield_other|}}}{{{elevation|}}}{{{IATA|}}}{{{ICAO|}}}{{{FAA|}}}{{{TC|}}}{{{LID|}}}{{{GPS|}}}{{{WMO|}}} |Airfield information}} | |||
| r1-length | |||
| h1-number | |||
| h1-length | |||
| | |||
| | |||
| | |||
<!-- this next bit is to display ICAO, IATA etc codes if the airfield has (any of) these --> | |||
| label42 = Identifiers | |||
| data42 = {{comma separated entries | |||
|1= {{#if:{{{IATA|}}} | [[International Air Transport Association airport code|IATA]]: {{{IATA|}}}}} | |||
|2= {{#if:{{{ICAO|}}} | [[International Civil Aviation Organization airport code|ICAO]]: {{{ICAO}}}}} | |||
|3= {{#if:{{{FAA|}}} |[[Location identifier#FAA identifier|FAA LID]]: {{{FAA}}}}} | |||
|4= {{#if:{{{TC|}}} | [[Location identifier#Transport Canada identifier|TC LID]]: {{{TC}}}}} | |||
|5= {{#if:{{{LID|}}}| [[Location identifier|LID]]: {{{LID}}}}} | |||
|6= {{#if:{{{GPS|}}}| [[Global Positioning System|GPS]]: {{{GPS}}}}} | |||
|7= {{#if:{{{WMO|}}}| [[Location identifier#WMO station identifiers|WMO]]: {{{WMO}}}}} | |||
}} | |||
{{# | | label43 = Elevation | ||
| data43 = {{#if:{{{elevation|}}} |{{{elevation}}} [[Above mean sea level|AMSL]] }} | |||
== | | data44 = {{#if: {{{r1-number|}}} {{{r1-length|}}} {{{r1-surface|}}}| | ||
{{ | <table style="width:100%; margin:-2px -1px -1px -1px; border-spacing:0;"> | ||
<tr style="background-color: #ddd"> | |||
<th colspan=2 style="font-weight:normal; border:solid 1px #fafafa; border-width:0 0 1px 0;">Runways</th> | |||
</tr><tr style="background-color: #ddd; text-align: left;"> | |||
<th scope=col style="font-weight:normal; width: 25%; border:solid 1px #fafafa; border-width:1px 1px 0 0;padding:1px 2px;">[[Runway#Orientation and dimensions|Direction]]</th> | |||
<th scope=col style="font-weight:normal; width: 75%; border:solid 1px #fafafa; border-width:1px 0 0 1px;padding:1px 2px;">Length and surface</th> | |||
</tr><tr> | |||
<td style="text-align: center;">{{{r1-number|}}}</td> | |||
<td style="text-align: left;">{{{r1-length}}} {{{r1-surface}}}</td> | |||
</tr>{{#if:{{{r2-number|}}} {{{r2-length|}}} {{{r2-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r2-number|}}}</td> | |||
<td style="text-align: left;">{{{r2-length}}} {{{r2-surface}}}</td> | |||
</tr>}}{{#if:{{{r3-number|}}} {{{r3-length|}}} {{{r3-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r3-number|}}}</td> | |||
<td style="text-align: left;">{{{r3-length}}} {{{r3-surface}}}</td> | |||
</tr>}}{{#if:{{{r4-number|}}} {{{r4-length|}}} {{{r4-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r4-number|}}}</td> | |||
<td style="text-align: left;">{{{r4-length}}} {{{r4-surface}}}</td> | |||
</tr>}}{{#if:{{{r5-number|}}} {{{r5-length|}}} {{{r5-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r5-number|}}}</td> | |||
<td style="text-align: left;">{{{r5-length}}} {{{r5-surface}}}</td> | |||
</tr>}}{{#if:{{{r6-number|}}} {{{r6-length|}}} {{{r6-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r6-number|}}}</td> | |||
<td style="text-align: left;">{{{r6-length}}} {{{r6-surface}}}</td> | |||
</tr>}}{{#if:{{{r7-number|}}} {{{r7-length|}}} {{{r7-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r7-number|}}}</td> | |||
<td style="text-align: left;">{{{r7-length}}} {{{r7-surface}}}</td> | |||
</tr>}}{{#if:{{{r8-number|}}} {{{r8-length|}}} {{{r8-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r8-number|}}}</td> | |||
<td style="text-align: left;">{{{r8-length}}} {{{r8-surface}}}</td> | |||
</tr>}}{{#if:{{{r9-number|}}} {{{r9-length|}}} {{{r9-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{r9-number|}}}</td> | |||
<td style="text-align: left;">{{{r9-length}}} {{{r9-surface}}}</td> | |||
</tr>}}</table>}} | |||
== | | data45 = {{#if: {{{h1-number|}}} {{{h1-length|}}} {{{h1-surface|}}}| | ||
<table style="width:100%; margin:-2px -1px -1px -1px; border-spacing:0;"> | |||
<tr style="background-color: #ddd"> | |||
<th colspan=2 style="font-weight:normal; border:solid 1px #fafafa; border-width:0 0 1px 0;">Helipads</th> | |||
</tr><tr style="background-color: #ddd; text-align: left;"> | |||
<th scope=col style="font-weight:normal; width: 25%; border:solid 1px #fafafa; border-width:1px 1px 0 0; padding:1px 2px;">Number</th> | |||
<th scope=col style="font-weight:normal; width: 75%; border:solid 1px #fafafa; border-width:1px 0 0 1px; padding:1px 2px;">Length and surface</th> | |||
</tr> | |||
{{#if:{{{h1-number|}}} {{{h1-length|}}} {{{h1-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{h1-number|}}}</td> | |||
<td style="text-align: left;">{{{h1-length}}} {{{h1-surface}}}</td> | |||
</tr>}} | |||
{{#if:{{{h2-number|}}} {{{h2-length|}}} {{{h2-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{h2-number|}}}</td> | |||
<td style="text-align: left;">{{{h2-length}}} {{{h2-surface}}}</td> | |||
</tr>}} | |||
{{#if:{{{h3-number|}}} {{{h3-length|}}} {{{h3-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{h3-number|}}}</td> | |||
<td style="text-align: left;">{{{h3-length}}} {{{h3-surface}}}</td> | |||
</tr>}} | |||
{{#if:{{{h4-number|}}} {{{h4-length|}}} {{{h4-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{h4-number|}}}</td> | |||
<td style="text-align: left;">{{{h4-length}}} {{{h4-surface}}}</td> | |||
</tr>}} | |||
{{#if:{{{h5-number|}}} {{{h5-length|}}} {{{h5-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{h5-number|}}}</td> | |||
<td style="text-align: left;">{{{h5-length}}} {{{h5-surface}}}</td> | |||
</tr>}} | |||
{{#if:{{{h6-number|}}} {{{h6-length|}}} {{{h6-surface|}}}| | |||
<tr> | |||
<td style="text-align: center;">{{{h6-number|}}}</td> | |||
<td style="text-align: left;">{{{h6-length}}} {{{h6-surface}}}</td> | |||
</tr>}}</table>}} | |||
= | | label46 = {{#if:{{{airfield_other_label|}}} | {{{airfield_other_label}}} | Other airfield<br>facilities }} | ||
{{ | | data46 = {{{airfield_other|}}} | ||
{{ | |||
< | |||
{{ | |||
= | | header47 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}} | ||
| belowstyle = text-align: left; background-color: #eee | |||
| 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_" | |||
| 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|Δ]] | |||
}}{{#ifeq:{{#invoke:string|replace|{{{name|{{PAGENAME}}}}}|.* | |||
.*|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. --> | |||
{ | </noinclude> | ||
Revision as of 19:21, 26 December 2023
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |