Difference between revisions of "User:CJ/sandbox/Coords"

From Geohashing
imported>CJ
m (More testing)
imported>CJ
m (More testing)
Line 37: Line 37:
 
<td>{{coordinates|{{ #time: l Y-m-d | -3 days }}}}</td>
 
<td>{{coordinates|{{ #time: l Y-m-d | -3 days }}}}</td>
 
<td>{{coordinates|{{ #time: l Y-m-d | -3 days }}|30w=1}}</td></tr>}}
 
<td>{{coordinates|{{ #time: l Y-m-d | -3 days }}|30w=1}}</td></tr>}}
 
{{#ifeq: {{coordinates|{{ #time: l Y-m-d | -4 days }}}}|{{coordinates|{{ #time: l Y-m-d | -4 days }}|30w=1}}
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -4 days }}|D j M Y}}</th>
 
<td colspan="2">Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -4 days }}|D j M Y}}</th>
 
<td>Coords differ</td>
 
<td>Coords differ</td></tr>}}
 
 
{{#ifeq: variable|variablez
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -5 days }}|D j M Y}}</th>
 
<td colspan="2">Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -5 days }}|D j M Y}}</th>
 
<td>Coords differ</td>
 
<td>Coords differ</td></tr>}}
 
 
{{#ifeq: variable|variablez
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -6 days }}|D j M Y}}</th>
 
<td colspan="2">Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -6 days }}|D j M Y}}</th>
 
<td>Coords differ</td>
 
<td>Coords differ</td></tr>}}
 
 
{{#ifeq: variable|variablez
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -7 days }}|D j M Y}}</th>
 
<td colspan="2">Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -7 days }}|D j M Y}}</th>
 
<td>Coords differ</td>
 
<td>Coords differ</td></tr>}}
 
  
 
</table>
 
</table>

Revision as of 07:21, 27 August 2008

This page is for testing out an automated version of the coordinates box for the Main Page.


Automated box with an #ifeq statement that produces the colspan=2 result for weekends. I cannot however get this to work if I include more than four days worth of data. Is there a limit on template call-ups per page? Suggestions?

Date West of –30° East of –30°
Fri 27 Sep 2024 .1182756, .4211583 .7058154, .0983707
Thu 26 Sep 2024 .1182756, .4211583 .7058154, .0983707
Wed 25 Sep 2024 .1182756, .4211583 .7058154, .0983707
Tue 24 Sep 2024 .1182756, .4211583 .7058154, .0983707