Difference between revisions of "Template:Meetup links"
From Geohashing
imported>Sourcerer m (→Bing OS) |
imported>Sourcerer m (→Bing OS) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{#if:{{#vardefine:date|{{{1}}} }} || {{#vardefine:date|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:date}}|1970-01-01-|{{#vardefine:historic|1}}{{#vardefine:date|{{{1}}}}}|}} }}{{#vardefine:30w|{{#ifexpr:{{{lon}}}<-29|0|1}}}}{{#vardefine:descr|{{#time:j+M+Y|{{{1}}}}}}}{{#ifeq:{{#var:descr}}|{{#time:j+M+Y|1969-12-31}}|{{#vardefine:descr|{{{1}}}}}|}}{{#vardefine:latdec|{{Coordinates graticule/latOnly|{{{1}}}|lat={{{lat}}}|lon={{{lon}}}}}}}{{#vardefine:londec|{{Coordinates graticule/lonOnly|{{{1}}}|lat={{{lat}}}|lon={{{lon}}}}}}}{{#ifeq:{{coords are announced|{{#var:date}}|30w={{#var:30w}}}}|1|[http://carabiner.peeron.com/xkcd/map/map.html?date={{#var:date}}&lat={{{lat}}}&long={{{lon}}}&zoom=8 peeron]{{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->| | + | {{#if:{{#vardefine:date|{{{1}}} }} || {{#vardefine:date|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:date}}|1970-01-01-|{{#vardefine:historic|1}}{{#vardefine:date|{{{1}}}}}|}} }}{{#vardefine:30w|{{#ifexpr:{{{lon}}}<-29|0|1}}}}{{#vardefine:descr|{{#time:j+M+Y|{{{1}}}}}}}{{#ifeq:{{#var:descr}}|{{#time:j+M+Y|1969-12-31}}|{{#vardefine:descr|{{{1}}}}}|}}{{#vardefine:latdec|{{Coordinates graticule/latOnly|{{{1}}}|lat={{{lat}}}|lon={{{lon}}}}}}}{{#vardefine:londec|{{Coordinates graticule/lonOnly|{{{1}}}|lat={{{lat}}}|lon={{{lon}}}}}}}{{#ifeq:{{coords are announced|{{#var:date}}|30w={{#var:30w}}}}|1|[http://carabiner.peeron.com/xkcd/map/map.html?date={{#var:date}}&lat={{{lat}}}&long={{{lon}}}&zoom=8 peeron] {{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->| |
[http://geohashing.info/{{#var:date}}/s/z:8/{{{lat}}},{{{lon}}} geohashing.info] | [http://geohashing.info/{{#var:date}}/s/z:8/{{{lat}}},{{{lon}}} geohashing.info] | ||
[http://maps.google.com/?q={{#var:latdec}},{{#var:londec}} google] | [http://maps.google.com/?q={{#var:latdec}},{{#var:londec}} google] |
Revision as of 12:14, 1 February 2016
Usage
{{meetup links|2008-06-24|lat=40|lon=-79}}
- date yyyy-mm-dd
- latitude and longitude Please use only integers, otherwise strange output will result!
- Handles the -0 Issue just fine.
- Automatically adjusts for the 30W Time Zone Rule; this adjustment has no effect prior to the enactment of the rule on 27 May 2008.
Gives links to ...