Template:Location/ExternalLink: Difference between revisions

Jump to navigation Jump to search
m
Doc style
(+direct osm link (and comment actual ref to wikipedia tools (as it's not linked for now))
m (Doc style)
 
(7 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  = [http://www.openstreetmap.org/#map=10/{{{3|0}}}/{{4|0}}}]
|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>

Navigation menu