{{Coord}} provides a standard notation for encoding locations by theirlatitude andlongitude coordinates. It is primarily for specifying theWGS84 geographic coordinates of locations onEarth, at the same time emitting a machine-readableGeo microformat. However, it can also encode locations on natural satellites, dwarf planets, and planets other than Earth.
To specify celestial coordinates, use {{Sky}} instead.
Tag articles which lack coordinates (but need them) with {{Coord missing}}.
If the subject's location is truly unknown or disputed, note this with {{coord unknown}}.
Latitude and longitude may be specified (with appropriate precision) either in decimal notation or as degrees/minutes/seconds. By default, coordinates appear in the format used to specify them. However, theformat= parameter can be used to force display in a particular format.
The template displays the formatted coordinates with ahyperlink toGeoHack. GeoHack displays information customized to the location, including links to external mapping services.
Forterrestrial locations, a blue globe () appears to the left of the hyperlink. Clicking on the globe activates theWikiMiniAtlas (requiresJavaScript).
By default, coordinates appear "in line" with the adjacent text. However, thedisplay= parameter can be used to move the coordinates up near the page title—or display them in both places at once.
The template outputs coordinates in three formats:
Degree/minutes/seconds ("DMS", precision is degrees, or degrees/minutes, or degrees/minutes/seconds, based on input precision).
Decimal degrees (varying the number of decimal places based on input precision)
This single template supersedes {{coor d}}, (and others in that family which have since been redirected to it), plus theGeolinks andMapit templates. Most parameters can be used as before – seeUsage.
The hemisphere identifiers (N/S) and (E/W), if used, must be adjacent to the enclosing pipe "|" characters, and cannot be preceded or succeeded by spaces.
There are two kinds of parameters, all optional:
Coordinate parameters are parameters that {{Coord}} passes to the map server. These have the formatparameter:value and are separated from each other by the underscore character ( _ ). The supported coordinate parameters aredim:,globe:,region:,scale:,source:, andtype:. Seecoordinate parameters for details and examples.
Template parameters are parameters used by the {{Coord}} template. These have formatparameter=value and are separated from each other by the pipe character ( | ). The supported template parameters aredisplay=,format=,name=, andnotes=.
display= can be one of the following:
display=inline – Display the coordinate inline (default)
display=title – Display the coordinate at the top of the article, beside the article's title (replaces {{coor title dms}} family)
shortcut:display=t
display=inline,title – Display the coordinate both inline and beside the article's title (replaces {{coor at dms}} family)
shortcut:display=it
display=title,inline has the same effect asdisplay=inline,title
Note: thetitle attribute indicates that the coordinates apply to the entire article, and not just one of (perhaps many) places mentioned in it — so it should only be omitted in the latter case.
format= can be used to forcedec ordms coordinate display.
format=dec reformats the coordinates todecimal degrees format.
format=dms reformats the coordinates todegrees | minutes | seconds format.
name= can be used to annotate inline coordinates for display in map services such as theWikiMiniAtlas. If omitted, the article's title (PAGENAME) is assumed.
Note: aname= parameter causes {{Coord}} to emit anhCardmicroformat using that name,even if used within an existing hCard. Do not use when the name is that of a person (e.g for a gravesite), as the generated hCard would be invalid. Also, do not use square brackets in names.
notes= specifies text to be displayed immediately following the coordinates. This is primarily intended for adding footnotes to coordinates displayed beside the title.
Displaying all coordinate links on one map
The template {{GeoGroup}} can be used in an article with coordinates. This template creates links to Google Maps and Bing which display all the coordinates on a single map, and links to other services which allow the coordinates to be used or downloaded in a variety of formats.
The first unnamed parameter following the longitude is an optional string of coordinate parameters, separated by underscores. These parameters helpGeoHack select suitable map resources, and they will become more important whenWikimaps becomes fully functional.
type:T
Thetype: parameter specifies the type of location for reverse mapping (for instance, to select a marker icon in theWikiMiniAtlas).
Administrative unit of country, 3rd level, seetable
1:100,000
airport
airports and airbases
1:30,000
city(pop)
cities, towns, villages, hamlets, suburbs, subdivisions, neighborhoods, and other human settlements (including unincorporated and/or abandoned ones) with known population Please replacepop with a number. Commas inpop will be ignored. There should be no blanks.
1:30,000 ... 1:300,000
city
cities, towns, villages, hamlets, suburbs, subdivisions, neighborhoods, and other human settlements (including unincorporated and/or abandoned ones) with unspecified population These are treated as minor cities.
1:100,000
country
(e.g. "type:country")
1:10,000,000
edu
schools, colleges, and universities
1:10,000
event
one-time or regular events and incidents that occurred at a specific location, including battles, earthquakes, festivals, and shipwrecks
1:50,000
forest
forests and woodlands
1:50,000
glacier
glaciers and icecaps
1:50,000
isle
islands and isles
1:100,000
landmark
buildings (including churches, factories, museums, theatres, and power plants but excluding schools and railway stations), caves, cemeteries, cultural landmarks, geologic faults, headlands, intersections, mines, ranches, roads, structures (including antennas, bridges, castles, dams, lighthouses, monuments, and stadiums), tourist attractions, valleys, and other points of interest
1:10,000
mountain
peaks, mountain ranges, hills, submerged reefs, and seamounts
1:100,000
pass
mountain passes
1:10,000
railwaystation
stations, stops, and maintenance areas of railways and trains, including railroad, metro, rapid transit, underground, subway, elevated railway, etc.
1:10,000
river
rivers, canals, creeks, brooks, and streams, including intermittent ones
Thescale: parameter specifies the desiredmap scale as 1:N, overriding the scale implied by anytype: parameter.
GeoHack usesscale: to select a map scale for a 72dpi computer monitor. If nodim:,type:, orscale: parameters are provided, GeoHack uses its default scale of 1:300,000.
Thedim: parameter defines thediameter of a viewing circle centered on the coordinate. While the default unit of measurement is metres, thekm suffix may be appended to indicate kilometres.
GeoHack usesdim: to select amap scale such that the viewing circle appears roughly 10 centimetres (4 in) in diameter on a 72dpi computer monitor. If nodim:,type:, orscale: parameters are provided, GeoHack uses its default viewing circle of 30 kilometres (19 mi).
Theregion: parameter specifies the political region for terrestrial coordinates. It is used to select appropriate map resources. If noregion: parameter is provided,GeoHack attempts to determine the region from the coordinates.
The region should be supplied as either a two characterISO 3166-1 alpha-2 country code or anISO 3166-2 region code.
For globes other than Earth, {{coord}} does not assume a specific reference system (in contrast with Earth's WGS84). Since the template defaults to east longitude, the|W| direction must be specified for globes that measure longitude westward. At the present time, only limited mapping is available for Mars and the Moon and none for other extraterrestrial bodies. For celestial coordinates, use {{Sky}} instead.
source:S
Specifies, where present, the data source and data source format/datum, and optionally the original data, presented in parentheses. This is initially primarily intended for use by geotagging robots, so that data is not blindly repeatedly copied from format to format and Wikipedia to Wikipedia, with progressive loss of precision and attributability.
Examples:
A lat/long geotag derived from aOrdnance SurveyNational Grid Reference NM 435 355 found in the English-language Wikipedia would be tagged as "source:enwiki-osgb36(NM435355)"
A latitude-longitude location sourced from data taken from the German-language Wikipedia would be tagged as "source:dewiki" – and so on, for other language codes;
A location sourced from the public domainGeoNet Names Server database would be tagged as "source:GNS". No datum or format information is needed, since by default all Wikipedia coordinates are in latitude/longitude format based on theWGS84 datum. Similarly, US locations sourced from the similar public domainGNIS database would be tagged as "source:GNIS".
Per-user display customization
To always display coordinates as DMS values, add this toyour common.css:
If CSS is disabled, or you have an old copy ofMediaWiki:Common.css cached, you will see both formats. (You can either clear your cache or manually refresh this URL:[1].)
To disable display of the blue globe adjacent to coordinates, add this toyour common.js
The template has some input checks built in. Most errors display a message inline and categorize the article in thehiddenmaintenance categoryCoord template needing repair. There are currently0 pages in that category. See the category description for further instructions.
The following templates are "subroutines" of {{Coord}}. Separating them out drastically reduces the pre-expand size of {{Coord}}. They shouldn't be invoked directly.