Template:CoordDM/doc
This is a documentation subpage for Template:CoordDM. It may contain usage information, categories and other content that is not part of the original template page. |
A version of the Template:T1 template where just degrees and minutes and are specified.
Usage
To add Lua error: callParserFunction: function "#coordinates" was not found.{{#coordinates:57|18|N|4|27|W|dim=|globe=|scale=|region=|type={{{type}}} | |name= }} to the top of an article, use {{CoordDM}}, thus:
{{CoordDM|57|18|N|4|27|W|display=title}}
No alternate set of parameter are available for this template. See {{coordDec}} for angles specified as signed decimal degrees, and {{coordDMS}} for when degrees, minutes and seconds are all specified.
These coordinates are in degrees, minutes, and seconds of arc.
- Degrees, minutes and seconds must be separated by a pipe ("|").
- Map datum must be WGS84 (except for off-earth bodies).
- Avoid excessive precision (0.0001° is <11 m, 1″ is <31 m).
- Latitude (N/S) must appear before longitude (E/W).
Optional coordinate parameters follow the longitude and are separated by an underscore ("_"):
- dim:
dim:
N (viewing diameter in metres) - region:
region:
R (ISO 3166-1 alpha-2 or ISO 3166-2 code) - type:
type:
T (landmark
orcity(30,000)
, for example)
Other optional parameters are separated by a pipe ("|"):
- display
|display=inline
(the default) to display in the body of the article only,|display=title
to display at the top of the article only, or|display=inline,title
to display in both places.
- name
name=
X to label the place on maps (default is PAGENAME)
Thus: {{CoordDMS|57|18|N|4|27|W|dim:30_region:US-WI_type:event
|display=inline,title|name=accident site}}
Use |display=title
(or |display=inline,title
) once per article, for the subject of the article, where appropriate.
- Per WP:ORDER, the template is placed in articles after any navigation templates, but before any Persondata or Defaultsort templates, or Categories.
- For full details, refer to {{Coord/doc}}.
- Additional guidance is available: obtaining coordinates, converting coordinates
Template Data
Encodes the latitude and longitude coordinates of a location specified in degrees and minutes, provides a link to map of the location.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Latitude degrees | 1 | The degrees part of the latitude. This can either be a whole number in which case minutes and seconds can also be provided in subsequent parameters, or in decimal format, negative for south eg -79.38. | Number | required |
Latitude minutes | 2 | The minutes part of the latitude. Do not be overly precise, 1' is approximately 1.5km, Not used if decimal degrees are specified. | Number | required |
Latitude direction | 3 | Direction part of latitude: N or S. Not used if decimal degrees are specified. | String | required |
Longitude degrees | 4 | The degrees part of the longitude. This can either be a whole number in which case minutes and seconds can also be provided in subsequent parameters, or in decimal format, negative for west eg -79.38. | Number | required |
Longitude minutes | 5 | The minutes part of the longitude. Do not be overly precise 1' is approximately 1.5km. Not used if decimal degrees are specified. | Number | required |
Longitude direction | 6 | Direction part of longitude: E or W. Not used if decimal degrees are specified. | String | required |
Coordinate parameters | 7 | Optional parameters separated by an underscore '_', dim:N (viewing diameter in metres), region:R (ISO 3166-1 alpha-2 or ISO 3166-2 code), type:T (eg landmark or city(30,000)). For example 'dim:30_region:US-WI_type:event' | String | optional |
Display | display | Where it is displayed. Can be one of: 'inline' in the body of the article (default), 'title' at the top of the article or 'inline,title' both | String | optional |
Name | name | a label to place on maps (default is PAGENAME) | String | optional |
Notes | notes | text displayed immediately following the coordinates | String | optional |
Format | format | How the coordinates are displayed, either 'dec' or 'dms' | String | optional |