Difference between revisions of "Template:Avinor link/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎Usage: correct link in descriptions)
imported>Colonies Chris
(wp:datescript-assisted date/terms audit; see wp:unlinkdates, wp:overlink)
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 [[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.
+
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 17: Line 17:
 
Parameters:
 
Parameters:
 
# (unnamed) – airport name in the Avinor URL, such as '''<code>bergen</code>''' for <code>www.avinor.no/en/airport/bergen</code> and <code>www.avinor.no/lufthavn/bergen</code>
 
# (unnamed) – airport name in the Avinor URL, such as '''<code>bergen</code>''' for <code>www.avinor.no/en/airport/bergen</code> and <code>www.avinor.no/lufthavn/bergen</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 [[Norway]].
+
* {{tl|AIP NO}} – generates an external link to the [[Aeronautical Information Publication]] (AIP) for a specific airport in Norway.
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->

Revision as of 11:43, 17 February 2014

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

Short form

Parameters:

  1. (unnamed) – airport name in the Avinor URL, such as bergen for www.avinor.no/en/airport/bergen and www.avinor.no/lufthavn/bergen
  2. (unnamed) – airport name displayed, such as Bergen; the template automatically adds "Airport"

Usage: {{Avinor link|bergen|Bergen}}

Result:

Long form

Parameters:

  1. (unnamed) – airport name in the Avinor URL, such as bergen for www.avinor.no/en/airport/bergen and www.avinor.no/lufthavn/bergen
  2. en – airport name displayed for English-language link, such as Bergen Airport, Flesland
  3. 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:

See also