మూస:Infobox military installation: కూర్పుల మధ్య తేడాలు
Content deleted Content added
add optional ensign= to split ensign from name for better control of microformats and add tracking to find places where newlines are in the name |
update from sandbox2 with non-bolded headers per discussion on talk page |
||
పంక్తి 1:
{{infobox
| bodyclass = vcard
| bodystyle = {{WPMILHIST Infobox style|main_box_raw|vcard}}
| abovestyle = {{WPMILHIST Infobox style|header_raw}}
| above = {{#invoke:string|replace|{{{name|<includeonly>{{PAGENAME}}</includeonly>}}}|
|<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}}
| class1 = nickname
| data1 = ''{{{native_name|}}}{{{nativename|}}}''
}}}}
| 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 {{{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|}}}}}}
|{{Location map|{{{pushpin_map|{{{map_type|}}}}}}
|label = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{#if:{{{pushpin_label|}}}|{{{pushpin_label}}}|{{{name}}}}} }}
|alt = {{{pushpin_map_alt|}}}
Line 61 ⟶ 45:
|relief = {{{pushpin_relief|}}}
|AlternativeMap = {{{pushpin_image|}}}
}}}}
| caption4 = {{{pushpin_map_caption|}}}
| labelstyle = padding-right:1em
| headerstyle = {{WPMILHIST Infobox style|header_raw}}
| label1 = Coordinates
| data1 = {{{coordinates|}}}
| label2 = Type
| label3 = 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 by
| data8 = {{{controlledby|}}}
| label9 = Open to<br />the public
| data9 = {{{open_to_public|}}}
| label10 = {{#if: {{{
| data10 = {{{condition|}}}{{{status|}}}
| label11 = {{#if:{{{site_other_label|}}} | {{{site_other_label}}} | Other site<br>facilities }}
| data11 = {{{site_other|}}}
| label12 = Website
| header13 = {{#if:{{{built|}}}{{{builder|}}}{{{materials|}}}{{{height|}}}{{{used|}}}{{{dates|}}}{{{fate|}}}{{{battles|}}}{{{events|}}} | Site history }}
| label14 = Built
| label15 = In use
| label16 = Built by
| data16 = {{{builder|}}}
| label17 = Materials
| data17 = {{{materials|}}}
| label18 = Height
| data18 = {{{height|}}}
| label19 = 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
| 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 }}
| label32 = [[Environmental remediation|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 -->
| data35 = {{comma separated entries
|3= {{#if:{{{FAA|}}} |[[Location identifier#FAA identifier|FAA LID]]: {{{FAA}}}}}
|4= {{#if:{{{TC|}}} | [[Location identifier#Transport Canada identifier|TC LID]]: {{{TC}}}}}
|5= {{#if:{{{
|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|}}}|
<tr style="background-color: #ddd">
<th colspan=2 style="border:solid 1px #fafafa; border-width:0 0 1px 0;">Runways</th>
<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: left;">{{{r1-length}}} {{{r1-surface}}}</td>
</tr>{{#if:{{{r2-number|}}} {{{r2-length|}}} {{{r2-surface|}}}|
<tr>
</tr>}}{{#if:{{{r3-number|}}} {{{r3-length|}}} {{{r3-surface|}}}|
<tr>
<td style="text-align: center;">{{{r3-number|}}}</td>
<tr>
<td style="text-align: center;">{{{r4-number|}}}</td>
</tr>}}{{
<tr>
<td style="text-align: center;">{{{r5-number|}}}</td>
<td style="text-align: left;">{{{r5-length}}} {{{r5-surface}}}</td>
</tr>}}{{#if:
<tr>
<td style="text-align: left;">{{{r6-length}}} {{{r6-surface}}}</td>
</tr>}}{{#if:{{{r7-number|}}} {{{r7-length|}}} {{{r7-surface|}}}|
<tr>
</tr>}}{{#if:{{{r8-number|}}} {{{r8-length|}}} {{{r8-surface|}}}|
<tr>
<tr>
<td style="text-align: center;">{{{r9-number|}}}</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 scope=col style="font-weight:normal; width: 25%; border:solid 1px #fafafa; border-width:1px 1px 0 0; padding:1px 2px;">Number</th>
</tr>
{{
<tr>
<td style="text-align: center;">{{{h1-number|}}}</td>
</tr>}}
{{
<tr>
<td style="text-align: center;">{{{h2-number|}}}</td>
</tr>}}
{{
<tr>
<td style="text-align: center;">{{{h3-number|}}}</td>
</tr>}}
{{
<tr>
<td style="text-align: center;">{{{h4-number|}}}</td>
</tr>}}
<tr>
<td style="text-align: center;">{{{h5-number|}}}</td>
</tr>}}
{{
<tr>
<td style="text-align: center;">{{{h6-number|}}}</td>
<td style="text-align: left;">{{{h6-length}}} {{{h6-surface}}}</td>
</tr>}}</table>}}
| label41 = {{#if:{{{airfield_other_label|}}} | {{{airfield_other_label}}} | Other airfield<br>facilities }}
| data41 = {{{airfield_other|}}}
| }}<noinclude>
{{Documentation}}
<!-- Please add categories to the /doc subpage, not here. -->
|