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

From Geohashing
imported>Mattyk
imported>Mattyk
Line 1: Line 1:
<includeonly>{{#vardefine:date|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:date}}|1970-01-01-|{{#vardefine:date|{{{1}}}}}|}}{{#vardefine: steps|{{#expr: ({{#md5:{{#time: Y-m-d|{{#var:date}}}}-{{#dow:{{#time: Y|{{#var:date}}}}|{{#time: m|{{#var:date}}}}|{{#time: d|{{#var:date}}}}}} |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|{{#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>

Revision as of 01:28, 10 December 2008