Difference between revisions of "Template:Infobox airport"
From Wikishire
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 20: | Line 20: | ||
|airfield=airfield | |airfield=airfield | ||
|airport | |airport | ||
− | }}}}|{{#vardefine:typeswitch|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">{{#vardefine:type|bridge}}{{#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:{{{type<includeonly>|</includeonly>}}} | | {{#if:{{{type<includeonly>|</includeonly>}}} | | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} |
{{!}} {{#ifeq:{{#var:typeswitch}}|raf|[[File:RAF-Badge.svg|center|100px|Badge of the Royal Air Force]]|{{{type}}} }} }} | {{!}} {{#ifeq:{{#var:typeswitch}}|raf|[[File:RAF-Badge.svg|center|100px|Badge of the Royal Air Force]]|{{{type}}} }} }} | ||
|- | |- | ||
{{#if:{{{owner<includeonly>|</includeonly>}}} | | {{#if:{{{owner<includeonly>|</includeonly>}}} | | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} Owner |
{{!}} {{{owner}}} }} | {{!}} {{{owner}}} }} | ||
|- | |- | ||
{{#if:{{{ownership<includeonly>|</includeonly>}}} | | {{#if:{{{ownership<includeonly>|</includeonly>}}} | | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} Owner |
{{!}} {{{ownership}}} }} | {{!}} {{{ownership}}} }} | ||
|- | |- | ||
{{#if:{{{operator<includeonly>|</includeonly>}}} | | {{#if:{{{operator<includeonly>|</includeonly>}}} | | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} Operator |
{{!}} {{{operator}}} }} | {{!}} {{{operator}}} }} | ||
|- | |- | ||
− | ! style="background: # | + | ! 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>}}} | | {{#if: {{{runway length<includeonly>|</includeonly>}}} | | ||
− | ! style="background: # | + | ! style="background: #d7eef4;" {{!}} Runway |
{{!}} {{{runway length}}} {{#if:{{{runway surface|}}}| ({{{runway surface}}}) }} }} | {{!}} {{{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-length|}}}|{{{r1-length}}} {{#if:{{{r1-surface|}}}| ({{{r1-surface}}}) }} }} {{#if:{{{r2-length|}}}|<br />{{{r2-length}}} {{#if:{{{r2-surface|}}}| ({{{r2-surface}}}) }} }} }} | + | {{!}} {{#if:{{{r1-length|}}}|{{{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}} |
Revision as of 09:43, 7 March 2020
Infobox airport | |||
Code | |||
[[]] | |||
{{{type}}} | |||
Owner | {{{owner}}} | ||
Owner | {{{ownership}}} | ||
Operator | {{{operator}}} | ||
Location | |||
Runway | {{{runway length}}} | ||
Runway(s) | |||
Website |