Template:Airport table row/doc

From blackwiki
< Template:Airport table row
Revision as of 14:48, 18 October 2020 by Blackwikiadmin (talk | contribs) (14 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

Under development - not yet ready for roll-out Discussion is here

For use on Lists of airports by country

Parameters for {{Airport table top}}

city-article (optional)
The name of article listing cities in country; i.e. List of cities in Algeria.
nocoordinates (optional)
Set to any value to exclude the coordinates column from table heading.

Parameters for {{Airport table row}}

location
The major city served by the airport. Airports are often located in smaller towns outside the city served, but that information is usually placed in the airport article (and the airport infobox has fields for both). However, some airport lists do give both, usually in the format city served / location (see List of airports in France).
ICAO
The four-letter ICAO airport code.
IATA
The three-letter IATA airport code.
airport
The name of the airport with a link to the airport article.
coordinates (optional)
The coordinates of airport, specified via the {{coord}} template.

Example with coordinates column

{{Airport table top}}

{{Airport table row
| location = Birmingham, England
| ICAO = EGBB
| IATA = BHX
| airport = [[Birmingham International Airport, West Midlands|Birmingham International]]
| coordinates = {{coord|52.453889|-1.748056|type:airport_region:GB-BIR}}
}}

{{Airport table row
| location = Amsterdam
| ICAO = EHAM
| IATA = AMS
| airport = [[Amsterdam Airport Schiphol|Schiphol]]
| coordinates = &nbsp;
}}

{{Airport table row
| location = Amsterdam
| ICAO = EHAM
| IATA = AMS
| airport = [[Amsterdam Airport Schiphol|Schiphol]]
| coordinates = n/a
}}

{{Airport table row
| location = Birmingham, England
| ICAO = EGBB
| IATA = BHX
| airport = [[Birmingham International Airport, West Midlands|Birmingham International]]
| coordinates = {{coord|52.453889|-1.748056|type:airport_region:GB-BIR}}
}}

|}

renders as:

Location ICAO IATA Airport name Coordinates
Birmingham, England EGBB BHX Birmingham International Lua error: callParserFunction: function "#coordinates" was not found.
Amsterdam EHAM AMS Schiphol  
Amsterdam EHAM AMS Schiphol n/a
Birmingham, England EGBB BHX Birmingham International Lua error: callParserFunction: function "#coordinates" was not found.

Example without coordinates column

{{Airport table top
| city-article = List of cities in Libya
| nocoordinates = yes
}}

{{Airport table row
| location = [[Agedabia]]
| ICAO = HLAG
| IATA = 
| airport = [[Agedabia Airport]]
}}

{{Airport table row
| location = [[Bayda, Libya|Bayda]] (Beida)
| ICAO = HLLQ
| IATA = LAQ
| airport = '''[[La Abraq Airport]]''' (La Braq Airport)
}}

|}

renders as:

Location ICAO IATA Airport name
Agedabia HLAG Agedabia Airport
Bayda (Beida) HLLQ LAQ La Abraq Airport (La Braq Airport)

Microformat

Template:UF-hcard-place

Template family