Difference between revisions of "Template:Avinor link"
Jump to navigation
Jump to search
imported>Zyxw (add option to include full English and Norwegian names, does not affect prior functionality) |
imported>Elegie (Fix broken links and use up-to-date HTTPS URLs in order to provide increased user privacy/security) |
||
Line 1: | Line 1: | ||
− | *[ | + | *[https://avinor.no/en/airport/{{{1}}}-airport/ Avinor entry for {{#if:{{{en|}}}|{{{en}}}|{{{2}}} Airport}}] |
− | *[ | + | *[https://avinor.no/flyplass/{{{1}}}/ Avinor entry for {{#if:{{{no|}}}|''{{{no}}}''|{{{2}}} Airport}}] {{no icon}} (more detail)<noinclude> |
---- | ---- | ||
{{documentation}} | {{documentation}} | ||
<!-- Categories and interwikis can be found in the /doc subpage, don't add them here. --> | <!-- Categories and interwikis can be found in the /doc subpage, don't add them here. --> | ||
</noinclude> | </noinclude> |
Revision as of 08:32, 23 June 2017
This template is used to generate an external links to the Avinor page for airports in Norway. It generates links to both the English language and Norwegian language pages. The use of a template allows these links to be updated in one place if the URL changes.
Contents
Usage
Short form
Parameters:
- (unnamed) – airport name in the Avinor URL, such as
bergen
forhttps://avinor.no/en/airport/bergen-airport/
andhttps://avinor.no/flyplass/bergen/
- (unnamed) – airport name displayed, such as
Bergen
; the template automatically adds "Airport"
Usage: {{Avinor link|bergen|Bergen}}
Result:
Long form
Parameters:
- (unnamed) – airport name in the Avinor URL, such as
bergen
forhttps://avinor.no/en/airport/bergen-airport/
andhttps://avinor.no/flyplass/bergen/
- en – airport name displayed for English-language link, such as
Bergen Airport, Flesland
- no – airport name displayed for Norwegian-language link, such as
Bergen lufthavn, Flesland
Usage: {{Avinor link|bergen|en=Bergen Airport, Flesland|no=Bergen lufthavn, Flesland}}
Result:
- Avinor entry for Bergen Airport, Flesland
- Avinor entry for Bergen lufthavn, Flesland Template:No icon (more detail)
See also
- {{AIP NO}} – generates an external link to the Aeronautical Information Publication (AIP) for a specific airport in Norway.
The above documentation is transcluded from Template:Avinor link/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |