Jump to content

Template:Infobox Airport: Difference between revisions

From IdeaWazaWiki
wikademia>Trevor MacInnis
m format
wikademia>Malyctenar
simplify code
Line 1: Line 1:
{| class="infobox bordered vcard" style="width:220px; font-size:80%; line-height:160%;"
{| class="infobox bordered vcard" style="width:22em; font-size:80%; line-height:160%;"


! colspan="4" style="background-color:#4682B4; color:white; line-height:180%;" | <span class="fn" style="font-size:120%;">{{{name}}}</span> <!--
! colspan="4" style="background:#4682B4; color:white; line-height:180%;" | <div class="fn" style="font-size:120%">{{{name}}}</div><!--
-->{{#if: {{{nativename<includeonly>|</includeonly>}}} | <br>{{{nativename}}} |}}<!--
-->{{#if: {{{nativename<includeonly>|</includeonly>}}} | {{{nativename}}} <br>}}<!--
-->{{#if: {{{nativename-a<includeonly>|</includeonly>}}} | <br><span style="font-size:120%;">{{{nativename-a}}}</span> |}}<!--
-->{{#if: {{{nativename-a<includeonly>|</includeonly>}}} | <div style="font-size:120%"> {{{nativename-a}}} </div>}}<!--
-->{{#if: {{{nativename-r<includeonly>|</includeonly>}}} | <br>{{{nativename-r}}} |}}
-->{{#if: {{{nativename-r<includeonly>|</includeonly>}}} | {{{nativename-r}}} }}


|-
|-
{{#if: {{{image<includeonly>|</includeonly>}}}|
{{#if: {{{image<includeonly>|</includeonly>}}}|
{{!}} colspan="4" style="vertical-align:bottom; text-align:center;" {{!}} <p>[[Image:{{{image}}}|{{#if:{{{image-width|}}}|{{{image-width}}}|200}}px]]{{#if:{{{caption<includeonly>|</includeonly>}}}|<br/>{{{caption}}}|}}</p>
{{!}} colspan="4" style="text-align:center;" {{!}} [[Image:{{{image}}}|{{#if: {{{image-width|}}} |{{{image-width}}}|200}}px]]{{#if: {{{caption<includeonly>|</includeonly>}}}|<br/>{{{caption}}} }}
|}}
|}}


|-
|-
{{#if: {{{image2|}}}|
{{#if: {{{image2|}}}|
{{!}} colspan="4" style="vertical-align:bottom; text-align:center;" {{!}} <p>[[Image:{{{image2}}}|{{#if:{{{image2-width|}}}|{{{image2-width}}}|200}}px]]{{#if:{{{caption2|}}}|<br/>{{{caption2}}}|}}</p>
{{!}} colspan="4" style="text-align:center;" {{!}} [[Image:{{{image2}}}|{{#if: {{{image2-width|}}} |{{{image2-width}}}|200}}px]]{{#if: {{{caption2|}}} |<br/>{{{caption2}}} }}
|}}
}}


|-
|-
! colspan="4" style="white-space:nowrap;" | [[International Air Transport Association airport code|IATA]]: {{#if:{{{IATA<includeonly>|</includeonly>}}}|{{{IATA}}}|''none''}} &ndash; [[International Civil Aviation Organization airport code|ICAO]]: {{#if:{{{ICAO<includeonly>|</includeonly>}}}|{{{ICAO}}}|''none''}} {{#if:{{{FAA|}}}| &ndash; [[Location_identifier|FAA]]: {{{FAA}}}|}} {{#if:{{{LID|}}}| &ndash; [[Location_identifier|LID]]: {{{LID}}}|}}
! colspan="4" | [[International Air Transport Association airport code|IATA]]: {{#if: {{{IATA<includeonly>|</includeonly>}}} |{{{IATA}}}|''none''}} – [[International Civil Aviation Organization airport code|ICAO]]: {{#if: {{{ICAO<includeonly>|</includeonly>}}} |{{{ICAO}}}|''none''}} {{#if: {{{FAA|}}} | – [[Location identifier|FAA]]:&nbsp;{{{FAA}}} }} {{#if: {{{LID|}}} | – [[Location identifier|LID]]:&nbsp;{{{LID}}} }}


|- style="background-color:#4682B4; color:white; font-size:120%;"
|- style="background:#4682B4; color:white; font-size:120%;"
! colspan="4" | Summary
! colspan="4" | Summary


|- class="note" style="text-align:left;"
|- class="note" style="text-align:left;"
{{#if: {{{type<includeonly>|</includeonly>}}}|
{{#if: {{{type<includeonly>|</includeonly>}}} |
!    colspan="2" {{!}} Airport type
!    colspan="2" {{!}} Airport type
{{!}} colspan="2" {{!}} {{{type}}}
{{!}} colspan="2" {{!}} {{{type}}}
|}}
}}


|- class="note" style="text-align:left;"  
|- class="note" style="text-align:left;"  
Line 37: Line 37:
!    colspan="2" {{!}} Owner
!    colspan="2" {{!}} Owner
{{!}} colspan="2" {{!}} {{{owner}}}
{{!}} colspan="2" {{!}} {{{owner}}}
|}}
}}
{{!}}- style="text-align:left;"
{{!}}-
{{#if: {{{operator<includeonly>|</includeonly>}}}|
{{#if: {{{operator<includeonly>|</includeonly>}}}|
!     colspan="2" {{!}} Operator
! colspan="2" style="text-align:left" {{!}} Operator
{{!}} colspan="2" {{!}} <span class="org">{{{operator}}}</span>
{{!}} colspan="2" {{!}} <span class="org">{{{operator}}}</span>
|}}
}}
}}
}}


Line 49: Line 49:
!    colspan="2" {{!}} Serves
!    colspan="2" {{!}} Serves
{{!}} colspan="2" {{!}} <span class="region">{{{city-served}}}</span>
{{!}} colspan="2" {{!}} <span class="region">{{{city-served}}}</span>
|}}
}}


|- style="text-align:left;" class="adr"
|- style="text-align:left;" class="adr"
Line 55: Line 55:
!    colspan="2" {{!}} Location
!    colspan="2" {{!}} Location
{{!}} colspan="2" {{!}} <span class="locality">{{{location}}}</span>
{{!}} colspan="2" {{!}} <span class="locality">{{{location}}}</span>
|}}
}}


|- style="text-align:left;"
|-
{{#if: {{{built|}}}|
{{#if: {{{built|}}}|
!     colspan="2" {{!}} Built
! colspan="2" style="text-align:left" {{!}} Built
{{!}} colspan="2" {{!}} {{{built}}}
{{!}} colspan="2" {{!}} {{{built}}}
|}}
}}


|- style="text-align:left;"
|-
{{#if: {{{used|}}}|
{{#if: {{{used|}}}|
!     colspan="2" {{!}} In use
! colspan="2" style="text-align:left" {{!}} In use
{{!}} colspan="2" {{!}} {{{used}}}
{{!}} colspan="2" {{!}} {{{used}}}
|}}
}}


|- style="text-align:left;"
|-
{{#if: {{{commander|}}}|
{{#if: {{{commander|}}}|
!     colspan="2" {{!}} Commander
! colspan="2" style="text-align:left" {{!}} Commander
{{!}} colspan="2" {{!}} {{{commander}}}
{{!}} colspan="2" {{!}} {{{commander}}}
|}}
}}


|- style="text-align:left;"
|- style="text-align:left;"
Line 79: Line 79:
!    colspan="2" {{!}} Occupants
!    colspan="2" {{!}} Occupants
{{!}} colspan="2" {{!}} {{{occupants}}}
{{!}} colspan="2" {{!}} {{{occupants}}}
|}}
}}


|- style="text-align:left;"
|- style="text-align:left;"
Line 89: Line 89:
|}}
|}}


|- style="text-align:left;"
|-
{{#if: {{{coordinates<includeonly>|</includeonly>}}}|
{{#if: {{{coordinates<includeonly>|</includeonly>}}}|
!     colspan="2" {{!}} [[Geographic coordinate system|Coordinates]]
! style="text-align:left;" colspan="2" {{!}} [[Geographic coordinate system|Coordinates]]
{{!}} colspan="2" {{!}} {{{coordinates}}}
{{!}} colspan="2" {{!}} {{{coordinates}}}
|}}
|}}


|- style="text-align:left;"
|-
{{#if: {{{website<includeonly>|</includeonly>}}}|
{{#if: {{{website<includeonly>|</includeonly>}}}|
!     colspan="2" {{!}} Website
! style="text-align:left;" colspan="2" {{!}} Website
{{!}} colspan="2" {{!}} <span class="plainlinksneverexpand">{{{website}}}</span>
{{!}} colspan="2" {{!}} <span class="plainlinksneverexpand">{{{website}}}</span>
|}}
|}}


|- style="background-color:#4682B4; color:white; font-size:120%;"
|-
{{#if:{{{r1-number<includeonly>|</includeonly>}}}{{{r1-length-f|}}}{{{r1-length-m|}}}{{{r1-surface|}}}|
{{#if: {{{r1-number<includeonly>|</includeonly>}}}{{{r1-length-f|}}}{{{r1-length-m|}}}{{{r1-surface|}}} |
! colspan="4" {{!}} Runways
! colspan="4" style="background:#4682B4; color:white; font-size:120%" {{!}} Runways
{{!}}- style="background-color:#DDDDDD;"
{{!}}- style="background :#DDD"
! rowspan="2" style="width:20%" {{!}} [[Runway#Orientation_and_dimensions|Direction]]
! rowspan="2" style="width:20%" {{!}} [[Runway#Orientation and dimensions|Direction]]
! colspan="2" style="width:40%" {{!}} Length
! colspan="2" style="width:40%" {{!}} Length
! rowspan="2" style="width:40%" {{!}} Surface
! rowspan="2" style="width:40%" {{!}} Surface
{{!}}- style="background-color:#DDDDDD;"
{{!}}- style="background: #DDD"
! style="width:20%" {{!}} {{#if:{{{metric-rwy|}}}|[[metre|m]]|[[foot (unit of length)|ft]]}}
! style="width:20%" {{!}} {{#if: {{{metric-rwy|}}} | [[metre|m]] | [[foot (unit of length)|ft]]}}
! style="width:20%" {{!}} {{#if:{{{metric-rwy|}}}|[[foot (unit of length)|ft]]|[[metre|m]]}}
! style="width:20%" {{!}} {{#if: {{{metric-rwy|}}} | [[foot (unit of length)|ft]] | [[metre|m]]}}
{{!}}- style="text-align:center;"
{{!}}- style="text-align:center;"
{{!}} {{{r1-number<includeonly>|</includeonly>}}}
{{!}} {{{r1-number<includeonly>|</includeonly>}}}
Line 119: Line 119:


|- style="text-align:center;"
|- style="text-align:center;"
{{#if:{{{r2-number<includeonly>|</includeonly>}}}{{{r2-length-f|}}}{{{r2-length-m|}}}{{{r2-surface|}}}|
{{#if: {{{r2-number<includeonly>|</includeonly>}}}{{{r2-length-f|}}}{{{r2-length-m|}}}{{{r2-surface|}}} |
{{!}} {{{r2-number<includeonly>|</includeonly>}}}
{{!}} {{{r2-number<includeonly>|</includeonly>}}}
{{!}} {{{r2-length-{{#if:{{{metric-rwy|}}}|m|f}}<includeonly>|</includeonly>}}}
{{!}} {{{r2-length-{{#if:{{{metric-rwy|}}}|m|f}}<includeonly>|</includeonly>}}}
Line 174: Line 174:
|}}
|}}


|- style="background-color:#4682B4; color:white; font-size:120%;"
|-
{{#if:{{{h1-number<includeonly>|</includeonly>}}}{{{h1-length-f|}}}{{{h1-length-m|}}}{{{h1-surface|}}}|
{{#if: {{{h1-number<includeonly>|</includeonly>}}}{{{h1-length-f|}}}{{{h1-length-m|}}}{{{h1-surface|}}} |
! colspan="4" {{!}} Helipads
! colspan="4" style="background:#4682B4; color:white; font-size:120%" {{!}} Helipads
{{!}}- style="background-color:#DDDDDD;"
{{!}}- style="background: #DDD"
! rowspan="2" style="width:15%" {{!}} Number
! rowspan="2" style="width:15%" {{!}} Number
! colspan="2" style="width:50%" {{!}} Length
! colspan="2" style="width:50%" {{!}} Length
! rowspan="2" style="width:35%" {{!}} Surface
! rowspan="2" style="width:35%" {{!}} Surface
{{!}}- style="background-color:#DDDDDD;"
{{!}}- style="background: #DDD"
! style="width:20%" {{!}} {{#if:{{{metric-rwy|}}}|[[metre|m]]|[[foot (unit of length)|ft]]}}
! style="width:20%" {{!}} {{#if:{{{metric-rwy|}}}|[[metre|m]]|[[foot (unit of length)|ft]]}}
! style="width:20%" {{!}} {{#if:{{{metric-rwy|}}}|[[foot (unit of length)|ft]]|[[metre|m]]}}
! style="width:20%" {{!}} {{#if:{{{metric-rwy|}}}|[[foot (unit of length)|ft]]|[[metre|m]]}}
Line 189: Line 189:
{{!}} {{{h1-length-{{#if:{{{metric-rwy|}}}|f|m}}<includeonly>|</includeonly>}}}
{{!}} {{{h1-length-{{#if:{{{metric-rwy|}}}|f|m}}<includeonly>|</includeonly>}}}
{{!}} {{{h1-surface<includeonly>|</includeonly>}}}
{{!}} {{{h1-surface<includeonly>|</includeonly>}}}
|}}
}}


|- style="text-align:center;"
|- style="text-align:center;"
{{#if:{{{h2-number<includeonly>|</includeonly>}}}{{{h2-length-f|}}}{{{h2-length-m|}}}{{{h2-surface|}}}|
{{#if: {{{h2-number<includeonly>|</includeonly>}}}{{{h2-length-f|}}}{{{h2-length-m|}}}{{{h2-surface|}}} |
{{!}} {{{h2-number<includeonly>|</includeonly>}}}
{{!}} {{{h2-number<includeonly>|</includeonly>}}}
{{!}} {{{h2-length-{{#if:{{{metric-rwy|}}}|m|f}}<includeonly>|</includeonly>}}}
{{!}} {{{h2-length-{{#if:{{{metric-rwy|}}}|m|f}}<includeonly>|</includeonly>}}}
{{!}} {{{h2-length-{{#if:{{{metric-rwy|}}}|f|m}}<includeonly>|</includeonly>}}}
{{!}} {{{h2-length-{{#if:{{{metric-rwy|}}}|f|m}}<includeonly>|</includeonly>}}}
{{!}} {{{h2-surface<includeonly>|</includeonly>}}}
{{!}} {{{h2-surface<includeonly>|</includeonly>}}}
|}}
}}


|- style="text-align:center;"
|- style="text-align:center;"
{{#if:{{{h3-number|}}}{{{h3-length-f|}}}{{{h3-length-m|}}}{{{h3-surface|}}}|
{{#if: {{{h3-number|}}}{{{h3-length-f|}}}{{{h3-length-m|}}}{{{h3-surface|}}} |
{{!}} {{{h3-number|}}}
{{!}} {{{h3-number|}}}
{{!}} {{{h3-length-{{#if:{{{metric-rwy|}}}|m|f}}|}}}
{{!}} {{{h3-length-{{#if:{{{metric-rwy|}}}|m|f}}|}}}
{{!}} {{{h3-length-{{#if:{{{metric-rwy|}}}|f|m}}|}}}
{{!}} {{{h3-length-{{#if:{{{metric-rwy|}}}|f|m}}|}}}
{{!}} {{{h3-surface|}}}
{{!}} {{{h3-surface|}}}
|}}
}}


|- style="text-align:center;"
|- style="text-align:center;"
Line 255: Line 255:
|}}
|}}


|- style="text-align:center;"
|-{{#if: {{{h10-number|}}}{{{h10-length-f|}}}{{{h10-length-m|}}}{{{h10-surface|}}} | style="text-align: center"
{{#if:{{{h10-number|}}}{{{h10-length-f|}}}{{{h10-length-m|}}}{{{h10-surface|}}}|
{{!}} {{{h10-number|}}}
{{!}} {{{h10-number|}}}
{{!}} {{{h10-length-{{#if:{{{metric-rwy|}}}|m|f}}|}}}
{{!}} {{{h10-length-{{#if:{{{metric-rwy|}}}|m|f}}|}}}
Line 279: Line 278:
|}}
|}}


|- style="background-color:#4682B4; color:white; font-size:120%;"
|-
{{#if:{{{stat1-header<includeonly>|</includeonly>}}}{{{stat1-data|}}}|
{{#if: {{{stat1-header<includeonly>|</includeonly>}}}{{{stat1-data|}}} |
! colspan="4" {{!}} Statistics {{#if:{{{stat-year<includeonly>|</includeonly>}}} | ({{{stat-year}}}) |}}
! colspan="4" style="background: #4682B4; color:white; font-size:120%;" {{!}} Statistics {{#if: {{{stat-year<includeonly>|</includeonly>}}} | ({{{stat-year}}}) }}
|}}
{{!}}- style="text-align:left;"


|- style="text-align:left;"
{{#if:{{{stat1-header<includeonly>|</includeonly>}}}{{{stat1-data|}}}|
! colspan="3" {{!}} {{{stat1-header<includeonly>|</includeonly>}}}
! colspan="3" {{!}} {{{stat1-header<includeonly>|</includeonly>}}}
{{!}} {{{stat1-data<includeonly>|</includeonly>}}}
{{!}} {{{stat1-data<includeonly>|</includeonly>}}}
|}}
}}


|- style="text-align:left;"
|- style="text-align:left;"
Line 310: Line 307:
|-
|-
{{#if: {{{footnotes<includeonly>|</includeonly>}}}|
{{#if: {{{footnotes<includeonly>|</includeonly>}}}|
{{!}} colspan="4" style="vertical-align:bottom; text-align:left; background-color:#EEEEEE;" {{!}} {{{footnotes}}}
{{!}} colspan="4" style="vertical-align:bottom; text-align:left; background:#EEE;" {{!}} {{{footnotes}}}
|}}
|}}


|}<noinclude>
|}<noinclude>
{{template doc}}
{{template doc}}
</noinclude>
</noinclude>

Revision as of 11:30, 25 February 2008

{{{name}}}
{{{nativename}}}
{{{nativename-a}}}
{{{nativename-r}}}
[[Image:{{{image}}}|200px]]
{{{caption}}}
IATA: {{{IATA}}} – ICAO: {{{ICAO}}}
Summary
Airport type {{{type}}}
Owner {{{owner}}}
Operator {{{operator}}}
Serves {{{city-served}}}
Location {{{location}}}
Elevation AMSL {{{elevation-f}}} ft / {{{elevation-m}}} m
Coordinates {{{coordinates}}}
Website {{{website}}}
Runways
Direction Length Surface
ft m
{{{r1-number}}} {{{r1-length-f}}} {{{r1-length-m}}} {{{r1-surface}}}
{{{r2-number}}} {{{r2-length-f}}} {{{r2-length-m}}} {{{r2-surface}}}
Helipads
Number Length Surface
ft m
{{{h1-number}}} {{{h1-length-f}}} {{{h1-length-m}}} {{{h1-surface}}}
{{{h2-number}}} {{{h2-length-f}}} {{{h2-length-m}}} {{{h2-surface}}}
Statistics ({{{stat-year}}})
{{{stat1-header}}} {{{stat1-data}}}
{{{stat2-header}}} {{{stat2-data}}}
{{{footnotes}}}

Template:Template doc