Template:Airport codes/doc

From Wikishire
Revision as of 13:11, 24 February 2011 by RB (talk | contribs) (Created page with '{{documentation subpage}} This template is used to display an airport's location identifiers or "airport codes". '''In Airport articles, the {{tl|Infobox Airport}} template sh…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Mbox

This template is used to display an airport's location identifiers or "airport codes".

In Airport articles, the {{Infobox Airport}} template should be used instead of this template. If an infobox with correct codes is already on the page, this template is not required.

Usage

'''Glasgow International Airport''' {{Airport codes|GLA|EGPF}} is ...

Glasgow International Airport (IATA: GLA, ICAO: EGPF) is ...


'''Emmonak Airport''' {{Airport codes|EMK|PAEM|ENM}} is ...

Emmonak Airport (IATA: EMK, ICAO: PAEM, FAA LID: ENM) is ...


'''Grand Canyon West Airport''' {{Airport codes|||1G4}} is ...

Grand Canyon West Airport (FAA LID: 1G4) is ...


'''Acme Airport''' {{Airport codes||||CEG2}} is ...

Acme Airport (TC LID: CEG2) is ...

Parameters

The template has five unnamed parameters:

  1. IATA airport code
  2. ICAO airport code
  3. Federal Aviation Administration location identifier (for airports in the United States)
  4. Transport Canada location identifier (for airports in Canada)
  5. GPS code

Formatting test

This section shows the formatting of different combinations of codes.

One code

{{Airport codes|AAA}}: (IATA: AAA)

{{Airport codes||BBBB}}: (ICAO: BBBB)

{{Airport codes|||CCC}}: (FAA LID: CCC)

{{Airport codes||||DDDD}}: (TC LID: DDDD)

{{Airport codes|||||EEEE}}: (GPS code: EEEE)

Two codes

{{Airport codes|AAA|BBBB}}: (IATA: AAA, ICAO: BBBB)

{{Airport codes|AAA||CCC}}: (IATA: AAA, FAA LID: CCC)

{{Airport codes|AAA|||DDDD}}: (IATA: AAA, TC LID: DDDD)

{{Airport codes|AAA||||EEEE}}: (IATA: AAA, GPS code: EEEE)

{{Airport codes||BBBB|CCC}}: (ICAO: BBBB, FAA LID: CCC)

{{Airport codes||BBBB||DDDD}}: (ICAO: BBBB, TC LID: DDDD)

{{Airport codes||BBBB|||EEEE}}: (ICAO: BBBB, GPS code: EEEE)

{{Airport codes|||CCC|DDDD}}: (FAA LID: CCC, TC LID: DDDD)

{{Airport codes|||CCC||EEEE}}: (FAA LID: CCC, GPS code: EEEE)

{{Airport codes||||DDDD|EEEE}}: (TC LID: DDDD, GPS code: EEEE)

Three codes

{{Airport codes|AAA|BBBB|CCC}}: (IATA: AAA, ICAO: BBBB, FAA LID: CCC)

{{Airport codes|AAA|BBBB||DDDD}}: (IATA: AAA, ICAO: BBBB, TC LID: DDDD)

{{Airport codes|AAA|BBBB|||EEEE}}: (IATA: AAA, ICAO: BBBB, GPS code: EEEE)

{{Airport codes||BBBB|CCC|DDDD}}: (ICAO: BBBB, FAA LID: CCC, TC LID: DDDD)

{{Airport codes||BBBB|CCC||EEEE}}: (ICAO: BBBB, FAA LID: CCC, GPS code: EEEE)

{{Airport codes|||CCC|DDDD|EEEE}}: (FAA LID: CCC, TC LID: DDDD, GPS code: EEEE)

Four codes

{{Airport codes|AAA|BBBB|CCC|DDDD}}: (IATA: AAA, ICAO: BBBB, FAA LID: CCC, TC LID: DDDD)

{{Airport codes|AAA|BBBB|CCC||EEEE}}: (IATA: AAA, ICAO: BBBB, FAA LID: CCC, GPS code: EEEE)

{{Airport codes|AAA|BBBB||DDDD|EEEE}}: (IATA: AAA, ICAO: BBBB, TC LID: DDDD, GPS code: EEEE)

{{Airport codes|AAA||CCC|DDDD|EEEE}}: (IATA: AAA, FAA LID: CCC, TC LID: DDDD, GPS code: EEEE)

{{Airport codes||BBBB|CCC|DDDD|EEEE}}: (ICAO: BBBB, FAA LID: CCC, TC LID: DDDD, GPS code: EEEE)

Five codes

{{Airport codes|AAA|BBBB|CCC|DDDD|EEEE}}: (IATA: AAA, ICAO: BBBB, FAA LID: CCC, TC LID: DDDD, GPS code: EEEE)