Template:IATA

From Wikivoyage
Jump to navigation Jump to search

{{{1}}} IATA

[view] [edit] [history] [purge] Template-info.svg Template documentation

To use this template, insert the code {{IATA| <IATA code> }}, replacing <IATA code> with the three letter code for the airport. See w:International Air Transport Association airport code#List for a list of airports by IATA code; or, see the airport's Wikipedia page, and the IATA code should be in the infobox.

For example, {{IATA|LAX}} produces LAX IATA, for Los Angeles International Airport.

ICAO codes are not really used in Wikivoyage, there is a discussion about their use here.

This template produces the emboldened three-character airport code and, if a redirect of the code exists, a link to details of the airport together with an inline link to the Wikivoyage article on "International Air Transport Association airport code"s. The template is in the format {{IATA|airportcode}}, enclosed in double-braces, bar-separated. For example, {{IATA|LAX}} for LAX, Los Angeles International Aiport. US48/Canada IATA codes are usually similar to ICAO codes (which have a preceding K indicating US mainland, C indicating Canada); IATA vs ICAO codes for other countries are not similar. IATA codes are scheduled to be replaced by ICAO codes at some distant and not yet fixed point in the future but most will be more familiar with IATA codes.

Linking to airports[edit]

If there is an airport article then redirect the code to that page
e.g. For FRA IATA, the page FRA contains #REDIRECT[[Frankfurt Airport]]
If there is no airport article the redirect should be to the relevant section of closest city article.
e.g. For STR IATA, the page STR contains #redirect[[Stuttgart#By plane]]


Airports listed in city articles (as well as airport articles) can be found at Category:Airport listing

Article referencing airport codes that do not have a redirect page are listed in Category:Airport code pages missing

Notes to template coders[edit]

The default for this template is to assume the three letter abbreviation is a redirect page to the article about the airport (airport article or main city Get in section). However some TLAs are for other reasons such as well know abbreviations for countries or short cuts to help pages. For example USA goes the country NOT goes to What is not an article. In these cases the template has hard coded the TLA so USA IATA and NOT IATA go to the airports. All TLAs with details of existing non airport short cuts, redirects and disambiguations can be found at Wikivoyage:Airport Expedition/TLAs.

The IATA inline link points to IATA which is a redirect, rather than directly to Airport codes so that the What Links Here shows where the article is referenced and not every template usage.

The space before the IATA raised suffix is deliberate, this keeps the code and text separate in search results.

No description.

Template parameters

ParameterDescriptionTypeStatus
IATA code1

no description

Default
empty
Example
LAX
Auto value
empty
Stringrequired