Template talk:Coord: Difference between revisions

From VOC Wiki
Jump to navigation Jump to search
imported>Matthew
No edit summary
 
imported>Matthew
Thoughts?
Line 21: Line 21:


{{coord|10U|486305|5543098|WGS84|hidedatum}}
{{coord|10U|486305|5543098|WGS84|hidedatum}}
== Thoughts? ==
This now seems to be working as intended. Any thoughts on using this site-wide? I found myself adding links to google maps a lot and like the way wikipedia does it. For the geeks, the source to the redirection hack is [http://carroll.org.uk/sandbox/geohack/utm2latlng.phps here] - I'm actually surprised I couldn't find something like that already. Seems everything wikipedia does with coordinates is in DMS. [[User:Matthew|Matthew]] 19:07, 24 July 2007 (PDT)

Revision as of 02:07, 25 July 2007

This template can be used whenever a UTM location / waypoint is added to a page. It outputs the waypoint in a standard format, and also adds a link that redirects to a page full of mapping links for the location, much like Coordinates pages on wikipedia, e.g. Mount Price.

Usage

The template accepts 5 parameters: UTM zone, x coordinate, y coordinate, datum and "hidedatum". The first 4 parameters must be included for the template to work. The hidedatum parameter, if included, causes the template to not output the datum after the link. This may be useful for lists of waypoints where the datum is mentioned elsewhere on the page.

For example:

{{coord|10U|486404|5542900|NAD27}}

produces:

10U 486404E 5542900N (NAD27 datum)

or

{{coord|10U|486305|5543098|WGS84|hidedatum}}

produces:

10U 486305E 5543098N

Thoughts?

This now seems to be working as intended. Any thoughts on using this site-wide? I found myself adding links to google maps a lot and like the way wikipedia does it. For the geeks, the source to the redirection hack is here - I'm actually surprised I couldn't find something like that already. Seems everything wikipedia does with coordinates is in DMS. Matthew 19:07, 24 July 2007 (PDT)