Difference between revisions of "Template:Avinor link/doc"
Jump to navigation
Jump to search
imported>Zyxw (update documentation) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis go at the bottom of this page. --> | ||
− | This template is used to generate an external links to the [[Avinor]] page for airports in | + | 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. |
== Usage == | == Usage == | ||
Line 7: | Line 7: | ||
=== Short form === | === Short form === | ||
Parameters: | Parameters: | ||
− | # (unnamed) – airport name in the Avinor URL, such as '''<code>bergen</code>''' for <code> | + | # (unnamed) – airport name in the Avinor URL, such as '''<code>bergen</code>''' for <code><nowiki>https://avinor.no/en/airport/bergen-airport/</nowiki></code> and <code><nowiki>https://avinor.no/flyplass/bergen/</nowiki></code> |
# (unnamed) – airport name displayed, such as '''<code>Bergen</code>'''; the template automatically adds "Airport" | # (unnamed) – airport name displayed, such as '''<code>Bergen</code>'''; the template automatically adds "Airport" | ||
Line 16: | Line 16: | ||
=== Long form === | === Long form === | ||
Parameters: | Parameters: | ||
− | # (unnamed) – airport name in the Avinor URL, such as '''<code>bergen</code>''' for <code> | + | # (unnamed) – airport name in the Avinor URL, such as '''<code>bergen</code>''' for <code><nowiki>https://avinor.no/en/airport/bergen-airport/</nowiki></code> and <code><nowiki>https://avinor.no/flyplass/bergen/</nowiki></code> |
− | # '''en''' – airport name displayed for English language link, such as '''<code>Bergen Airport, Flesland</code>''' | + | # '''en''' – airport name displayed for English-language link, such as '''<code>Bergen Airport, Flesland</code>''' |
− | # '''no''' – airport name displayed for Norwegian language link, such as '''<code>Bergen lufthavn, Flesland</code>''' | + | # '''no''' – airport name displayed for Norwegian-language link, such as '''<code>Bergen lufthavn, Flesland</code>''' |
Usage: '''<code><nowiki>{{Avinor link|bergen|en=Bergen Airport, Flesland|no=Bergen lufthavn, Flesland}}</nowiki></code>''' | Usage: '''<code><nowiki>{{Avinor link|bergen|en=Bergen Airport, Flesland|no=Bergen lufthavn, Flesland}}</nowiki></code>''' | ||
Line 25: | Line 25: | ||
== See also == | == See also == | ||
− | * {{tl|AIP NO}} – generates an external link to the [[Aeronautical Information Publication]] (AIP) for a specific airport in | + | * {{tl|AIP NO}} – generates an external link to the [[Aeronautical Information Publication]] (AIP) for a specific airport in Norway. |
− | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- Categories and interwikis go here: --> | <!-- Categories and interwikis go here: --> | ||
[[Category:Aviation external link templates|{{PAGENAME}}]] | [[Category:Aviation external link templates|{{PAGENAME}}]] | ||
− | </includeonly> | + | }}</includeonly> |
Latest revision as of 23:29, 23 April 2020
![]() | This is a documentation subpage for Template:Avinor link. It contains usage information, categories and other content that is not part of the original template page. |
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:
- Avinor entry for Bergen Airport
- Avinor entry for Bergen Airport (in Norwegian) (more detail)
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 (in Norwegian) (more detail)
See also
- {{AIP NO}} – generates an external link to the Aeronautical Information Publication (AIP) for a specific airport in Norway.