Template:CoordDMS/doc

From Zoophilia Wiki
Revision as of 23:49, 15 July 2013 by meta>Salix alba (tidy)
Jump to navigationJump to search

A version of the Template:T1 template where degrees, minutes and seconds are specified.

Usage

To add Lua error: callParserFunction: function "#coordinates" was not found.{{#coordinates:57|18|22|N|4|27|32|W|dim=|globe=|scale=|region=|type= | |name= }} to the top of an article, use {{CoordDMS}}, thus:

{{CoordDMS|57|18|22|N|4|27|32|W|display=title}}

No alternate set of parameter are available for this template. See {{coordDec}} for angles specified as signed decimal degrees, and {{coordDM}} for when just degrees and minutes are 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 ("_"):

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|22|N|4|27|32|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.


Template Data

Encodes the latitude and longitude coordinates of a location as degrees, minutes and seconds. Displays the coordinates and provides a link to map of the location.

Template parameters

ParameterDescriptionTypeStatus
Latitude degrees1

The degrees part of the latitude, a positive whole number.

Numberrequired
Latitude minutes2

The minutes part of the latitude. Do not be overly precise, 1' is approximately 1.5km.

Numberrequired
Latitude seconds3

The minutes part of the latitude. Do not be overly precise, 1" is approximately 30m.

Numberrequired
Latitude direction4

Direction part of latitude: N or S.

Stringrequired
Longitude degrees5

The degrees part of the longitude, a positive whole number.

Numberrequired
Longitude minutes6

The minutes part of the longitude. Do not be overly precise 1' is approximately 1.5km.

Numberrequired
Longitude seconds7

The minutes part of the longitude. Do not be overly precise 1" is approximately 30m.

Numberrequired
Longitude direction8

Direction part of longitude: E or W.

Stringrequired
Coordinate parameters9

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'

Stringoptional
Displaydisplay

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

Stringoptional
Namename

a label to place on maps (default is PAGENAME)

Stringoptional
Notesnotes

text displayed immediately following the coordinates

Stringoptional
Formatformat

How the coordinates are displayed, either 'dec' or 'dms'

Stringoptional

See also

  • Template:T1 the base template has more details on some of the parameters
  • Template:T1 an alternative version where signed decimal degrees are specified
  • Template:T1 an alternative version just degrees and minutes are specified