Difference between revisions of "Template:Coordinates"
From Geohashing
imported>Ahecht |
imported>Tjtrumpet2323 |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: date|{{#time:Y-m-d|{{{1}}} }} }} {{#ifexpr: {{{30w|0}}} = 1 | + | <includeonly>{{#vardefine: date|{{#time:Y-m-d|{{{1}}} }} }} {{#ifexpr: ({{{30w|0}}} = 1) and ({{#time:Ymd|{{#var:date}}}} >= 20080527) |
− | + | | {{Coordinates/30Wadjusted}} | |
− | | {{ | + | | {{Coordinates/Regular}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
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. | ||
− | |||
− | |||
{{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:47, 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.
Note: Currently applies 30W incorrectly to dates prior to 2008-05-27; fixing soon. --Tim P 02:44, 2 July 2008 (UTC)