Difference between revisions of "Template:QuickLinks"

From Geohashing
imported>Mattyk
m (hacking away)
imported>Mattyk
m (hacking away)
Line 8: Line 8:
  
 
-->{{#vardefine:d3|{{#time:Y-m-d|+3 days}}}}
 
-->{{#vardefine:d3|{{#time:Y-m-d|+3 days}}}}
{{coords are announced|{{#var:d3}}|30w={{#var:thirtyW}}}}
+
{{#var:d3}} {{coords are announced|{{#var:d3}}|30w={{#var:thirtyW}}}}
 
{{#ifeq: {{coords are announced|{{#var:d3}}|30w={{#var:thirtyW}}}}|1
 
{{#ifeq: {{coords are announced|{{#var:d3}}|30w={{#var:thirtyW}}}}|1
 
|<tr><td>{{#time:l Y-m-d|+3 days}}</td>
 
|<tr><td>{{#time:l Y-m-d|+3 days}}</td>
Line 14: Line 14:
  
 
-->{{#vardefine:d2|{{#time:Y-m-d|+2 days}}}}
 
-->{{#vardefine:d2|{{#time:Y-m-d|+2 days}}}}
{{coords are announced|{{#var:d2}}|30w={{#var:thirtyW}}}}
+
{{#var:d2}} {{coords are announced|{{#var:d2}}|30w={{#var:thirtyW}}}}
 
{{#ifeq: {{coords are announced|{{#var:d2}}|30w={{#var:thirtyW}}}}|1
 
{{#ifeq: {{coords are announced|{{#var:d2}}|30w={{#var:thirtyW}}}}|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 }}}}
+
-->{{#vardefine:d1|{{#time:Y-m-d|+1 day}}}}
{{coords are announced|{{#var:d1}}|30w={{#var:thirtyW}}}}
+
{{#var:d1}} {{coords are announced|{{#var:d1}}|30w={{#var:thirtyW}}}}
 
{{#ifeq: {{coords are announced|{{#var:d1}}|30w={{#var:thirtyW}}}}|1
 
{{#ifeq: {{coords are announced|{{#var:d1}}|30w={{#var:thirtyW}}}}|1
 
|<tr><td>{{#time:l Y-m-d|+1 day}}</td>
 
|<tr><td>{{#time:l Y-m-d|+1 day}}</td>
Line 26: Line 26:
  
 
-->{{#vardefine:d0|{{#time:Y-m-d}}}}
 
-->{{#vardefine:d0|{{#time:Y-m-d}}}}
{{coords are announced|{{#var:d0}}|30w={{#var:thirtyW}}}}}
+
{{#var:d0}} {{coords are announced|{{#var:d0}}|30w={{#var:thirtyW}}}}
 
{{#ifeq: {{coords are announced|{{#var:d0}}|30w={{#var:thirtyW}}}}|1
 
{{#ifeq: {{coords are announced|{{#var:d0}}|30w={{#var:thirtyW}}}}|1
 
|<tr><td>{{#time:l Y-m-d}}</td>
 
|<tr><td>{{#time:l Y-m-d}}</td>

Revision as of 22:20, 12 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)

Latest Coordinates and Map Quick-Links

Saturday 2024-06-08 -19.9411166, 146.1630293

geohashing.info google osm bing/os kml crox

Sunday 2024-06-09 -19.4453591, 146.2005375

geohashing.info google osm bing/os kml crox

Monday 2024-06-10 -19.4734872, 146.0168439

geohashing.info google osm bing/os kml crox

Any optional text will be appended to the title bit.

For example:

{{QuickLinks|lat=-19|lon=146|Nowheresville}}

Latest Coordinates and Map Quick-Links - Nowheresville

Saturday 2024-06-08 -19.9411166, 146.1630293

geohashing.info google osm bing/os kml crox

Sunday 2024-06-09 -19.4453591, 146.2005375

geohashing.info google osm bing/os kml crox

Monday 2024-06-10 -19.4734872, 146.0168439

geohashing.info google osm bing/os kml crox

Edit Documentation