Difference between revisions of "Template:Meetup links"

From Geohashing
m
m (https, no newlines)
 
(2 intermediate revisions by the same user not shown)
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|{{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->|  
[http://geohashing.info/{{#var:date}}/s/z:8/{{{lat}}},{{{lon}}} geohashing.info]  
+
[https://geohashing.info/{{#var:date}}/s/z:8/{{{lat}}},{{{lon}}} geohashing.info] [https://maps.google.com/?q={{#var:latdec}},{{#var:londec}} google] [https://www.openstreetmap.org/?mlat={{#var:latdec}}&mlon={{#var:londec}}&zoom=16 osm] [https://www.bing.com/maps/?cp={{#var:latdec}}~{{#var:londec}}&lvl=15&style=s&sp=point.{{#var:latdec}}_{{#var:londec}}_{{#var:date}}%20{{{lat}}}%20{{{lon}}}%20{{#var:latdec}}%20{{#var:londec}} bing/os] [https://nbest.co.uk/kmlGeohash/index.php?date={{#var:date}}&lat={{{lat}}}&lon={{{lon}}}&skins=0 kml] [http://geo.crox.net/poster/{{#var:date}}_{{{lat}}}_{{{lon}}} crox]}} |not yet announced}}</includeonly><noinclude>
[http://maps.google.com/?q={{#var:latdec}},{{#var:londec}} Google Maps]  
 
[http://www.openstreetmap.org/?mlat={{#var:latdec}}&mlon={{#var:londec}}&zoom=16 OSM]  
 
[http://www.bing.com/maps/?cp={{#var:latdec}}~{{#var:londec}}&lvl=15&style=s&sp=point.{{#var:latdec}}_{{#var:londec}}_{{#var:date}}%20{{{lat}}}%20{{{lon}}}%20{{#var:latdec}}%20{{#var:londec}} Bing maps]  
 
[http://nbest.co.uk/kmlGeohash/index.php?date={{#var:date}}&lat={{{lat}}}&lon={{{lon}}}&skins=0 KML]  
 
[http://geo.crox.net/poster/{{#var:date}}_{{{lat}}}_{{{lon}}} Crox poster]}} |not yet announced}}</includeonly><noinclude>
 
 
== Usage ==
 
== Usage ==
 
<code><nowiki>{{meetup links|2008-06-24|lat=40|lon=-79}}</nowiki></code>
 
<code><nowiki>{{meetup links|2008-06-24|lat=40|lon=-79}}</nowiki></code>
Line 17: Line 12:
 
Gives links to ...
 
Gives links to ...
  
* [http://carabiner.peeron.com/xkcd/map/ Reference implementation] (peeron)
+
* [https://geohashing.info/ geohashing.info]
* [http://geohashing.info/ geohashing.info]
+
* [https://maps.google.com/ Google Maps]
* [http://maps.google.com/ Google Maps]
+
* [https://www.openstreetmap.org Open Street Map]
* [http://www.openstreetmap.org Open Street Map]
+
* [https://www.bing.com/mapspreview?&style=s Bing maps (Ordnance Survey in the UK)]
* [http://www.bing.com/mapspreview?&style=s Bing maps]
+
* [https://nbest.co.uk/kmlGeohash/testForm.php KML Calculator]
* [http://nbest.co.uk/kmlGeohash/testForm.php KML Calculator]
 
 
* [http://geo.crox.net/poster Crox poster]
 
* [http://geo.crox.net/poster Crox poster]
  
 
[[Category:Coordinate calculation templates|{{PAGENAME}}]]
 
[[Category:Coordinate calculation templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:32, 14 January 2022

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 ...