Difference between revisions of "Template:Meetup links test"

From Geohashing
imported>Thomcat
(Meetup links test - add Bing for their "bird's eye" view)
 
m (Replacing Peeron with Geohashing.info)
 
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]&nbsp;[http://relet.net/geco?date={{#var:date}}&lat={{{lat}}}&lon={{{lon}}}&zoom=8 geco]{{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->|&nbsp;[http://maps.google.com/maps?f=q&hl=en&q=loc:{{#var:latdec}},+{{#var:londec}}+(Geohashing+for+{{#var:descr}}+in+{{{lat}}},{{{lon}}})&ie=UTF8&t=h google]&nbsp;[http://www.openstreetmap.org/?mlat={{#var:latdec}}&mlon={{#var:londec}}&zoom=16&layers=B000FTF osm]&nbsp;[http://www.bing.com/maps/?v=2&where1={{#var:latdec}},+{{#var:londec}} bing]&nbsp;[http://activegeohasher.com/geohash/{{#var:date}}/{{{lat}}}/{{{lon}}} ag]&nbsp;[http://relet.net/geco/centicules.html?lat={{{lat}}}&lng={{{lon}}} cent]}} |not yet announced}}</includeonly><noinclude>
+
{{#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|{{egl|{{#var:date}}|{{{lat}}}|{{{lon}}}|text=Geohashing.info}}&nbsp;[http://relet.net/geco?date={{#var:date}}&lat={{{lat}}}&lon={{{lon}}}&zoom=8 geco]{{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->|&nbsp;[http://maps.google.com/maps?f=q&hl=en&q=loc:{{#var:latdec}},+{{#var:londec}}+(Geohashing+for+{{#var:descr}}+in+{{{lat}}},{{{lon}}})&ie=UTF8&t=h google]&nbsp;[http://www.openstreetmap.org/?mlat={{#var:latdec}}&mlon={{#var:londec}}&zoom=16&layers=B000FTF osm]&nbsp;[http://www.bing.com/maps/?v=2&where1={{#var:latdec}},+{{#var:londec}} bing]&nbsp;[http://activegeohasher.com/geohash/{{#var:date}}/{{{lat}}}/{{{lon}}} ag]&nbsp;[http://relet.net/geco/centicules.html?lat={{{lat}}}&lng={{{lon}}} cent]}} |not yet announced}}</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
<code><nowiki>{{meetup links test|2008-06-24|lat=40|lon=-79}}</nowiki></code> gives links to the [http://carabiner.peeron.com/xkcd/map/ reference implementation], [http://relet.net/geco geco], [http://maps.google.com/ Google Maps], [http://www.openstreetmap.org Open Street Map], [http://www.bing.com/maps/?v=2&where1= Bing Maps], [http://www.activegeohasher.com Active geohasher] and the [http://relet.net/geco/centicules.html Centicle selector] for {{date link|2008-06-24}} in [[40,-79]].  Must be passed a date in '''YYYY-MM-DD''' format.
+
<code><nowiki>{{meetup links test|2008-06-24|lat=40|lon=-79}}</nowiki></code> gives links to [https://geohashing.info/ Geohashing.info], [http://relet.net/geco geco], [http://maps.google.com/ Google Maps], [http://www.openstreetmap.org Open Street Map], [http://www.bing.com/maps/?v=2&where1= Bing Maps], [http://www.activegeohasher.com Active geohasher] and the [http://relet.net/geco/centicules.html Centicle selector] for {{date link|2008-06-24}} in [[40,-79]].  Must be passed a date in '''YYYY-MM-DD''' format.
 
* Takes any latitude and longitude values literally.  ''Please use only integers, otherwise strange output will result!''
 
* Takes any latitude and longitude values literally.  ''Please use only integers, otherwise strange output will result!''
 
* Handles the [[-0 Issue]] just fine.
 
* Handles the [[-0 Issue]] just fine.

Latest revision as of 22:42, 19 January 2022

Usage

{{meetup links test|2008-06-24|lat=40|lon=-79}} gives links to Geohashing.info, geco, Google Maps, Open Street Map, Bing Maps, Active geohasher and the Centicle selector for Tuesday 24 June 2008 in 40,-79. Must be passed a date in YYYY-MM-DD format.

  • Takes any latitude and longitude values literally. 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.