Jump to content

Template:GeoTemplate/export: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+
m +
Line 1: Line 1:
<div id="contentSub"><span class="subpages plainlinks">&lt; [http://toolserver.org/~geohack/geohack.php?pagename={pagename}&params={latdegabs}_{latminint}_{latsecdec}_{latNS}_{londegabs}_{lonminint}_{lonsecdec}_{lonEW}_region:{region}_scale:{scale}_type:{type}&title={title} GeoTemplate]</span></div>
<div id="contentSub"><span class="subpages plainlinks">&lt; [https://toolserver.org/~geohack/geohack.php?pagename={pagename}&params={latdegabs}_{latminint}_{latsecdec}_{latNS}_{londegabs}_{lonminint}_{lonsecdec}_{lonEW}_region:{region}_scale:{scale}_type:{type}&title={title} GeoTemplate]</span></div>


{| border="1" cellpadding="3" cellspacing="1" style="background:#f9f9f9; border:1px solid #aaa; border-collapse:collapse; color:black; float:right; font-size:90%; margin:0.5em 0 0.5em 1em; padding:0.2em; width:360px;" class="vcard"
{| border="1" cellpadding="3" cellspacing="1" style="background:#f9f9f9; border:1px solid #aaa; border-collapse:collapse; color:black; float:right; font-size:90%; margin:0.5em 0 0.5em 1em; padding:0.2em; width:360px;" class="vcard"
Line 42: Line 42:
* Earthtools.org: [http://www.earthtools.org/timezone/{latdegdec}/{londegdec} Timezone] (XML)
* Earthtools.org: [http://www.earthtools.org/timezone/{latdegdec}/{londegdec} Timezone] (XML)
* Earthtools.org: [http://www.earthtools.org/height/{latdegdec}/{londegdec} Height Lookup] (XML)
* Earthtools.org: [http://www.earthtools.org/height/{latdegdec}/{londegdec} Height Lookup] (XML)
* USGS Elevation: [http://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service.asmx/getElevation?X_Value={londegdec}&Y_Value={latdegdec}&Elevation_Units=FEET&Source_Layer=-1&Elevation_Only=FALSE feet], [http://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service.asmx/getElevation?X_Value={londegdec}&Y_Value={latdegdec}&Elevation_Units=METERS&Source_Layer=-1&Elevation_Only=FALSE meters] (XML)
* USGS Elevation: [https://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service.asmx/getElevation?X_Value={londegdec}&Y_Value={latdegdec}&Elevation_Units=FEET&Source_Layer=-1&Elevation_Only=FALSE feet], [https://gisdata.usgs.gov/XMLWebServices/TNM_Elevation_Service.asmx/getElevation?X_Value={londegdec}&Y_Value={latdegdec}&Elevation_Units=METERS&Source_Layer=-1&Elevation_Only=FALSE meters] (XML)
</div>
</div>


Line 85: Line 85:
<coordinates>{londegdec},{latdegdec}</coordinates>
<coordinates>{londegdec},{latdegdec}</coordinates>
</Point>
</Point>
<description><![CDATA[From Wikipedia article http://en.wikipedia.org/wiki/{pagename}]]</description>
<description><![CDATA[From Wikipedia article https://{language}.wikipedia.org/wiki/{pagename}]]</description>
</Placemark>
</Placemark>
</kml></pre>
</kml></pre>
Line 92: Line 92:
||<!--EDITORS TAKE NOTE: please run any changes to this format through the GPX Validator! Thanks--><pre>
||<!--EDITORS TAKE NOTE: please run any changes to this format through the GPX Validator! Thanks--><pre>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Wikipedia" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<gpx version="1.1" creator="Wikipedia" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/1"
xmlns="http://www.topografix.com/GPX/1/1"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<metadata>
<metadata>
<copyright author="Wikipedia Contributors, see article history">
<copyright author="Wikipedia Contributors, see article history">
<license>http://en.wikipedia.org/wiki/Wikipedia:GFDL</license>
<license>https://{language}.wikipedia.org/wiki/Wikipedia:GFDL</license>
</copyright>
</copyright>
<keywords>{region},{title},Wikipedia</keywords>
<keywords>{region},{title},Wikipedia</keywords>
Line 105: Line 105:
<desc><![CDATA[{title}]]></desc>
<desc><![CDATA[{title}]]></desc>
<src><![CDATA[From the Wikipedia article '{pagename}']]></src>
<src><![CDATA[From the Wikipedia article '{pagename}']]></src>
<link href="http://en.wikipedia.org/wiki/{pagename}"></link>
<link href="https://{language}.wikipedia.org/wiki/{pagename}"></link>
</wpt>
</wpt>
</gpx>
</gpx>
Line 151: Line 151:
|rowspan=2| Camera location
|rowspan=2| Camera location
| d
| d
| <nowiki>{{location dec|{latdegdec}|{londegdec}|heading:?_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{location dec|{latdegdec}|{londegdec}|heading:?_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| dms
| dms
| '''<nowiki>{{location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|heading:?_region:{region}_source:enwiki}}</nowiki>'''
| '''<nowiki>{{location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|heading:?_region:{region}_source:{language}wiki}}</nowiki>'''
|-
|-
|rowspan=2| Object location
|rowspan=2| Object location
| d
| d
| <nowiki>{{object location dec|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{object location dec|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| dms
| dms
| '''<nowiki>{{object location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>'''
| '''<nowiki>{{object location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|}
|}


Line 179: Line 179:
| article
| article
|
|
| <nowiki>{{coor d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coor d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| d
| d
| article
| article
| title
| title
| <nowiki>{{coor at d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coor at d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| d
| d
|
|
| title
| title
| '''<nowiki>{{coor title d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>'''
| '''<nowiki>{{coor title d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|-
|-
| dm
| dm
| article
| article
|
|
| <nowiki>{{coor dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coor dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| dm
| dm
| article
| article
| title
| title
| <nowiki>{{coor at dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coor at dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| dm
| dm
|
|
| title
| title
| '''<nowiki>{{coor title dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>'''
| '''<nowiki>{{coor title dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|-
|-
| dms
| dms
| article
| article
|
|
| <nowiki>{{coor dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coor dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| dms
| dms
| article
| article
| title
| title
| <nowiki>{{coor at dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coor at dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| dms
| dms
|
|
| title
| title
| '''<nowiki>{{coor title dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}}</nowiki>'''
| '''<nowiki>{{coor title dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|}
|}


Line 231: Line 231:
| article
| article
|
|
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:enwiki}}</nowiki>
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
|-
| d
| d
| article
| article
| title
| title
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:enwiki|display=inline,title}}</nowiki>
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki|display=inline,title}}</nowiki>
|-
|-
| d
| d

Revision as of 23:11, 12 May 2017

{title}
Location
WGS84 {latdegabs}° {latminint}′ {latsecdec}″ {latNS}, {londegabs}° {lonminint}′ {lonsecdec}″ {lonEW} ({latdegdec}{londegdec})
UTM {utmzone} {utmeasting} {utmnorthing}
Antipole {latantipodes}, {longantipodes}
Object
Type {type}
Within {region}
Scale ± 1:{scale}

Lookup services

HTML

The following HTML markup is provided for use in other websites - add closing slashes for XHTML if appropriate. Please use the relevant template (e.g. {{coord}}) or infobox to add coordinates to articles in Wikipedia.

XML

Wiki markup

Legend
  • "Display": article is display inline with text, title will display in top corner of page
  • Bolding: This is the code that you most likely want
  • Input format: d = Degrees, dm = Degree-Minutes, dms = Degree-Minutes-Seconds

English Wikipedia

The following {{Coord}} code is provided for use in the English Wikipedia, and others where supported.

Wikimedia Commons

More information: Commons Geocoding

Other wikis

The following code is provided for use in other Wikipedias.

Coor * templates
Coord template
Coordinate template

Code for wikis using the gis Extension