Difference between revisions of "Template:Coordinates/Regular/latOnly"

From Geohashing
imported>Jiml
m (I'd like to knock them into 1969, where they will starve to death with no internet.)
(Fix 2012-02-26 (hopefully without breaking anything else))
 
(12 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#var:latdate}}||{{#vardefine:latdate|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:latdate}}|1970-01-01|{{#vardefine:latdate|{{{1}}}}}|}}}}{{#vardefine: steps|{{#expr: ({{#md5:{{#time: Y-m-d|{{#var:latdate}}}}-{{#dow:{{#time: Y|{{#var:latdate}}}}|{{#time: m|{{#var:latdate}}}}|{{#time: d|{{#var:latdate}}}}}} |1|1}} round 7) * 10000000}}}}.{{padleft:{{#var:steps}}|7|0}}</includeonly>
+
<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}}}}|{{#time: m|{{#var:latdate}}}}|{{#time: d|{{#var:latdate}}}}}} |1|1}}}}|7|.}}}}{{#sub:{{#var:steps}}|1}}</includeonly>

Latest revision as of 10:09, 14 August 2020