Difference between revisions of "Template:CoordinatesTest"

From Geohashing
imported>Ahecht
imported>Ahecht
Line 7: Line 7:
 
* <code><nowiki>{{coordinates|2008-06-24}}</nowiki></code> gives non-adjusted coordinates for {{date link|2008-06-24}}.
 
* <code><nowiki>{{coordinates|2008-06-24}}</nowiki></code> gives non-adjusted coordinates for {{date link|2008-06-24}}.
 
* <code><nowiki>{{coordinates|2008-06-24|30w=1}}</nowiki></code> gives [[30W]]-adjusted coordinates for the same day.
 
* <code><nowiki>{{coordinates|2008-06-24|30w=1}}</nowiki></code> gives [[30W]]-adjusted coordinates for the same day.
* <code><nowiki>{{coordinates|2008-06-24|lat=42|latsign=N|long=71|longsign=W}}</nowiki></code> gives coordinates for the 42, -71 graticule for the same day. Note that this does not automatically detect 30W conditions -- you still must use the 30w parameter.
+
* <code><nowiki>{{coordinates|2008-06-24|lat=42|latsign=N|long=71|longsign=W}}</nowiki></code> gives coordinates for the 42, -71 graticule for the same day. <nowiki>lat</nowiki> and <nowiki>long</nowiki> must both be positive, and <nowiki>latsign</nowiki> and <nowiki>longsign</nowiki> default to N and E respectively if excluded. Note that this does not automatically detect 30W conditions -- you still must use the 30w parameter.
  
  
 
{{note|Currently applies [[30W]] incorrectly to dates prior to [[2008-05-27]]; fixing soon.  --[[User:Tjtrumpet2323|Tim P]] 02:44, 2 July 2008 (UTC)}}
 
{{note|Currently applies [[30W]] incorrectly to dates prior to [[2008-05-27]]; fixing soon.  --[[User:Tjtrumpet2323|Tim P]] 02:44, 2 July 2008 (UTC)}}
 
</noinclude>
 
</noinclude>

Revision as of 15:04, 2 July 2008

Usage

{{coordinates}} gives coordinate fractions out to seven decimal places. Must be passed a date in YYYY-MM-DD format.

  • {{coordinates|2008-06-24}} gives non-adjusted coordinates for Tuesday 24 June 2008.
  • {{coordinates|2008-06-24|30w=1}} gives 30W-adjusted coordinates for the same day.
  • {{coordinates|2008-06-24|lat=42|latsign=N|long=71|longsign=W}} gives coordinates for the 42, -71 graticule for the same day. lat and long must both be positive, and latsign and longsign default to N and E respectively if excluded. Note that this does not automatically detect 30W conditions -- you still must use the 30w parameter.


Arrow4.png Note: Currently applies 30W incorrectly to dates prior to 2008-05-27; fixing soon. --Tim P 02:44, 2 July 2008 (UTC)