Difference between revisions of "Template:Coordinates graticule/lonOnly"

From Geohashing
(exploring a 30W bug. probably more of my variable names :( MattyK)
(think I found (and fixed) the bug --mattyk)
Line 1: Line 1:
<includeonly>{{#vardefine:londate|{{#time:Y-m-d|{{{1}}}}}}}{{#ifeq:{{#var:londate}}|1970-01-01|{{#vardefine:londate|{{{1}}}}}|{{#ifexpr:({{{lon}}} > -30) and ({{#time:Ymd|{{#var:londate}}}} >= 20080527)}}|{{#vardefine:lonthirtyW|1}}|}}{{#if:{{#var:lonthirtyW}}
+
<includeonly>{{#vardefine:londate|{{#time:Y-m-d|{{{1}}}}}}}{{#ifeq:{{#var:londate}}|1970-01-01|{{#vardefine:londate|{{{1}}}}}|{{#ifexpr:({{{lon}}} > -30) and ({{#time:Ymd|{{#var:londate}}}} >= 20080527)|{{#vardefine:lonthirtyW|1}}|}}}}{{#if:{{#var:lonthirtyW}}
 
| {{{lon}}}{{Coordinates/30Wadjusted/lonOnly|{{#var:londate}}}}
 
| {{{lon}}}{{Coordinates/30Wadjusted/lonOnly|{{#var:londate}}}}
 
| {{{lon}}}{{Coordinates/Regular/lonOnly|{{#var:londate}}}}
 
| {{{lon}}}{{Coordinates/Regular/lonOnly|{{#var:londate}}}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 00:07, 29 December 2008