Template:Airreg

{{#switch: {{{1|}}}

|C

|CF = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web|title=Canadian Civil Aircraft Register ({{{1}}}-{{{2}}}) |url=http://wwwapps.tc.gc.ca/Saf-Sec-Sur/2/CCARCS-RIACC/RchHsRes.aspx?st=2&m={{!}}{{{2}}}{{!}}&rfr2=RchHs.aspx|website=Transport Canada}}}}

|G = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web|title=G-INFO Database |url=https://siteapps.caa.co.uk/g-info/|website=Civil Aviation Authority}}}}

|HB = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web|title=Swiss Aircraft Registry ({{{1}}}-{{{2}}}) |url=http://www.bazl.admin.ch/experten/luftfahrzeuge/luftfahrzeugregister/index.html?lang=en&nummer={{{2}}}|website=Federal Office of Civil Aviation}}}}

|HL = {{{1}}}{{{2}}}{{{3|}}}

|JA = {{{1}}}{{{2}}}{{{3|}}}

|N = {{{1}}}{{{2}}}{{{3|}}}{{#tag:ref|{{cite web|title=FAA Registry ({{{1}}}{{{2}}}) |url=https://registry.faa.gov/AircraftInquiry/Search/NNumberResult?nNumberTxt={{{1}}}{{{2}}}|website=Federal Aviation Administration}}}}

|OY = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web|title=Statens Luftfartsvæsen ({{{1}}}-{{{2}}}) |url=http://dcaa.trafikstyrelsen.dk/natregister/index.php?phplens_natreg_soeg_ny=filterview&num=10&lens_F0%5B%5D=%3D+Flyvemaskine&lens_F0_max=5&lens_F0_Exact=1&lens_F1={{{1}}}-{{{2}}}&_match_natreg_soeg_ny=2&PHPLENS_Filter=S%F8g&_urlParams_=LeNs|website=Danish Transport Authority}}}}

|PH = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web |title=Civil aircraft register ({{{1}}}-{{{2}}}) |url=http://www.newfoundland.nl/luchtvaartregister/user/en/luchtvaartuig.php?registratie={{{1}}}-{{{2}}}|website=Inspectie Leefomgeving en Transport}}}}

|PP

|PR

|PS

|PT

|PU = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web |title=Registro Aeronáutico Brasileiro ({{{1}}}-{{{2}}}) |url=http://www2.anac.gov.br/aeronaves/cons_rab_print.asp?nf={{{1}}}{{{2}}}|website=Agência Nacional de Aviação Civil}}}}

|VH = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web |title=CASA Aircraft Register ({{{1}}}-{{{2}}}) |url=https://www.casa.gov.au/search-centre/aircraft-register/{{{2}}}|website=Civil Aviation Safety Authority}}}}

|ZK = {{{1}}}-{{{2}}}{{{3|}}}{{#tag:ref|{{cite web|title=Active Aircraft Register ({{{1}}}-{{{2}}}) |url=https://www.aviation.govt.nz/aircraft/aircraft-registration/aircraft-register-search/ShowDetails/{{{2}}}|website=Civil Aviation Authority of New Zealand}}}}

|#default = {{{1}}}-{{{2}}}{{{3|}}}

}}{{documentation}}

{

"params": {

"1": {

"label": "Country prefix",

"description": "The aircraft registration ICAO country prefixes",

"example": "N (for United States), G (for United Kingdom)",

"type": "unknown",

"required": true

},

"2": {

"label": "Registration",

"description": "Aircraft registration after the prefix",

"required": true

},

"3": {

"label": "Trailing punctuation",

"description": "Any punctuation that is required to be placed before the citation marker "

}

},

"description": "The Airreg template can be used to generate footnote references to entries in aviation authority registries for the desired aircraft registration.",

"paramOrder": [

"1",

"2",

"3"

]

}