Difference between revisions of "Template:Auto coordinates"
From Geohashing
imported>Coreycubed |
imported>Tjtrumpet2323 m (updating to take a passed date parameter... about time) |
||
Line 1: | Line 1: | ||
<includeonly>=== Coordinates === | <includeonly>=== Coordinates === | ||
− | {{coordinates date|{{PAGENAME}}}}</includeonly><noinclude> | + | {{coordinates date|{{{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]]. | ||
− | * For use only on date pages, e.g., [[2008-07-07]]. | + | * For use only on date pages, e.g., [[2008-07-07]]. |
+ | |||
+ | Defaults to the date from the page name if not passed a date, although this should be avoided. Transclusion onto pages like [[2009-02]] will default to taking the "current" day of the month from the [[Template:Server time|server time]] and will apply that day to all days in the desired month. | ||
[[Category:Coordinate calculation templates|{{PAGENAME}}]] | [[Category:Coordinate calculation templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 04:43, 21 February 2009
Usage
{{auto coordinates}}
gives coordinate fractions out to seven decimal places for both east and west of 30W, as given by Template:Coordinates date.
- For use only on date pages, e.g., 2008-07-07.
Defaults to the date from the page name if not passed a date, although this should be avoided. 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.