Jump to content

Template:Airport codes: Difference between revisions

From IdeaWazaWiki
wikademia>McNeight
m try this for making both codes optional, with no ugly remnants
wikademia>Wikademia
m 55 revisions
 
(45 intermediate revisions by 29 users not shown)
Line 1: Line 1:
{{qif
<includeonly>({{#if: {{{1|}}}
|test={{{1|}}}
  | [[International Air Transport Association airport code|IATA]]: '''{{{1}}}'''{{#if: {{{2|}}} {{{3|}}} {{{4|}}} {{{5|}}} |,&nbsp;}}
|then=([[IATA airport code|IATA]]: '''{{{1}}}'''
}}{{#if: {{{2|}}}
|else=(
  | [[International Civil Aviation Organization airport code|ICAO]]: '''{{{2}}}'''{{#if: {{{3|}}} {{{4|}}} {{{5|}}} |,&nbsp;}}
}}
}}{{#if: {{{3|}}}
{{qif
  | [[Federal Aviation Administration|FAA]] [[Location identifier|LID]]: '''{{{3}}}'''{{#if: {{{4|}}} {{{5|}}} |,&nbsp;}}
|test={{booland|1|2}}
}}{{#if: {{{4|}}}
|then=,  
  | [[Transport Canada|TC]] [[Location identifier|LID]]: '''{{{4}}}'''{{#if: {{{5|}}} |,&nbsp;}}
|else=
}}{{#if: {{{5|}}}
}}
  | [[Global Positioning System|GPS]] code: '''{{{5}}}'''
{{qif
}})</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here. --></noinclude>
|test={{{2|}}}
|then=[[ICAO airport code|ICAO]]: '''{{{2}}}''')
|else=)
}}

Latest revision as of 16:42, 26 April 2009

[create] Template documentation