Template talk:Airport codes

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Aviation / Airports (Rated Template-class)
WikiProject icon This article is within the scope of the Aviation WikiProject. If you would like to participate, please visit the project page, where you can join the project and see lists of open tasks and task forces. To use this banner, please see the full instructions.
 Template  This template does not require a rating on the project's quality scale.
Taskforce icon
This template is supported by the airport project.

Recent change from FAA LID to National LID[edit]

In an update made yesterday, the label of the 3rd parameter was changed from FAA LID to National LID. I feel this negatively affected the appearance of the U.S. airport articles, so I restored the FAA LID label to the 3rd parameter. The National LID label is still available, but has been moved to the 4th parameter (the current 4th parameter labeled GPS codes has become the 5th parameter). I also made corrections to properly place commas for any combination of the five parameters and updated the template's documentation.

To date, the National LID label has only been used for the Canadian airports, so I'll update those to move the code from the 3rd to 4th position. Is anyone aware of country-specific airport codes other than those used by the United States and Canada? From what I've seen, most other countries use the ICAO codes. If this parameter will only be used for Canadian airports, the label could be changed.

-- Zyxw 13:51, 5 July 2007 (UTC)

I changed it slightly to link to "Transport Canada" similar to the FAA link. If there are other countries that use a non-ICAO codes then they can be added in the same way. CambridgeBayWeather (Talk) 16:14, 5 July 2007 (UTC)
Yes, many countries have airports without ICAO codes, such as Chambly Airport in France (LF52), Chulman Airport in Romania (UE40), and Shikabe Airport in Japan (RJ04). All of these have four-letter codes starting with the ICAO country identifier, but then follow it with numbers instead of letters, and the DAFIF, at least, does not classify these as ICAO codes.
Also, is there any way to avoid privileging one country's region codes over everyone else's? After all, Wikipedia is supposed to be international. Maybe it would be better to use a nested template or something to get the FAA- or TC-specific formatting. David 12:43, 16 July 2007 (UTC)
Australia has also a local listing including codes for so called uncrontrolled/unregistered ALA airports, example: Bickerton Island, I used the inline template and used GPS code for it, but I don't think it is fully appropriate. --Hakre (talk) 11:55, 24 November 2012 (UTC)

Odd formatting[edit]

List "A"
*[[Long Beach Municipal Airport]] {{airport codes|LGB|KLGB}}

List "B"
*{{airport codes|LGB|KLGB}} [[Long Beach Municipal Airport]]

In List "A" there's a forced line break that adds lots of extra space and makes it harder to read. When I placed the template at the beginning of the line in List "B" the bullets disappeared. ·:· Will Beback ·:· 08:03, 16 July 2007 (UTC)

update iw (Edit protected page)[edit]

Please delete de:Vorlage:Flughafencode since it does not exist anymore (2007). --Scriberius (talk) 15:38, 19 October 2009 (UTC)

Adding Airport API[edit]

I wanted to add Airport API from PilotOutlook to us-airport template. You can access data for any US based airport by providing IATA or ICAO code to this API - http://www.pilotoutlook.com/xml/AirportLookup?IATA_CODE=KBFI&AccessKeyId=28b878cacfb84cff92f7c56b22eceddab919534d . Introduction is at http://www.pilotoutlook.com/api/introduction. Please let me know if you can add this. Rajatgarg79 (talk) 01:30, 11 April 2008 (UTC)

Categorization of pages missing IATA or ICAO[edit]

I was thinking that it might be convenient to categorize articles that are missing IATA codes or ICAO codes. I propose something on the lines of the following changes:

