Difference between revisions of "Template:Coordinates/30Wadjusted/latOnly"
From Geohashing
imported>Mattyk |
(Fix 2012-02-26 (hopefully without breaking anything else)) |
||
(17 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{#var: | + | <includeonly>{{#if:{{#var:latdate}}||{{#vardefine:latdate|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:latdate}}|1970-01-01|{{#vardefine:latdate|{{{1}}}}}|}}}}{{#vardefine: steps|{{#number_format:{{<!--number_format accepts "e" but not "E"-->lc:{{#md5:{{#time: Y-m-d|{{#var:latdate}}}}-{{#dow:{{#time: Y|{{#var:latdate}} -1 day}}|{{#time: m|{{#var:latdate}} -1 day}}|{{#time: d|{{#var:latdate}} -1 day}}}} |1|1}}}}|7|.}}}}{{#sub:{{#var:steps}}|1}}</includeonly> |