Template:Location/ExternalLink: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
m (Doc style)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="plainlinks">{{#switch: {{{1|}}}
<span class="plainlinks">{{#switch: {{{1|}}}
|Flightgear Mapserver|FGFS  = [http://mapserver.flightgear.org/popmap/?lat={{{3|0}}}&lon={{{4|0}}}&zoom=16&layers=B00FFTTTTT]
|GoogleMaps|GM  = {{#switch: {{{2|}}}
|GoogleMaps|GM  = {{#switch: {{{2|}}}
   |Mars = [http://www.google.com/mars/#lat={{{3|0}}}&lon={{{4|0}}}&zoom=8 {{{6}}}]
   |Mars = [http://www.google.com/mars/#lat={{{3|0}}}&lon={{{4|0}}}&zoom=8 {{{6}}}]
Line 15: Line 18:
|Proximityrama|PR  = {{#switch: {{{2|}}}| Earth|E = - [{{fullurl:tools:~para/GeoCommons/proximityrama|latlon={{{3|0}}},{{{4|0}}}}} {{{6}}}] }}
|Proximityrama|PR  = {{#switch: {{{2|}}}| Earth|E = - [{{fullurl:tools:~para/GeoCommons/proximityrama|latlon={{{3|0}}},{{{4|0}}}}} {{{6}}}] }}
<nowiki><!--|OpenStreetMap|OSM  = {{#switch: {{{2|}}}| Earth|E = - [{{fullurl:tools:~kolossos/openlayers/commons-on-osm.php|zoom=16&lat={{{3|0}}}&lon={{{4|0}}}}} {{{6}}}] }} ==></nowiki>
<nowiki><!--|OpenStreetMap|OSM  = {{#switch: {{{2|}}}| Earth|E = - [{{fullurl:tools:~kolossos/openlayers/commons-on-osm.php|zoom=16&lat={{{3|0}}}&lon={{{4|0}}}}} {{{6}}}] }} ==></nowiki>
|OpenStreetMap|OSM  = {{#switch: {{{2|}}}|[ http://www.openstreetmap.org/#map=10/{{{3|0}}}/{{4|0}}} {{6}}] }}
|OpenStreetMap|OSM  = [http://www.openstreetmap.org/#map=10/{{{3|0}}}/{{{4|0}}} {{{6}}}]
}}</span><noinclude>
}}</span><noinclude>
Template for formating external links to mapping websites. Used by {{tl|location/layout}}. <br>
{{Informative template|1=
Input Parameters:
__NOTOC__
# <nowiki>{{{1}}}</nowiki> - name of external website: GoogleMap (aka GM), GoogleEarth (aka GE), Proximityrama (aka PR), OpenStreetMap (aka OSM)etc.
== Goal ==
# <nowiki>{{{2}}}</nowiki> - name of the globe: earth, mars, moon
This template is used for formatting external links to mapping websites. Used by {{tl|location/layout}}.
# <nowiki>{{{3}}}</nowiki> - latitude
 
# <nowiki>{{{4}}}</nowiki> - longitude
== Usage ==
# <nowiki>{{{5}}}</nowiki> - language code: en, pl, de, etc.
<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>{{{6}}}</nowiki> - 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 [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]]
}}
</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.