Template:Airreg/doc

The Airreg template can be used to generate footnote references to entries in aviation authority registries for the desired aircraft registration; for example:  produces:



Only a limited number of national registries are supported (see below), i.e. those whose websites allow registration-based searches via URL parameters (HTTP GET requests).

Editors beware: formatting of code to make it "look nice" is likely to inadvertently introduce leading and trailing blank lines into the template output.

Usage
The template takes three positional parameters:


 * 1) Country prefix
 * 2) Registration string
 * 3) Punctuation (optional)

The prefix can be any of the ICAO country prefixes, although only for supported countries a footnote reference will be generated. For non-supported countries, the template simply outputs the registration in full, e.g.   produces

Any punctuation that is required to be placed before the citation marker (per WP:PAIC) can be specified as third parameter, e.g.  produces:



Supported country prefixes
_ C   | CF _> Canada

G  United Kingdom  (see note 1) HB Switzerland N  United States (see note 2) OY Denmark PH Netherlands _ PP  | PR  | PS   > Brazil PT  | PU _|

VH Australia ZK New Zealand