Difference between revisions of "Template:QuickLinks"
From Geohashing
imported>Mattyk m (getting an expression syntax error in {{coords are announced}} -- no time to track it down right now) |
imported>Mattyk (Renamed variable thirtyW to isThirtyW, hopefully fixes the recent weekend glitch.) |
||
Line 2: | Line 2: | ||
<tr><th colspan=2> | <tr><th colspan=2> | ||
Latest Coordinates and Map Quick-Links{{#if:{{{1|}}}| - {{{1}}}|}} | Latest Coordinates and Map Quick-Links{{#if:{{{1|}}}| - {{{1}}}|}} | ||
− | </th></tr>{{#vardefine: | + | </th></tr>{{#vardefine:isThirtyW|{{#ifexpr:{{{lon|0}}} > -30|1|0}}}} |
− | {{#vardefine:d4|{{#time:Y-m-d|+4 days}}}}{{#ifeq: {{coords are announced|{{#var:d4}}|30w={{#var: | + | {{#vardefine:d4|{{#time:Y-m-d|+4 days}}}}{{#ifeq: {{coords are announced|{{#var:d4}}|30w={{#var:isThirtyW}}}}|1 |
|<tr><td>{{#time:l Y-m-d|+4 days}}</td> | |<tr><td>{{#time:l Y-m-d|+4 days}}</td> | ||
<td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d4}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d4}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | <td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d4}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d4}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | ||
− | -->{{#vardefine:d3|{{#time:Y-m-d|+3 days}}}}{{#ifeq: {{coords are announced|{{#var:d3}}|30w={{#var: | + | -->{{#vardefine:d3|{{#time:Y-m-d|+3 days}}}}{{#ifeq: {{coords are announced|{{#var:d3}}|30w={{#var:isThirtyW}}}}|1 |
|<tr><td>{{#time:l Y-m-d|+3 days}}</td> | |<tr><td>{{#time:l Y-m-d|+3 days}}</td> | ||
<td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d3}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d3}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | <td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d3}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d3}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | ||
− | -->{{#vardefine:d2|{{#time:Y-m-d|+2 days}}}}{{#ifeq: {{coords are announced|{{#var:d2}}|30w={{#var: | + | -->{{#vardefine:d2|{{#time:Y-m-d|+2 days}}}}{{#ifeq: {{coords are announced|{{#var:d2}}|30w={{#var:isThirtyW}}}}|1 |
|<tr><td>{{#time:l Y-m-d|+2 days}}</td> | |<tr><td>{{#time:l Y-m-d|+2 days}}</td> | ||
<td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d2}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d2}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | <td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d2}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d2}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | ||
− | -->{{#vardefine:d1|{{#time:Y-m-d|+1 day}}}}{{#ifeq: {{coords are announced|{{#var:d1}}|30w={{#var: | + | -->{{#vardefine:d1|{{#time:Y-m-d|+1 day}}}}{{#ifeq: {{coords are announced|{{#var:d1}}|30w={{#var:isThirtyW}}}}|1 |
|<tr><td>{{#time:l Y-m-d|+1 day}}</td> | |<tr><td>{{#time:l Y-m-d|+1 day}}</td> | ||
<td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d1}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d1}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | <td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d1}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d1}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }}<!-- | ||
− | -->{{#vardefine:d0|{{#time:Y-m-d}}}}{{#ifeq: {{coords are announced|{{#var:d0}}|30w={{#var: | + | -->{{#vardefine:d0|{{#time:Y-m-d}}}}{{#ifeq: {{coords are announced|{{#var:d0}}|30w={{#var:isThirtyW}}}}|1 |
|<tr><td>{{#time:l Y-m-d}}</td> | |<tr><td>{{#time:l Y-m-d}}</td> | ||
<td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d0}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d0}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }} | <td>[http://irc.peeron.com/xkcd/map/map.html?date={{#var:d0}}&lat={{{lat|0}}}&long={{{lon|0}}}&zoom=9&abs=-1 {{coordinates graticule|{{#var:d0}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}]</td></tr>| }} |
Revision as of 22:05, 14 December 2008
Displays a box of quick links to current and up-coming known hash points. Good for planning weekends.
Invented by Nemo, templated by Matty K.
Please keep in mind that a page using this template loads significantly (by several seconds) slower than one which doesn't.
Usage:
{{QuickLinks|lat=-19|lon=146}} (actual numbers may vary from those shown) |
|
Any optional text will be appended to the title bit.
For example: {{QuickLinks|lat=-19|lon=146|Nowheresville}} |
|