imported>CJ m |
m |
||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
This page is for testing out an automated version of the coordinates box for the [[Main Page|Main Page]]. | This page is for testing out an automated version of the coordinates box for the [[Main Page|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? | ||
<table style="text-align: center; vertical-align: top; border: 3px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="4" width="600"> | <table style="text-align: center; vertical-align: top; border: 3px solid black; border-collapse: collapse; margin: 1em" border="1" cellpadding="4" width="600"> | ||
Line 8: | Line 11: | ||
{{#ifeq: {{coordinates|{{ #time: l Y-m-d }}}}|{{coordinates|{{ #time: l Y-m-d }}|30w=1}} | {{#ifeq: {{coordinates|{{ #time: l Y-m-d }}}}|{{coordinates|{{ #time: l Y-m-d }}|30w=1}} | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d }}|D j M Y}}</th> |
<td colspan="2">{{coordinates|{{ #time: l Y-m-d }}}}</td></tr> | <td colspan="2">{{coordinates|{{ #time: l Y-m-d }}}}</td></tr> | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d }}|D j M Y}}</th> |
<td>{{coordinates|{{ #time: l Y-m-d }}}}</td> | <td>{{coordinates|{{ #time: l Y-m-d }}}}</td> | ||
<td>{{coordinates|{{ #time: l Y-m-d }}|30w=1}}</td></tr>}} | <td>{{coordinates|{{ #time: l Y-m-d }}|30w=1}}</td></tr>}} | ||
{{#ifeq: {{coordinates|{{ #time: l Y-m-d | -1 days }}}}|{{coordinates|{{ #time: l Y-m-d | -1 days }}|30w=1}} | {{#ifeq: {{coordinates|{{ #time: l Y-m-d | -1 days }}}}|{{coordinates|{{ #time: l Y-m-d | -1 days }}|30w=1}} | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d | -1 days }}|D j M Y}}</th> |
<td colspan="2">{{coordinates|{{ #time: l Y-m-d | -1 days }}}}</td></tr> | <td colspan="2">{{coordinates|{{ #time: l Y-m-d | -1 days }}}}</td></tr> | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d | -1 days }}|D j M Y}}</th> |
<td>{{coordinates|{{ #time: l Y-m-d | -1 days }}}}</td> | <td>{{coordinates|{{ #time: l Y-m-d | -1 days }}}}</td> | ||
<td>{{coordinates|{{ #time: l Y-m-d | -1 days }}|30w=1}}</td></tr>}} | <td>{{coordinates|{{ #time: l Y-m-d | -1 days }}|30w=1}}</td></tr>}} | ||
{{#ifeq: {{coordinates|{{ #time: l Y-m-d | -2 days }}}}|{{coordinates|{{ #time: l Y-m-d | -2 days }}|30w=1}} | {{#ifeq: {{coordinates|{{ #time: l Y-m-d | -2 days }}}}|{{coordinates|{{ #time: l Y-m-d | -2 days }}|30w=1}} | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d | -2 days }}|D j M Y}}</th> |
<td colspan="2">{{coordinates|{{ #time: l Y-m-d | -2 days }}}}</td></tr> | <td colspan="2">{{coordinates|{{ #time: l Y-m-d | -2 days }}}}</td></tr> | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d | -2 days }}|D j M Y}}</th> |
<td>{{coordinates|{{ #time: l Y-m-d | -2 days }}}}</td> | <td>{{coordinates|{{ #time: l Y-m-d | -2 days }}}}</td> | ||
<td>{{coordinates|{{ #time: l Y-m-d | -2 days }}|30w=1}}</td></tr>}} | <td>{{coordinates|{{ #time: l Y-m-d | -2 days }}|30w=1}}</td></tr>}} | ||
{{#ifeq: {{coordinates|{{ #time: l Y-m-d | -3 days }}}}|{{coordinates|{{ #time: l Y-m-d | -3 days }}|30w=1}} | {{#ifeq: {{coordinates|{{ #time: l Y-m-d | -3 days }}}}|{{coordinates|{{ #time: l Y-m-d | -3 days }}|30w=1}} | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d | -3 days }}|D j M Y}}</th> |
<td colspan="2">{{coordinates|{{ #time: l Y-m-d | -3 days }}}}</td></tr> | <td colspan="2">{{coordinates|{{ #time: l Y-m-d | -3 days }}}}</td></tr> | ||
− | |<tr><th align="right">{{date link|{{ #time: | + | |<tr><th align="right">{{date link|{{ #time: Y-m-d | -3 days }}|D j M Y}}</th> |
<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>}} | ||
</table> | </table> |
Latest revision as of 13:21, 3 March 2020
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° |
---|---|---|
Sun 24 Nov 2024 | .3551281, .6005570 | |
Sat 23 Nov 2024 | .3551281, .6005570 | |
Fri 22 Nov 2024 | .3551281, .6005570 | |
Thu 21 Nov 2024 | .3551281, .6005570 |