Difference between revisions of "Template:Coordinates graticule/latOnly"
From Geohashing
imported>Tjtrumpet2323 (not bad - but requires updates to other templates before it'll work) |
imported>Mattyk (TEST: covering up the pre-1970 issue) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: date|{{#time:Y-m-d|{{{1}}} }} }}{{#ifexpr: ({{{lon}}} > -30) and ({{#time:Ymd|{{#var:date}}}} >= 20080527) | + | <includeonly>{{#vardefine:date|{{#time:Y-m-d|{{{1}}}}}}}{{#vardefine:thirtyW|{{#ifeq:{{#var:date}}|1970-01-01|{{#vardefine:date|{{{1}}}}}|{{#ifexpr:({{{lon}}} > -30) and ({{#time:Ymd|{{#var:date}}}} >= 20080527)}}|1|}}}}{{#if:{{#var:thirtyW}} |
| {{{lat}}}{{Coordinates/30Wadjusted/latOnly|{{#var:date}}}} | | {{{lat}}}{{Coordinates/30Wadjusted/latOnly|{{#var:date}}}} | ||
| {{{lat}}}{{Coordinates/Regular/latOnly|{{#var:date}}}} | | {{{lat}}}{{Coordinates/Regular/latOnly|{{#var:date}}}} | ||
}}</includeonly> | }}</includeonly> |