Template:CoordDM/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Salix alba
basic doc
 
meta>Salix alba
more
Line 11: Line 11:
No alternate set of parameter are available for this template. See {{tl|coordDec}} for angles specified as signed decimal degrees, and {{tl|coordDMS}} for when degrees, minutes and seconds are all specified.
No alternate set of parameter are available for this template. See {{tl|coordDec}} for angles specified as signed decimal degrees, and {{tl|coordDMS}} for when degrees, minutes and seconds are all specified.


These [[Geographic coordinate system|coordinates]] are in [[Degree (angle)|degrees]], [[Minute of arc|minutes]], and seconds of arc.
These [[Geographic coordinate system|coordinates]] are in [[Degree (angle)|degrees]] and [[Minute of arc|minutes]].


* Degrees, minutes and seconds must be separated by [[Vertical bar|a pipe ("|")]].
* Degrees and minutes must be separated by [[Vertical bar|a pipe ("|")]].
* [[Geodetic system|Map datum]] must be WGS84 (except for off-earth bodies).
* [[Geodetic system|Map datum]] must be WGS84 (except for off-earth bodies).
* Avoid [[Wikipedia:WikiProject Geographical coordinates#Precision|excessive precision]] (0.0001° is <11 m, 1″ is <31 m).
* Avoid [[Wikipedia:WikiProject Geographical coordinates#Precision|excessive precision]] (0.0001° is <11 m, 1″ is <31 m).
Line 30: Line 30:
*[[Template:Coord#Name|name]]
*[[Template:Coord#Name|name]]
*: <code>name=</code>'''''X''''' to label the place on maps (default is [[mw:Help:Magic words#Page names|PAGENAME]])
*: <code>name=</code>'''''X''''' to label the place on maps (default is [[mw:Help:Magic words#Page names|PAGENAME]])
Thus: '''<code><nowiki>{{CoordDMS|57|18|N|4|27|W|dim:30_region:US-WI_type:event</nowiki></code>'''
Thus: '''<code><nowiki>{{CoordDM|57|18|N|4|27|W|dim:30_region:US-WI_type:event</nowiki></code>'''
::'''<code><nowiki>|display=inline,title|name=accident site}}</nowiki></code>'''
::'''<code><nowiki>|display=inline,title|name=accident site}}</nowiki></code>'''


Line 46: Line 46:
   "1": {
   "1": {
     "label": "Latitude degrees",
     "label": "Latitude degrees",
     "description": "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.",
     "description": "The degrees part of the latitude, a positive whole number.",
     "type": "number",
     "type": "number",
     "required": true
     "required": true
Line 52: Line 52:
   "2": {
   "2": {
     "label": "Latitude minutes",
     "label": "Latitude minutes",
     "description": "The minutes part of the latitude. Do not be overly precise, 1' is approximately 1.5km, Not used if decimal degrees are specified.",
     "description": "The minutes part of the latitude. Do not be overly precise, 1' is approximately 1.5km.",
     "type": "number",
     "type": "number",
     "required": true
     "required": true
Line 58: Line 58:
   "3": {
   "3": {
     "label": "Latitude direction",
     "label": "Latitude direction",
     "description": "Direction part of latitude: N or S. Not used if decimal degrees are specified.",
     "description": "Direction part of latitude: N or S.",
     "type": "string",   
     "type": "string",   
     "required": true
     "required": true
Line 64: Line 64:
   "4": {
   "4": {
     "label": "Longitude degrees",
     "label": "Longitude degrees",
     "description": "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.",
     "description": "The degrees part of the longitude, a positive whole number.",
     "type": "number",
     "type": "number",
     "required": true
     "required": true
Line 70: Line 70:
   "5": {
   "5": {
     "label": "Longitude minutes",
     "label": "Longitude minutes",
     "description": "The minutes part of the longitude. Do not be overly precise 1' is approximately 1.5km. Not used if decimal degrees are specified.",
     "description": "The minutes part of the longitude. Do not be overly precise 1' is approximately 1.5km.",
     "type": "number",
     "type": "number",
     "required": true
     "required": true
Line 114: Line 114:


== See also ==
== See also ==
*{{t1|coord}} the base template has more details on some of the parameters
*{{t1|coordDec}} an alternative version where signed decimal degrees are specified
*{{t1|coordDMS}}  an alternative version where degrees, minutes and seconds are specified


<includeonly>
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
<!-- Categories go here, and interwikis go in Wikidata -->
 
[[Category:Coordinates templates]]
</includeonly>
</includeonly>

Revision as of 23:46, 15 July 2013

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 and minutes.

  • Degrees and minutes 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: {{CoordDM|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.


Template Data

Encodes the latitude and longitude coordinates of a location specified in degrees and minutes, 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 direction3

Direction part of latitude: N or S.

Stringrequired
Longitude degrees4

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

Numberrequired
Longitude minutes5

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

Numberrequired
Longitude direction6

Direction part of longitude: E or W. Not used if decimal degrees are specified.

Stringrequired
Coordinate parameters7

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 where degrees, minutes and seconds are specified