Template:GeoTemplate/export
From The Goon Show Depository
Revision as of 00:48, 20 May 2022 by en>Meters (Reverted edits by 103.142.39.29 (talk) to last version by Jonesey95)
Location | |
---|---|
WGS84 | {latdegabs}° {latminint}′ {latsecdec}″ {latNS}, {londegabs}° {lonminint}′ {lonsecdec}″ {lonEW} ({latdegdec}, {londegdec}) |
UTM | {utmzone} {utmeasting} {utmnorthing} |
Antipole | {latantipodes}, {longantipodes} |
Object | |
Scale | ± 1:{scale} |
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.
Geo microformat (simple, with semicolon) |
<span class="geo">{latdegdec};{londegdec}</span>
|
Geo microformat (verbose, with comma) |
<span class="geo"><span class="latitude">{latdegdec}</span>, <span class="longitude">{londegdec}</span></span>
|
ICBM (note comma) |
<meta name="ICBM" content="{latdegdec}, {londegdec}">
|
geo.position (note semi-colon) |
<meta name="geo.position" content="{latdegdec}; {londegdec}">
|
Dublin Core | <meta name="DC.Coverage.Spatial.Lat" content="{latdegdec}">
|
GeoTags | geotagged geo:lat={latdegdec} geo:lon={londegdec}
|
Geo URI (will only work on Geo URI-aware systems) |
geo:{latdegdec},{londegdec} |
XML
KML | <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name><![CDATA[{title}]]</name> <Point> <coordinates>{londegdec},{latdegdec}</coordinates> </Point> <description><![CDATA[From Wikipedia article https://{language}.wikipedia.org/wiki/{pagename}]]</description> </Placemark> </kml> |
GPX | <?xml version="1.0" encoding="UTF-8"?> <gpx version="1.1" creator="Wikipedia" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" 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"> <metadata> <copyright author="Wikipedia Contributors, see article history"> <license>https://{language}.wikipedia.org/wiki/Wikipedia:GFDL</license> </copyright> <keywords>{region},{title},Wikipedia</keywords> </metadata> <wpt lat="{latdegdec}" lon="{londegdec}"> <name><![CDATA[{title}]]></name> <desc><![CDATA[{title}]]></desc> <src><![CDATA[From the Wikipedia article '{pagename}']]></src> <link href="https://{language}.wikipedia.org/wiki/{pagename}"></link> </wpt> </gpx> |
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.
Input | Display | Markup | |
---|---|---|---|
d | article | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}}} | |
d | article | title | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}|display=inline,title}} |
d | title | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}|display=title}} |
Wikimedia Commons
Type | Input | Markup |
---|---|---|
Camera location | d | {{location dec|{latdegdec}|{londegdec}|heading:?_region:{region}_source:{language}wiki}} |
dms | {{location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|heading:?_region:{region}_source:{language}wiki}} | |
Object location | d | {{object location dec|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki}} |
dms | {{object location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} |
More information: Commons Geocoding
Other wikis
The following code is provided for use in other Wikipedias.
Coor * templates
Input | Display | Markup | |
---|---|---|---|
d | article | {{coor d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} | |
d | article | title | {{coor at d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} |
d | title | {{coor title d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} | |
dm | article | {{coor dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} | |
dm | article | title | {{coor at dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} |
dm | title | {{coor title dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} | |
dms | article | {{coor dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} | |
dms | article | title | {{coor at dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} |
dms | title | {{coor title dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}} |
Coord template
Input | Display | Markup | |
---|---|---|---|
d | article | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki}} | |
d | article | title | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki|display=inline,title}} |
d | title | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}|display=title}} |
Coordinate template
Input | Display | Markup | |
---|---|---|---|
dms | article | title | {{Coordinate |text=DMS |article=/ |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}} |
dms | article | {{Coordinate |text=DMS |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}} | |
dm | article | {{Coordinate |text=DM |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}} | |
dec | article | {{Coordinate |text=DEC |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}} | |
CH1903 | article | {{Coordinate |text=CH1903 |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}} |
gis geo tag
Code for wikis using the gis Extension
Input | Display | Markup | |
---|---|---|---|
dms | <geo> {latdegabs} {latminint} {latsecdec} {latNS} {londegabs} {lonminint} {lonsecdec} {lonEW} type:{type} region:{region} </geo> |