Template:Infobox Airline/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Infobox Airline (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Usage

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.
Air Canada
IATA
AC
ICAO
ACA
Callsign
AIR CANADA
Founded 1937
Hubs * Toronto Pearson International Airport
* Montreal-Pierre Elliott Trudeau International Airport
* Vancouver International Airport
* Calgary International Airport
Focus cities * Halifax Stanfield International Airport
* Ottawa International Airport
Frequent flyer program Aeroplan
Member lounge Maple Leaf Lounge
Alliance Star Alliance
Fleet size 335 (+63 orders)
Destinations 240
Parent company ACE Aviation Holdings Inc.
Headquarters Montreal, Quebec
Key people * Robert Milton (Chairman)
* Montie Brewer (President & CEO)
Website: www.aircanada.com

{{Infobox Airline}} is used to summarize an airline's key points.

The parameters displayed in the infobox to the right are required. All others are optional, though some have guidelines you should follow to achieve the best, most consistent appearance.

{{Infobox Airline
| airline        = 
| image          = 
| image_size     = 
| IATA           = 
| ICAO           = 
| callsign       = 
| founded        = 
| commenced      = 
| ceased         = 
| hubs           = 
| secondary_hubs = 
| focus_cities   = 
| frequent_flyer = 
| lounge         = 
| alliance       = 
| subsidiaries   = 
| fleet_size     = 
| destinations   = 
| parent         = 
| company_slogan = 
| headquarters   = 
| key_people     = 
| website        = 
}}

[edit] Example

The following is the code for the above example of Infobox Airline as used for the Air Canada article (using a different image since the fair use logo can only be used in airline article).

{{Infobox Airline
| airline        = Air Canada
| image          = Air Canada 777.jpg
| image_size     = 280
| IATA           = AC
| ICAO           = ACA
| callsign       = AIR CANADA
| founded        = [[1937]]
| ceased         = 
| hubs           = * [[Toronto Pearson International Airport]]<br />* [[Montreal-Pierre Elliott Trudeau International Airport]]<br />* [[Vancouver International Airport]]<br />* [[Calgary International Airport]]
| secondary_hubs = 
| focus_cities   = * [[Halifax Stanfield International Airport]]<br />* [[Ottawa Macdonald-Cartier International Airport|Ottawa International Airport]]
| frequent_flyer = [[Aeroplan]]
| lounge         = [[Air Canada#Maple Leaf Lounge|Maple Leaf Lounge]]
| alliance       = [[Star Alliance]]
| subsidiaries   = 
| fleet_size     = 335 (+63 orders)
| destinations   = 240
| parent         = [[ACE Aviation Holdings|ACE Aviation Holdings Inc.]]
| company_slogan = 
| headquarters   = [[Montreal]], [[Quebec]]
| key_people     = * [[Robert Milton]] ([[Chairman]])<br />* [[Montie Brewer]] ([[President]] & [[CEO]])
| website        = [http://www.aircanada.com/ www.aircanada.com]
}}

[edit] Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the organisation's details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

hCard uses HTML classes including:

  • adr
  • country-name
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • vcard

Please do not rename or remove these classes.