Difference between revisions of "Template:Infobox military installation/sandbox3"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
imported>DePiep
m (rm old code)
 
Line 1: Line 1:
{{infobox
+
rm old code
| bodyclass = <!--vcard-->
 
| bodystyle = <!--{{WPMILHIST Infobox style|main_box_raw|vcard}} -->
 
| abovestyle = <!--{{WPMILHIST Infobox style|header_raw}}-->
 
| above = ABOVE<!--{{#invoke:string|replace
 
|source={{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
 
|pattern=
 
|replace=<br />
 
|plain=false}}--><!--
 
--><!--{{#if:{{{ensign|}}}
 
|<div style="padding-bottom:2px">{{#invoke:InfoboxImage|InfoboxImage|image={{{ensign|}}}|size={{{ensign_size|}}}|sizedefault=90px|alt={{{ensign_alt|}}}}}</div>}}-->
 
 
 
<!--{{#if:{{{native_name|}}}{{{nativename|}}}
 
|
 
{{Infobox|child=yes
 
| datastyle = <!--{{WPMILHIST Infobox style|header_raw}}-xxx->
 
| class1 = nickname
 
| data1 = ''{{{native_name|}}}{{{nativename|}}}''
 
}}}}-->
 
<!--| labelstyle = text-align:inherit-->
 
| subheaderstyle = <!--{{WPMILHIST Infobox style|sub_header_raw}}-->
 
| subheader1 = {{#if:{{{partof|}}}| Part of {{{partof}}}}}
 
| subheader2 = {{#if:{{{location|}}}{{{nearest_town|}}}{{{country|}}} |<span class="label">{{#if:{{{location|}}} |{{{location}}} | Near {{{nearest_town}}} }} {{#if:{{{country|}}} | in&nbsp;{{{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|}}}|size={{{map_size|}}}|sizedefault=250px|alt={{{map_alt|}}}}}
 
| caption3 = {{{map_caption|}}}
 
 
 
| image4 =<!--
 
{{#if:{{{pushpin_map|{{{map_type|}}}}}}|<!--
 
if_then: -aaa->{{Location map|{{{pushpin_map|{{{map_type|}}}}}}
 
|label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{#if:{{{pushpin_label|}}}|{{{pushpin_label}}}|{{{name}}}}} }}
 
|alt = {{{pushpin_map_alt|}}}
 
|lat = {{#if:{{{latm|}}}{{{latNS|}}}| |{{{latd|{{{latitude|}}}}}} }}
 
|long = {{#if:{{{longm|}}}{{{longEW|}}}| |{{{longd|{{{longitude|}}}}}} }}
 
|lat_deg={{#if:{{{latm|}}}{{{latNS|}}}|{{{latd|}}}| }}
 
|lat_min={{#if:{{{latm|}}}{{{latNS|}}}|{{{latm|}}}| }}
 
|lat_sec={{#if:{{{lats|}}}{{{latNS|}}}|{{{lats|}}}| }}
 
|lat_dir={{#if:{{{latNS|}}}|{{{latNS|}}}| }}
 
|lon_deg={{#if:{{{longm|}}}{{{longEW|}}}|{{{longd|}}}| }}
 
|lon_min={{#if:{{{longm|}}}{{{longEW|}}}|{{{longm|}}}| }}
 
|lon_sec={{#if:{{{longs|}}}{{{longEW|}}}|{{{longs|}}}| }}
 
|lon_dir={{#if:{{{longEW|}}}|{{{longEW|}}}| }}
 
|mark = {{#if: {{{pushpin_mark|}}} | {{{pushpin_mark}}} | Red_pog.svg }}
 
|marksize = {{#if: {{{pushpin_marksize|}}} | {{{pushpin_marksize}}} | 10 }}
 
|float = center
 
|caption =
 
|border = none
 
|position = <!--{{{pushpin_label_position|}}}-aaa->
 
|width = <!--{{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize|}}}|220}}-aaa->
 
|relief = <!--{{{pushpin_relief|}}}-aaa->
 
|AlternativeMap = <!--{{{pushpin_image|}}}-aaa->
 
}}
 
}}
 
-->
 
| caption4 = {{{pushpin_map_caption|}}}
 
<!-- end of image4
 
-->
 
| xxxlabelstyle = padding-right:1em
 
| headerstyle =<!-- {{WPMILHIST Infobox style|header_raw}}-->
 
 
 
| label1 =  Coordinates
 
| data1 = {{{coordinates|}}}
 
 
 
| label2 =  Type
 
| data2 =  {{{type|}}}
 
 
 
| label3 =  Code
 
| data3 = {{{code|}}}
 
 
 
| label4 =  Area
 
| data4 = {{{area|}}}
 
 
 
 
 
| header5 ={{#if:{{{ownership|}}}{{{owner|}}}{{{operator|}}}{{{controlledby|}}}{{{open_to_public|}}}{{{condition|}}}{{{status|}}}{{{site_other|}}}{{{website|}}}|Site information}}
 
 
 
| label6 =  Owner
 
| data6 = {{{ownership|}}}{{{owner|}}}
 
 
 
| label7 =  Operator
 
| data7 = {{{operator|}}}
 
 
 
| label8 =  Controlled&nbsp;by
 
| data8 = {{{controlledby|}}}
 
 
 
| label9 =  Open&nbsp;to<br />the&nbsp;public
 
| data9 = {{{open_to_public|}}}
 
 
 
| label10 =  {{#if: {{{condition|}}}|Condition|Status}}
 
| data10 = {{{condition|}}}{{{status|}}}
 
 
 
| label11 =  {{#if:{{{site_other_label|}}} | {{{site_other_label}}} | Other site<br>facilities }}
 
| data11 = {{{site_other|}}}
 
 
 
| label12 =  Website
 
| data12 = {{{website|}}}
 
 
 
| header13 = {{#if:{{{built|}}}{{{builder|}}}{{{materials|}}}{{{height|}}}{{{used|}}}{{{dates|}}}{{{fate|}}}{{{battles|}}}{{{events|}}} | Site history }}
 
 
 
| label14 =  Built
 
| data14 = {{{built|}}}
 
 
 
| label15 =  In&nbsp;use
 
| data15 = {{{used|}}}{{{dates|}}}
 
 
 
| label16 =  Built&nbsp;by
 
| data16 = {{{builder|}}}
 
 
 
| label17 =  Materials
 
| data17 = {{{materials|}}}
 
 
 
| label18 =  Height
 
| data18 = {{{height|}}} 
 
 
 
| label19 =  Fate
 
| data19 = {{{fate|}}} 
 
 
 
| label20 =  Battles/wars
 
| data20 = {{{battles|}}}
 
 
 
| label21 =  Events
 
| data21 = {{{events|}}} 
 
 
 
| header22 = {{#if:{{{commander|}}}{{{current_commander|}}}{{{past_commanders|{{{commanders|}}}}}}{{{garrison|}}}{{{occupants|}}} |  Garrison information  }}
 
 
 
| label23 =  Current<br />commander 
 
| data23 = {{{current_commander|}}}{{{commander|}}}
 
 
 
| label24 =  Past<br />commanders
 
| data24 = {{{past_commanders|{{{commanders|}}}}}}
 
 
 
| label25 =  Garrison 
 
| data25 = {{{garrison|}}}
 
 
 
| label26 =  Occupants
 
| data26 = {{{occupants|}}} 
 
 
 
| header27 = {{#if:{{{subcritical_tests|}}}{{{nuclear_tests|}}}{{{thermonuclear_tests|}}}{{{other_tests|}}}{{{remediation|}}} | Test information  }}
 
 
 
| label28 = [[Subcritical]] tests
 
| data28 = {{{subcritical_tests|}}}
 
 
 
| label29 = [[Nuclear fission|Nuclear]] tests
 
| data29 = {{{nuclear_tests|}}} 
 
 
 
| label30 = [[Nuclear fusion|Thermonuclear]] tests 
 
| data30 = {{{thermonuclear_tests|}}}
 
 
 
| label31 = {{#if:{{{other_tests_label|}}} | {{{other_tests_label}}} | Other tests }} 
 
| data31 = {{{other_tests|}}}
 
 
 
| label32 = [[Environmental remediation|Remediation]]
 
| data32 = {{{remediation|}}}
 
 
 
<!-- image3 testing area (START) -->
 
| data33 = {{#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) -->
 
 
 
 
 
| header34 = {{#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}}
 
 
 
<!-- this next bit is to display ICAO, IATA etc codes if the airfield has (any of) these -->
 
 
 
| label35 =  Identifiers
 
| data35 = {{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}}}}}
 
}}
 
 
 
| label36 =  Elevation
 
| data36 = {{#if:{{{elevation|}}} |{{{elevation}}} [[Above mean sea level|AMSL]] }}
 
 
 
| data38 = <!--{{#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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{r9-surface}}}</td>
 
</tr>}}</table>}}-->
 
 
 
| data40 =<!-- {{#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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{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}}}&nbsp;{{{h6-surface}}}</td>
 
</tr>}}</table>}}
 
-->
 
 
 
| label41 =  {{#if:{{{airfield_other_label|}}} | {{{airfield_other_label}}} | Other airfield<br>facilities }}
 
| data41 = {{{airfield_other|}}}
 
 
 
| belowstyle = text-align: left; background-color: #eee
 
| below = {{{footnotes|}}}
 
}}<!--{{#ifeq:{{#invoke:string|replace |{{{name|}}} |.*.*|CHECK |plain=false }}|CHECK |[[:Category:XXX]]}}
 
{{#if:{{{lat|}}}{{{long|}}}
 
|[[:Category:ZZZ<!--Pages using infobox military installation with deprecated syntax-xxx->]]}}-->
 

Latest revision as of 22:14, 22 November 2014

rm old code