Jump to content

Template:GeoTemplate/export: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Stop hacking violations of the law will end in arrest. Final warning
Tags: Replaced Reverted Mobile edit Mobile web edit
m Reverted edit by 2603:8081:58F0:15E0:A9C9:684E:547F:FC94 (talk) to last version by Annh07
(9 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<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>
Hacker leave Federal bureau Law investigations complaint was made on hacking. templates|{{PAGINATE}}]]

{| 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"
|+ colspan="2" style="font-size:130%; font-weight:bold; text-align:center;" class="fn org" | {title}
|-
! colspan="2" | Location
|-
| '''WGS84'''
| {latdegabs}° {latminint}′ {latsecdec}″ {latNS}, {londegabs}° {lonminint}′ {lonsecdec}″ {lonEW} (<span class="geo"><span class="latitude">{latdegdec}</span>,&nbsp;<span class="longitude">{londegdec}</span></span>)
|-
| '''UTM'''
| {utmzone} {utmeasting} {utmnorthing}
|-
| '''Antipole'''
| {latantipodes}, {longantipodes}
|-
| colspan="2" style="padding:0;"| <!-- minimap -->
<div style="position:relative; width:360px; height:180px; overflow:hidden;">
<div style="position:absolute;">[[File:World map with nations.svg|360x180px|link=]]</div>
<div style="position:absolute; top:94px; left:176px;">
<div style="position:absolute; bottom:{latdegint}px; left:{londegint}px;" title="{title}">[[File:Blue pog.svg|8x8px|link=]]</div>
</div>
</div>
|-
! colspan="2" | Object
|- style="display:none{type}"
| '''Type'''
| {type}
|- style="display:none{region}"
| '''Within'''
| {region}
|-
| '''Scale'''
| ± 1:{scale}
|-
| colspan="2" class="plainlinks" style="background:#ebebeb; font-size:x-small; text-align:center; display:none{pagename}"|[{{SERVER}}/w/index.php?title=Talk:{pagename}&action=edit&section=new&preloadtitle=Coordinates&preload=Template:GeoTemplate/discuss_coordinates_preload Report incorrect coordinate] • [{{SERVER}}/w/index.php?title={pagename}&action=submit Edit article] • [{{SERVER}}/wiki/{pagename} Return to article]
|}
{{TOC left}}{{clear|left}}__NOEDITSECTION__
<div style="overflow:hidden">

== Lookup services ==
* [http://geohash.org?q={latdegdec},{londegdec} Geohash]
* [https://ngmdb.usgs.gov/maps/TopoView/viewer/#{osmzoom}/{latdegdec}/{londegdec} topoView]
</div>

== 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. {{tl|coord}}) or infobox to add coordinates to articles in Wikipedia.

{| class="gallery"
|-
| [[Geo (microformat)|Geo microformat]]<br />(simple, with semicolon)
|| <code><nowiki><span class="geo">{latdegdec};{londegdec}</span></nowiki></code>
|- style="background:#f5f5f5"
| Geo microformat<br />(verbose, with comma)
|| <code><nowiki><span class="geo"><span class="latitude">{latdegdec}</span>, <span class="longitude">{londegdec}</span></span></nowiki></code>
|-
| [[ICBM address|ICBM]]<br />(note comma)
|| <code><meta name="ICBM" content="{latdegdec}, {londegdec}"></code>
|- style="background:#f5f5f5"
| geo.position<br />(note semi-colon)
|| <code><meta name="geo.position" content="{latdegdec}; {londegdec}"></code>
|-
| [[Dublin Core]]
|| <code><meta name="DC.Coverage.Spatial.Lat" content="{latdegdec}"><br /><meta name="DC.Coverage.Spatial.Long" content="{londegdec}"></code>
|- style="background:#f5f5f5"
| [[GeoTagging|GeoTags]]
|| <code>geotagged geo:lat={latdegdec} geo:lon={londegdec}</code>
|-
| [[Geo URI]]<br />(will only work on Geo URI-aware systems)
| geo:{latdegdec},{londegdec}
|}

== XML ==
{| class="gallery" style="white-space:nowrap;"
|-
| [[Keyhole Markup Language|KML]]
||<pre>
<?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></pre>
|-
| [[GPS eXchange Format|GPX]]
||<!--EDITORS TAKE NOTE: please run any changes to this format through the GPX Validator! Thanks--><pre>
<?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>
</pre>
|}

== 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 {{Tl|Coord}} code is provided for use in the English Wikipedia, and others where supported.

{| class="gallery"
! Input
!colspan="2"| Display
! Markup
|-
| d
| article
|
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}}}</nowiki>
|-
| d
| article
| title
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}|display=inline,title}}</nowiki>
|-
| d
|
| title
| '''<nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}|display=title}}</nowiki>'''
|-
|}

