Difference between revisions of "Template:Infobox airport"

From Wikishire
Jump to: navigation, search
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox 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;" {{#vardefine:type|airport}}{{#if: {{{county| }}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}}}{{#if: {{{bailiwick| }}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}}}}{{#if: {{{territory| }}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}}}}
+
{{#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 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
 +
|airport
 +
}}}}|{{#vardefine:typeswitch|airport}}}}{| 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: #D0F0C0;" | Code
+
! style="background: #d7eef4;" | Code
 
|{{#if:{{{IATA|}}}| ''IATA:'' {{{IATA}}}}}{{#if:{{{ICAO|}}}|, ''ICAO:'' {{{ICAO}}}}}
 
|{{#if:{{{IATA|}}}| ''IATA:'' {{{IATA}}}}}{{#if:{{{ICAO|}}}|, ''ICAO:'' {{{ICAO}}}}}
 
|-
 
|-
! style="background: #D0F0C0;" | {{#if:{{{county|}}}|County}}{{#if:{{{territory|}}}|Territory}}
+
! style="background: #d7eef4;" | {{#if:{{{county|}}}|County}}{{#if:{{{territory|}}}|Territory}}
| {{shead|{{#var:shire}}}}
+
|{{shead|{{#var:shire}}}}
|-{{#if:{{{owner|}}}
+
|-
! style="background: #D0F0C0;" | Owner
+
{{#if: {{{island<includeonly>|</includeonly>}}} |
| {{owner}} }}
+
! style="background: #d7eef4;" {{!}} Island
|-{{#if:{{{ownership|}}}
+
{{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }} || ||
! style="background: #D0F0C0;" | Owner
+
|-
| {{ownership}} }}
+
{{#if:{{{type<includeonly>|</includeonly>}}} |
|-{{#if:{{{operator|}}}
+
! style="background: #d7eef4;" {{!}}
! style="background: #D0F0C0;" | Operator
+
{{!}} {{#ifeq:{{#var:typeswitch}}|raf|[[File:RAF-Badge.svg|center|100px|Badge of the Royal Air Force]]|{{{type}}} }} }}
| {{operator}} }}
+
|-
! style="background: #D0F0C0;" | Location
+
{{#if:{{{owner<includeonly>|</includeonly>}}} |
| {{#if:{{{location|}}}|{{{location}}}<br>}}{{#if:{{{os grid ref|}}}|{{getmapecho|{{{os grid ref}}}}}|{{#if:{{{latitude|}}}|{{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14}}}}}}
+
! style="background: #d7eef4;" {{!}} Owner
|-{{#if:{{{website|}}}|
+
{{!}} {{{owner}}} }}
|Website || {{{website}}}}}
+
|-
|}<includeonly>{{namecat2|Airports|{{#var:shire}} }}</includeonly><noinclude>[[Category:Infoboxes|Airport]]
+
{{#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: {{{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}}}}
 +
|airfield={{namecat2|Airfields|{{#var:shire}}}}
 +
|{{namecat2|Airports|{{#var:shire}}}}
 +
}}</includeonly><noinclude>[[Category:Infoboxes|Airport]]

Revision as of 19:33, 18 March 2020

Infobox airport
Code
[[]]
Island [[{{{island}}}]]
{{{type}}}
Owner {{{owner}}}
Owner {{{ownership}}}
Operator {{{operator}}}
Location
Runway {{{runway length}}}
Runway(s) {{{r1-length}}}
Website