<includeonly>({{#if: {{{1|}}}
  | [[International Air Transport Association airport code|IATA]]: '''{{{1}}}'''{{#if: {{{2|}}} {{{3|}}} {{{4|}}} {{{5|}}} |, }}
|[[Category:Airports without IATA codes|{{PAGENAME}}]]}}{{#if: {{{2|}}}
  | [[International Civil Aviation Organization airport code|ICAO]]: '''{{{2}}}'''{{#if: {{{3|}}} {{{4|}}} {{{5|}}} |, }}
|[[Category:Airports without ICAO codes|{{PAGENAME}}]]}}{{#if: {{{3|}}}
  | [[Federal Aviation Administration|FAA]] [[Location identifier|LID]]: '''{{{3}}}'''{{#if: {{{4|}}} {{{5|}}} |, }}
}}{{#if: {{{4|}}}
  | [[Transport Canada|TC]] [[Location identifier|LID]]: '''{{{4}}}'''{{#if: {{{5|}}} |, }}
}}{{#if: {{{5|}}}
  | [[Global Positioning System|GPS]] code: '''{{{5}}}'''
}})</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here. --></noinclude>

Does anyone have any comments negative or positive? I don't know how many airports would be in the category without IATA codes, but I would think most airport articles would / should have ICAO codes.Categorization would help locate articles that needed ICAO codes added to them. Just a thought... --Dual Freq (talk) 23:47, 23 August 2008 (UTC)

I guess the question is do all airports that are notable have either code? If not all airport have these codes, then putting then in a maintenance category would be useless. Vegaswikian (talk) 01:53, 24 August 2008 (UTC)
That's a valid point, not all airports would have IATA codes, but most should have an ICAO code right? --Dual Freq (talk) 02:12, 24 August 2008 (UTC)

hCard microformat[edit]

I would like to change the output of this template, to emit an hCard microformat, such that:

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

is rendered as:

<span class="vcard"><span class="adr"><span class="fn org extended-address">Emmonak Airport</span></span> (IATA: <span class="nickname">EMK</span>, ICAO: <span class="nickname">PAEM</span>, FAA LID: <span class="nickname">ENM</span>)</span> is ...

Can anyone advise how this might be implemented, please? Thank you. Andy Mabbett | Talk to Andy Mabbett 23:55, 23 August 2008 (UTC)

This template doesn't appear to deal with the name of the airport itself, but the inner spans for the different codes should be quite simple to implement; just add the 'span class=nickname' tags to this template wrapped around the template's parameters. The spans should be harmless in areas where this template is used outside of vcards so there's no need to get fancy trying to distinguish such situations. Bryan Derksen (talk) 18:05, 7 September 2008 (UTC)
Thanks; I don't know how I misunderstood that. As the template is curently used, there seems to be no point adding microformat classes; airport codes within infoboxes, which form an hCard microformat, are already amrked up as class="nickname". I do think thugh ehret there woudl be some snese in creating a simailr temaplte, with a name field, to output the above mark-up, for pages which name airfields, with codes, but which do not have an infobaox about that airfield. Emboldening of the airfeld name could be switchable. Andy Mabbett (User:Pigsonthewing); Talk to Andy Mabbett; Andy Mabbett's contributions 20:31, 7 September 2008 (UTC)

Airport codes in boldface[edit]

The use of boldface in this template doesn't quite comply with MOS:BOLD, and it'd probably be appropriate to print the airport codes in a normal font weight. – Acdx (talk) 13:08, 14 August 2012 (UTC)

Posted a link to here at Wikipedia talk:WikiProject Airports might bring in a few more comments. For me I'm not bothered either way. CambridgeBayWeather (talk) 18:11, 14 August 2012 (UTC)
The template documentation gives examples which look like the first line of an article - where I think that it's OK to have a bold code because it's an alternate descriptor for the subject of the article (WP:MOSBOLDSYN gives an example of Sodium hydroxide, where NaOH is mentioned at the top of the article, and boldface). I think that usage is reasonable though we shouldn't make it mandatory. However, in practice it seems that this template is transcluded all over articles, in the middle of prose or even in refs - in places like that I think boldface is ugly. So, overall, I think it's best not to have boldface codes in this template. bobrayner (talk) 18:37, 14 August 2012 (UTC)
When this was first created, it was intended to standardize the display of these codes in the first sentence of articles. If this is being used in other places, may I suggest that we add bold=off as an optional parameter when this is used in other places if we need to stop the bolding? That way, the original intent will be retained and other uses would be able to conform to the MoS. If we do this, would it make sense to also change the LID to keywords, say lid code= and lid=name? Vegaswikian (talk) 19:35, 14 August 2012 (UTC)
That looks reasonable to me. bobrayner (talk) 19:38, 14 August 2012 (UTC)
That sounds great to me, I suppose the documentation should then be changed to indicate that this flag be always set when the template is used outside the lead sentence? – Acdx (talk) 01:32, 15 August 2012 (UTC)
I dont think it should be used in the lead as the information is in the infobox, this template was created very earlier on before the i/box was developed so we should really stop using it. MilborneOne (talk) 21:22, 18 August 2012 (UTC)

RfC: Should the codes be in bold by default?[edit]

Looking at the above section I don't think a consensus was reached. So I am looking to get more comments as to the use of bolding in the template. So should bold be the default or not? CambridgeBayWeather (talk) 20:57, 16 February 2014 (UTC)


Threaded discussion[edit]

Although this template's primary use is in airport articles it is used in others. Examples of this include hospital infoboxes, Royal Victoria Regional Health Centre, and the body of certain articles, Whistler, British Columbia#Transportation. According to Wikipedia:Manual of Style/Text formatting#Boldface the use of bolding is discouraged except "to highlight the article title, and often synonyms". So in the case of hospital infoboxes and the body of articles there should be no bolding. The use in airport articles is usually after the name of the article as part of the first sentence. In this case it could be bold as a possible synonym.

If bold is to be the default then, as per Wikipedia:Help desk#Template:Airport codes, '''{{{1}}}''' and all the others would be replaced by {{#ifeq:{{{b}}}|n|{{{1}}}|'''{{{1}}}'''}}. This would leave all current uses of the template as is and the bolding could be removed in other articles by the use of "b=n". The other option is to remove the bold from the template and use {{Airport codes|'''AAA'''|'''BBBB'''|'''CCC'''}} when bolding was required. The first option would leave all articles as is but would increase the size of the template. The second option would not increase the template size but would change every single article. CambridgeBayWeather (talk) 20:57, 16 February 2014 (UTC)

  • Of the 12,834 or so current transclusions, how many should be bold? I'm guessing it would take a little while to go through all of those articles and adjust the template calls to bold the ones that should be bolded. I'm also guessing that the end result would be worth it. — {{U|Technical 13}} (tec) 21:16, 16 February 2014 (UTC)
    • It looks to be about 12,000 airports and railway stations that would use the template in the opening sentence. That leaves about 650 that the bold needs to be removed from. If the airports and railway stations are to use the bold then a bot would have to do it. CambridgeBayWeather (talk) 03:51, 17 February 2014 (UTC)