Difference between revisions of "Template:Coordinates list"

From Geohashing
imported>Tjtrumpet2323
(the real thing keeps timing out, so this is a workaround, til someone else removes the <pre> tags...)
 
imported>Tjtrumpet2323
(making into a list instead)
Line 1: Line 1:
<pre>{{#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}} }}<!--
+
{{#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%"
+
-->'''Coordinates:''' {{date link|{{#time:Y-m-d|{{#var:endDate}}}}|D j M}}* | {{date link|{{#time:Y-m-d|{{#var:endDate}} -1 day}}|D j M}} | {{date link|{{#time:Y-m-d|{{#var:endDate}} -2 days}}|D j M}} | {{date link|{{#time:Y-m-d|{{#var:endDate}} -3 days}}|D j M}} | {{date link|{{#time:Y-m-d|{{#var:endDate}} -4 days}}|D j M}} | {{date link|{{#time:Y-m-d|{{#var:endDate}} -5 days}}|D j M}} | {{date link|{{#time:Y-m-d|{{#var:endDate}} -6 days}}|D j M}} | {{date link|{{#time:Y-m-d|{{#var:endDate}} -7 days}}|D j M}}
!width=20%| Date
+
 
!width=40%| West of [[30W Time Zone Rule|–30°]]
+
<span style="font-size: 88%">* Only known for regions east of [[30W]] longitude.  Coordinates for regions to the west {{coordinates|{{#time:Y-m-d|{{#var:endDate}}}}|30w=0}}.</span><!--
!width=40%| East of –30°
+
 
|-
+
--><noinclude>
{{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}} }}
 
|}</pre><noinclude>
 
 
== Usage ==
 
== Usage ==
<code><nowiki>{{coordinates table}}</nowiki></code> shows a neat table of coordinates for eight days up to the farthest date currently known.  For use on [[Main Page]].
+
<code><nowiki>{{coordinates table}}</nowiki></code> shows a neat list of coordinates for eight days up to the farthest date currently known.  For use on [[Main Page]].
  
 
[[Category:Coordinate calculation templates|{{PAGENAME}}]]
 
[[Category:Coordinate calculation templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 02:09, 1 September 2008

Coordinates: Mon 25 Nov* | Sun 24 Nov | Sat 23 Nov | Fri 22 Nov | Thu 21 Nov | Wed 20 Nov | Tue 19 Nov | Mon 18 Nov

* Only known for regions east of 30W longitude. Coordinates for regions to the west announced 14:30 UTC, 25 November.

Usage

{{coordinates table}} shows a neat list of coordinates for eight days up to the farthest date currently known. For use on Main Page.