Difference between revisions of "Template:Auto coordinates"

From Geohashing
imported>Joannac
m (Protected "Template:Auto coordinates": Excessive spamming ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
imported>Relet
(test: including globalhash coordinates on date pages an current events)
Line 2: Line 2:
 
  | Current events = === Today's Coordinates === || #default = === Coordinates ===
 
  | Current events = === Today's Coordinates === || #default = === Coordinates ===
 
}}
 
}}
{{coordinates date|{{{1|{{PAGENAME}}}}} }}</includeonly><noinclude>
+
{{coordinates date|{{{1|{{PAGENAME}}}}} }}
 +
{{auto globalhash coordinates|{{{1|{{PAGENAME}}}}} }}</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
 
<code><nowiki>{{auto coordinates}}</nowiki></code> gives coordinate fractions out to seven decimal places for both east and west of [[30W]], as given by [[Template:Coordinates date]].
 
<code><nowiki>{{auto coordinates}}</nowiki></code> gives coordinate fractions out to seven decimal places for both east and west of [[30W]], as given by [[Template:Coordinates date]].

Revision as of 13:15, 24 January 2010

Usage

{{auto coordinates}} gives coordinate fractions out to seven decimal places for both east and west of 30W, as given by Template:Coordinates date.

Defaults to the date from the page name if not passed a date, although this should be avoided. Otherwise, transclusion onto pages like 2009-02 will default to taking the "current" day of the month from the server time and will apply that day to all days in the desired month.