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

From Geohashing
imported>CJ
m (More testing)
imported>CJ
m (More testing)
Line 38: Line 38:
 
<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: variable|variable
+
{{#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>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -4 days }}|D j M Y}}</th>
<td>True Data</td>
+
<td>Coords match</td>
<td>True Data</td></tr>
+
<td>Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -4 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -4 days }}|D j M Y}}</th>
<td>False Data</td>
+
<td>Coords differ</td>
<td>False Data</td></tr>}}
+
<td>Coords differ</td></tr>}}
  
 
{{#ifeq: variable|variable
 
{{#ifeq: variable|variable
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -5 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -5 days }}|D j M Y}}</th>
<td>True Data</td>
+
<td>Coords match</td>
<td>True Data</td></tr>
+
<td>Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -5 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -5 days }}|D j M Y}}</th>
<td>False Data</td>
+
<td>Coords differ</td>
<td>False Data</td></tr>}}
+
<td>Coords differ</td></tr>}}
  
 
{{#ifeq: variable|variable
 
{{#ifeq: variable|variable
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -6 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -6 days }}|D j M Y}}</th>
<td>True Data</td>
+
<td>Coords match</td>
<td>True Data</td></tr>
+
<td>Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -6 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -6 days }}|D j M Y}}</th>
<td>False Data</td>
+
<td>Coords differ</td>
<td>False Data</td></tr>}}
+
<td>Coords differ</td></tr>}}
  
 
{{#ifeq: variable|variable
 
{{#ifeq: variable|variable
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -7 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -7 days }}|D j M Y}}</th>
<td>True Data</td>
+
<td>Coords match</td>
<td>True Data</td></tr>
+
<td>Coords match</td></tr>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -7 days }}|D j M Y}}</th>
 
|<tr><th align="right">{{date link|{{ #time: l Y-m-d | -7 days }}|D j M Y}}</th>
<td>False Data</td>
+
<td>Coords differ</td>
<td>False Data</td></tr>}}
+
<td>Coords differ</td></tr>}}
  
 
</table>
 
</table>

Revision as of 06:13, 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 #ifeq statements per page? Suggestions?

Date West of –30° East of –30°
Mon 10 Jun 2024 announced 13:30 UTC, 10 June .4734872, .0168439
Sun 9 Jun 2024 .8170352, .8216199 .4734872, .0168439
Sat 8 Jun 2024 .8170352, .8216199 .4734872, .0168439
Fri 7 Jun 2024 .8170352, .8216199 .4734872, .0168439
Thu 6 Jun 2024 Coords differ Coords differ
Wed 5 Jun 2024 Coords match Coords match
Tue 4 Jun 2024 Coords match Coords match
Mon 3 Jun 2024 Coords match Coords match