Template:Infobox airport: Difference between revisions
Jump to navigation
Jump to search
Created page with '{| border="1" align="right" style="text-align:left;" !colspan="2"|[[File:{{{picture}}}|right|260px]] |- !Width="25%"| ||Data |- |IATA Code || {{{code}}} |- |County || [[{{{count…' |
mNo edit summary |
||
(64 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| | {{#vardefine:type|airport}}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}{{#if:{{{type|}}}|{{#vardefine:typeswitch|{{#switch:{{lc:{{{type}}}}} | ||
!colspan="2"|[[File:{{{picture}}}| | |royal air force | ||
|royal air force base | |||
|royal air force station | |||
|royal airforce | |||
|royal airforce base | |||
|royal airforce station | |||
|raf | |||
|raf station | |||
|raf base=raf | |||
|airport=airport | |||
|international airport | |||
|international=int | |||
|aerodrome | |||
|private aerodrome | |||
|local field | |||
|local airfield | |||
|private | |||
|private airfield | |||
|airfield=airfield | |||
|spaceport | |||
|space port=spaceport | |||
|airport | |||
}}}}|{{#vardefine:typeswitch|airport}}}}{{#vardefine:indexname|{{#ifeq:{{#sub:{{{name}}}|0|3}}|RAF|{{#sub:{{{name}}}|4|{{exp:{{#len:{{{name}}}}}-4}}}}|{{{name}}}}}}}{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;" | |||
|colspan=2 style="text-align: center; background:#d7eef4; font-size: 100%"|<big class="fn org">{{#if: {{{name| }}}|'''{{{name}}}'''|'''{{PAGENAME}}''' }}</big>{{#if: {{{welsh| }}}| <br>{{lang|cy|{{{welsh}}} }} }}{{#if: {{{gaelic| }}}| <br>{{lang|gd|{{{gaelic}}} }} }}{{#if: {{{irish| }}}| <br>{{lang|ga|{{{irish}}} }} }}{{#if: {{{greek| }}}| <br>{{lang|el|{{{greek}}} }} }}{{#if: {{{scots| }}}| <br>{{lang|sco|{{{scots}}} }} }}{{#if: {{{cornish| }}}| <br>{{lang|kw|{{{cornish}}} }} }}{{#if: {{{jerriais| }}}| <br>''Jèrriais:'' {{{jerriais}}} }}{{#if: {{{dgernesiais| }}}| <br>Dgèrnésiais: ''{{{dgernesiais}}}'' }}{{#if: {{{manx| }}}| <br>{{lang|gv|{{{manx}}} }} }} | |||
|-<!--Op codes here--> | |||
!colspan="2"|{{#if:{{{picture|}}}|[[File:{{{picture}}}|center|260px|{{{picture caption}}}]]}} | |||
|- | |- | ||
! | ! style="background: #d7eef4;" | Code | ||
|{{#if:{{{IATA|}}}| ''IATA:'' {{{IATA}}}}}{{#if:{{{ICAO|}}}|, ''ICAO:'' {{{ICAO}}}}} | |||
|- | |- | ||
| | ! style="background: #d7eef4;" | {{#if:{{{county|}}}|County}}{{#if:{{{territory|}}}|Territory}} | ||
|{{shead|{{#var:shire}}}} | |||
|- | |- | ||
| | {{#if: {{{island<includeonly>|</includeonly>}}} | | ||
! style="background: #d7eef4;" {{!}} Island | |||
{{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }} || || | |||
|- | |- | ||
| | {{#if:{{{type<includeonly>|</includeonly>}}} | | ||
! style="background: #d7eef4;" {{!}} | |||
{{!}} {{#ifeq:{{#var:typeswitch}}|raf|[[File:RAF-Badge.svg|center|100px|Badge of the Royal Air Force]]|{{{type}}} }} }} | |||
|- | |- | ||
{{#if:{{{owner<includeonly>|</includeonly>}}} | | |||
! style="background: #d7eef4;" {{!}} Owner | |||
{{!}} {{{owner}}} }} | |||
|- | |- | ||
|Website || {{{website}}} | {{#if:{{{ownership<includeonly>|</includeonly>}}} | | ||
|}<includeonly>{{namecat2|Airports|{{ | ! style="background: #d7eef4;" {{!}} Owner | ||
{{!}} {{{ownership}}} }} | |||
|- | |||
{{#if:{{{operator<includeonly>|</includeonly>}}} | | |||
! style="background: #d7eef4;" {{!}} Operator | |||
{{!}} {{{operator}}} }} | |||
|- | |||
! style="background: #d7eef4;" | Location | |||
|{{#if:{{{location|}}}|{{{location}}}<br>}}{{#if:{{{os grid ref|}}}|{{map|{{{os grid ref}}}}}<br>}}{{#if:{{{latitude|}}}|{{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14}}}} | |||
|- | |||
{{#if: {{{runway length<includeonly>|</includeonly>}}} | | |||
! style="background: #d7eef4;" {{!}} Runway | |||
{{!}} {{{runway length}}} {{#if:{{{runway surface|}}}| ({{{runway surface}}}) }} }} | |||
|- | |||
{{#if: {{{r1-length<includeonly>|</includeonly>}}} | | |||
! style="background: #d7eef4;" {{!}} Runway(s) | |||
{{!}} {{{r1-length}}} {{#if:{{{r1-surface|}}}| ({{{r1-surface}}}) }} {{#if:{{{r2-length|}}}|<br />{{{r2-length}}} {{#if:{{{r2-surface|}}}| ({{{r2-surface}}}) }} {{#if:{{{r3-length|}}}|<br />{{{r3-length}}} {{#if:{{{r3-surface|}}}| ({{{r3-surface}}}) }} }} }} }} | |||
|- | |||
! style="background: #d7eef4;" | Website | |||
|{{#if:{{{website|}}}|{{{website}}} }} | |||
|}<includeonly>{{#switch:{{#var:typeswitch}} | |||
|airport={{namecat2|Airports|{{#var:shire}}}} | |||
|int=[[Category:International airports]] {{namecat2|Airports|{{#var:shire}}}} | |||
|raf={{namecat2|RAF stations|{{#var:shire}}}}{{DEFAULTSORT:{{#var:indexname}}}} | |||
|airfield={{namecat2|Airfields|{{#var:shire}}}} | |||
|spaceport={{namecat2|Airfields|{{#var:shire}}}} [[Category:Spaceports in {{State2|{{#var:shire}}}}]] | |||
|{{namecat2|Airports|{{#var:shire}}}} | |||
}}</includeonly><noinclude>[[Category:Infoboxes|Airport]] |
Latest revision as of 17:03, 25 October 2024
Infobox airport | |||
Code | |||
---|---|---|---|
[[]] | |||
Island | [[{{{island}}}]] | ||
{{{type}}} | |||
Owner | {{{owner}}} | ||
Owner | {{{ownership}}} | ||
Operator | {{{operator}}} | ||
Location | |||
Runway | {{{runway length}}} | ||
Runway(s) | {{{r1-length}}} | ||
Website |