Difference between revisions of "Template:Infobox airport"
From Wikishire
(22 intermediate revisions by the same user 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}}}}} | |
|royal air force | |royal air force | ||
|royal air force base | |royal air force base | ||
Line 19: | Line 19: | ||
|private airfield | |private airfield | ||
|airfield=airfield | |airfield=airfield | ||
+ | |spaceport | ||
+ | |space port=spaceport | ||
|airport | |airport | ||
− | }}|{{#vardefine:typeswitch|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 class= 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}}}]]}} | !colspan="2"|{{#if:{{{picture|}}}|[[File:{{{picture}}}|center|260px|{{{picture caption}}}]]}} | ||
|- | |- | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" | Code |
|{{#if:{{{IATA|}}}| ''IATA:'' {{{IATA}}}}}{{#if:{{{ICAO|}}}|, ''ICAO:'' {{{ICAO}}}}} | |{{#if:{{{IATA|}}}| ''IATA:'' {{{IATA}}}}}{{#if:{{{ICAO|}}}|, ''ICAO:'' {{{ICAO}}}}} | ||
|- | |- | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" | {{#if:{{{county|}}}|County}}{{#if:{{{territory|}}}|Territory}} |
|{{shead|{{#var:shire}}}} | |{{shead|{{#var:shire}}}} | ||
− | |-{{#if:{{{ | + | |- |
− | ! style="background: # | + | {{#if: {{{island<includeonly>|</includeonly>}}} | |
− | |{{#ifeq:{{#var:typeswitch}}|raf|[[File:RAF-Badge.svg|center|100px|Badge of the Royal Air Force]]|{{{type}}} }} | + | ! style="background: #d7eef4;" {{!}} Island |
− | |-{{#if:{{{owner|}}} | + | {{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }} || || |
− | ! style="background: # | + | |- |
− | + | {{#if:{{{type<includeonly>|</includeonly>}}} | | |
− | |-{{#if:{{{ownership<includeonly>|</includeonly>}}} | + | ! style="background: #d7eef4;" {{!}} |
− | ! style="background: # | + | {{!}} {{#ifeq:{{#var:typeswitch}}|raf|[[File:RAF-Badge.svg|center|100px|Badge of the Royal Air Force]]|{{{type}}} }} }} |
− | + | |- | |
− | |-{{#if:{{{operator|}}} | + | {{#if:{{{owner<includeonly>|</includeonly>}}} | |
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} Owner |
− | + | {{!}} {{{owner}}} }} | |
− | ! style="background: # | + | |- |
+ | {{#if:{{{ownership<includeonly>|</includeonly>}}} | | ||
+ | ! 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:{{{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>}}} | | {{#if: {{{r1-length<includeonly>|</includeonly>}}} | | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} Runway(s) |
− | {{!}} {{#if:{{{r1- | + | {{!}} {{{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: # | + | ! style="background: #d7eef4;" | Website |
|{{#if:{{{website|}}}|{{{website}}} }} | |{{#if:{{{website|}}}|{{{website}}} }} | ||
|}<includeonly>{{#switch:{{#var:typeswitch}} | |}<includeonly>{{#switch:{{#var:typeswitch}} | ||
|airport={{namecat2|Airports|{{#var:shire}}}} | |airport={{namecat2|Airports|{{#var:shire}}}} | ||
|int=[[Category:International airports]] {{namecat2|Airports|{{#var:shire}}}} | |int=[[Category:International airports]] {{namecat2|Airports|{{#var:shire}}}} | ||
− | |raf={{namecat2|RAF stations|{{#var:shire}}}} | + | |raf={{namecat2|RAF stations|{{#var:shire}}}}{{DEFAULTSORT:{{#var:indexname}}}} |
|airfield={{namecat2|Airfields|{{#var:shire}}}} | |airfield={{namecat2|Airfields|{{#var:shire}}}} | ||
+ | |spaceport={{namecat2|Airfields|{{#var:shire}}}} [[Category:Spaceports in {{State2|{{#var:shire}}}}]] | ||
|{{namecat2|Airports|{{#var:shire}}}} | |{{namecat2|Airports|{{#var:shire}}}} | ||
}}</includeonly><noinclude>[[Category:Infoboxes|Airport]] | }}</includeonly><noinclude>[[Category:Infoboxes|Airport]] |
Latest revision as of 19:24, 21 January 2024
Infobox airport | |||
Code | |||
---|---|---|---|
[[]] | |||
Island | [[{{{island}}}]] | ||
{{{type}}} | |||
Owner | {{{owner}}} | ||
Owner | {{{ownership}}} | ||
Operator | {{{operator}}} | ||
Location | |||
Runway | {{{runway length}}} | ||
Runway(s) | {{{r1-length}}} | ||
Website |