=== Wikimedia Commons ===

{| class="gallery"
! Type
! Input
! Markup
|-
|rowspan=2| Camera location
| d
| <nowiki>{{location dec|{latdegdec}|{londegdec}|heading:?_region:{region}_source:{language}wiki}}</nowiki>
|-
| dms
| '''<nowiki>{{location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|heading:?_region:{region}_source:{language}wiki}}</nowiki>'''
|-
|rowspan=2| Object location
| d
| <nowiki>{{object location dec|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| dms
| '''<nowiki>{{object location|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|}

More information: [[Commons:Commons:Geocoding|Commons Geocoding]]

=== Other wikis ===

The following code is provided for use in other Wikipedias.

===== Coor * templates =====
{| class="gallery"
! Input
!colspan="2"| Display
! Markup
|-
| d
| article
|
| <nowiki>{{coor d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| d
| article
| title
| <nowiki>{{coor at d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| d
|
| title
| '''<nowiki>{{coor title d|{latdegabs}|{latNS}|{londegabs}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|-
| dm
| article
|
| <nowiki>{{coor dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| dm
| article
| title
| <nowiki>{{coor at dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| dm
|
| title
| '''<nowiki>{{coor title dm|{latdegabs}|{latmindec}|{latNS}|{londegabs}|{lonmindec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|-
| dms
| article
|
| <nowiki>{{coor dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| dms
| article
| title
| <nowiki>{{coor at dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| dms
|
| title
| '''<nowiki>{{coor title dms|{latdegabs}|{latminint}|{latsecdec}|{latNS}|{londegabs}|{lonminint}|{lonsecdec}|{lonEW}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>'''
|}

===== Coord template =====
{| class="gallery"
! Input
!colspan="2"| Display
! Markup
|-
| d
| article
|
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki}}</nowiki>
|-
| d
| article
| title
| <nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}_source:{language}wiki|display=inline,title}}</nowiki>
|-
| d
|
| title
| '''<nowiki>{{coord|{latdegdec}|{londegdec}|type:{type}_region:{region}|display=title}}</nowiki>'''
|}

===== Coordinate template =====
{| class="gallery"
! Input
!colspan="2"| Display
! Markup
|-
| dms
| article
| title
| <nowiki>{{Coordinate |text=DMS |article=/ |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}}</nowiki>
|-
| dms
| article
|
| <nowiki>{{Coordinate |text=DMS |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}}</nowiki>
|-
| dm
| article
|
| <nowiki>{{Coordinate |text=DM |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}}</nowiki>
|-
| dec
| article
|
| <nowiki>{{Coordinate |text=DEC |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}}</nowiki>
|-
| CH1903
| article
|
| <nowiki>{{Coordinate |text=CH1903 |NS={latdegdec} |EW={londegdec} |type={type} |pop= |elevation= |dim= |name={title} |region={region}}}</nowiki>
|}

===== [[:mw:Extension:Gis/geo tag|gis geo tag]] =====
Code for wikis using the [[:mw:Extension:Gis|gis Extension]]
{| class="gallery"
! Input
!colspan="2"| Display
! Markup
|-
| dms
|colspan="2"|
| &lt;geo&gt; {latdegabs} {latminint} {latsecdec} {latNS} {londegabs} {lonminint} {lonsecdec} {lonEW} type:{type} region:{region} &lt;/geo&gt;
|}

__NOINDEX__

[[Category:WikiProject Geographical coordinates]]
[[Category:External link templates|{{PAGENAME}}]]

Revision as of 19:53, 6 May 2024

{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