模板:GeoTemplate/export
外观
地点 | |
---|---|
WGS84 | {latdegabs}° {latminint}′ {latsecdec}″ {latNS}, {londegabs}° {lonminint}′ {lonsecdec}″ {lonEW} ({latdegdec}, {londegdec}) |
UTM | {utmzone} {utmeasting} {utmnorthing} |
Antipole | {latantipodes}, {longantipodes} |
Object | |
比例 | ± 1:{scale} |
查询服务
[编辑]- Geohash
- Earthtools.org: Timezone (XML)
- Earthtools.org: Height Lookup (XML)
- USGS Elevation: feet, meters (XML)
HTML
[编辑]使用以下 HTML 标记在其他网站使用 - 如果是 XHTML ,需添加适当的结束斜线。请添加相关模板(如{{coord}})或 infobox 以在维基百科条目上加入坐标。
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} |
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 http://en.wikipedia.org/wiki/{pagename}]]</description> </Placemark> </kml> |
GPX | <?xml version="1.0" encoding="UTF-8"?> <gpx version="1.1" creator="Wikipedia" xmlns:xsi="http://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>http://en.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="http://en.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:enwiki}} |
dms | {{location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|heading:?_region:{region}_source:enwiki}} | |
Object location | d | {{object location dec|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:enwiki}} |
dms | {{object location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} |
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:enwiki}} | |
d | article | title | {{coor at d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:enwiki}} |
d | title | {{coor title d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:enwiki}} | |
dm | article | {{coor dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} | |
dm | article | title | {{coor at dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} |
dm | title | {{coor title dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} | |
dms | article | {{coor dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} | |
dms | article | title | {{coor at dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} |
dms | title | {{coor title dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:enwiki}} |
Coord template
[编辑]Input | Display | Markup | |
---|---|---|---|
d | article | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:enwiki}} | |
d | article | title | {{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:enwiki|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}}} |
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> |