Difference between revisions of "Template:Infobox airport"

From Wikishire
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
|private airfield
 
|private airfield
 
|airfield=airfield
 
|airfield=airfield
 +
|spaceport
 +
|space port=spaceport
 
|airport
 
|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;"
+
}}}}|{{#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}}} }} }}
 
|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-->
 
|-<!--Op codes here-->
Line 32: Line 34:
 
|-
 
|-
 
{{#if: {{{island<includeonly>|</includeonly>}}} |
 
{{#if: {{{island<includeonly>|</includeonly>}}} |
! style="background: #d7eef4; text-align: left;" {{!}} Island
+
! style="background: #d7eef4;" {{!}} Island
 
{{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }} || ||
 
{{!}} {{IsleID|{{{island}}}|{{namefix|{{#var:shire}}}} }} }} || ||
 
|-
 
|-
Line 67: Line 69:
 
|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