Template:Location/ExternalLink: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(+ Informative template)
m (Doc style)
 
Line 27: Line 27:
== Usage ==
== Usage ==
  <nowiki>{{</nowiki>'''Location/ExternalLink'''<nowiki>|</nowiki>website<nowiki>|</nowiki>celestial body<nowiki>|</nowiki>latitude<nowiki>|</nowiki>longitude<nowiki>|</nowiki>language code<nowiki>|</nowiki>link text<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''Location/ExternalLink'''<nowiki>|</nowiki>website<nowiki>|</nowiki>celestial body<nowiki>|</nowiki>latitude<nowiki>|</nowiki>longitude<nowiki>|</nowiki>language code<nowiki>|</nowiki>link text<nowiki>}}</nowiki>
=== Parameters ===
 
* <tt>'''website'''</tt>: Either of:
; website: Either of:
** <tt>Flightgear Mapserver</tt> or <tt>FGFS</tt>
:* '''Flightgear Mapserver FGFS'''
** <tt>GoogleEarth</tt> or <tt>GE</tt>
:* '''GoogleEarth''' or '''GE'''
** <tt>GoogleMap</tt> or <tt>GM</tt>
:* '''GoogleMap''' or '''GM'''
** <tt>Proximityrama</tt> or <tt>PR</tt>
:* '''Proximityrama''' or '''PR'''
** <tt>OpenStreetMap</tt> or <tt>SM</tt>
:* '''OpenStreetMap''' or '''SM'''
* <tt>'''celestial body'''</tt>: Either of <tt>earth</tt>, <tt>mars</tt> or <tt>moon</tt>
 
* <tt>'''latitude'''</tt>: The decimal latitude of the point
; celestial body:  Either of '''earth''', '''mars''' or '''moon'''.
* <tt>'''longitude'''</tt>: The decimal longitude of the point
 
* <tt>'''language code'''</tt>: Two letter [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639‑1 language code], for example <tt>en</tt> or <tt>fr</tt>
; latitude: The latitude of the point in decimal degrees.
* <tt>'''link text'''</tt>: The text that will be shown as the link
 
; longitude: The longitude of the point in decimal degrees.
 
; language code: Two letter [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1 language code], for example '''en''' or '''fr'''.
 
; link text: The text that will be shown as the link.


[[Category:Formatting templates]]
[[Category:Formatting templates]]
}}
}}
</noinclude>
</noinclude>

Latest revision as of 12:34, 16 June 2014

The following template description is not displayed when the template is inserted in an article.

Goal

This template is used for formatting external links to mapping websites. Used by {{location/layout}}.

Usage

{{Location/ExternalLink|website|celestial body|latitude|longitude|language code|link text}}
website
Either of:
  • Flightgear Mapserver FGFS
  • GoogleEarth or GE
  • GoogleMap or GM
  • Proximityrama or PR
  • OpenStreetMap or SM
celestial body
Either of earth, mars or moon.
latitude
The latitude of the point in decimal degrees.
longitude
The longitude of the point in decimal degrees.
language code
Two letter ISO 639-1 language code, for example en or fr.
link text
The text that will be shown as the link.