Jump to content

Template:Airline codes: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Sardanaphalus (talk | contribs)
updating category
fixed code after Template:Airport codes to allow empty parameters (airlines can have no IATA but a IACO, e.g. see at Airline codes-R) and some documentation
Line 1: Line 1:
<includeonly>({{#if: {{{1|}}}
([[IATA airline designator|IATA]]: '''{{{1}}}''', [[ICAO airline designator|ICAO]]: '''{{{2}}}''', and [[Airline call sign|Callsign]]: '''{{{3}}}''')<noinclude>
| [[IATA airline designator|IATA]]: '''{{{1}}}'''{{#if:{{{2|}}}{{{3|}}}|,&nbsp;}}
}}{{#if: {{{2|}}}
| [[ICAO airline designator|ICAO]]: '''{{{2}}}'''{{#if:{{{3|}}}|,&nbsp;}}
}}{{#if: {{{3|}}}
| [[Airline call sign|Callsign]]: '''{{{3}}}'''
}})</includeonly><noinclude>
<!--self-test-->{{Airline codes|{{{1}}}|{{{2}}}|{{{3}}}}}
==Usage==
This template is used to display an airline's identifiers or "airline codes". '''In Airline articles, the {{tl|Infobox Airline}} template should be used instead of this template. If an infobox with correct codes is already on the page, this template is not required.'''


==Parameters==
Each of the three unnamed parameter can be used or omitted. For instance, for a military base that's also an aeronautical authority assigned an ICAO but no IATA, the first parameter can be left blank:
<pre>
* [[RAF Scampton]] {{Airline codes|<!--no iata-->|SMZ|SCAMPTON}}
</pre>
Resulting in:
* [[RAF Scampton]] {{Airline codes|<!--no iata-->|SMZ|SCAMPTON}}
[[Category:Aviation formatting templates|{{PAGENAME}}]]
[[Category:Aviation formatting templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 01:54, 13 May 2009

(IATA: {{{1}}}ICAO: {{{2}}}Callsign: {{{3}}})

Usage

This template is used to display an airline's identifiers or "airline codes". In Airline articles, the {{Infobox Airline}} template should be used instead of this template. If an infobox with correct codes is already on the page, this template is not required.

Parameters

Each of the three unnamed parameter can be used or omitted. For instance, for a military base that's also an aeronautical authority assigned an ICAO but no IATA, the first parameter can be left blank:

* [[RAF Scampton]] {{Airline codes|<!--no iata-->|SMZ|SCAMPTON}}

Resulting in: