Template:Coordinates list
From Geohashing
Revision as of 05:47, 11 July 2008 by imported>Tjtrumpet2323 (the real thing keeps timing out, so this is a workaround, til someone else removes the <pre> tags...)
{{#vardefine: daysAhead|{{#expr: {{coords are announced|{{#time:Y-m-d|{{CURRENTTIMESTAMP}}}}|30w=1}} + {{coords are announced|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} +1 day}}|30w=1}} + {{coords are announced|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} +2 days}}|30w=1}} + {{coords are announced|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} +3 days}}|30w=1}} + {{coords are announced|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} +4 days}}|30w=1}} - 1 }} }}{{#vardefine: endDate|{{#time:Y-m-d|{{CURRENTTIMESTAMP}} +{{#var:daysAhead}} days}} }}<!-- -->{| class="wikitable" style="font-size: 88%; text-align: center; vertical-align: top; border: 2px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="2" width="100%" !width=20%| Date !width=40%| West of [[30W Time Zone Rule|–30°]] !width=40%| East of –30° |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}}}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -1 day}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -2 days}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -3 days}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -4 days}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -5 days}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -6 days}} }} |- {{coordinates table row|{{#time:Y-m-d|{{#var:endDate}} -7 days}} }} |}
Usage
{{coordinates table}}
shows a neat table of coordinates for eight days up to the farthest date currently known. For use on Main Page.