Difference between revisions of "Template:Meetup links/Update"
From Geohashing
imported>Relet (testing some code for the update) |
m (Replacing Peeron with Geohashing.info) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{#var:date}}||{{#vardefine:date|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:date}}|1970-01-01-|{{#vardefine:historic|1}}{{#vardefine:date|{{{1}}}}}|}}}}{{#iferror:{{#var:date}}|{{#vardefine:date|{{{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}}}}}}} | + | <includeonly>{{#if:{{#var:date}}||{{#vardefine:date|{{#time:Y-m-d|{{{1}}} }} }}{{#ifeq:{{#var:date}}|1970-01-01-|{{#vardefine:historic|1}}{{#vardefine:date|{{{1}}}}}|}}}}{{#iferror:{{#var:date}}|{{#vardefine:date|{{{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}}}}}}}{{egl|{{#var:date}}|{{{lat}}}|{{{lon}}}|text=geohashing.info}}{{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->| [http://maps.google.com/maps?f=q&hl=en&q={{#var:latdec}},+{{#var:londec}}+(Geohashing+for+{{#var:descr}}+in+{{{lat}}},{{{lon}}})&ie=UTF8&t=h google] [http://www.openstreetmap.org/?lat={{#var:latdec}}&lon={{#var:londec}}&zoom=16&layers=B000FTF osm] |
− | [http://maps.google.com/maps?f=q&hl=en&q={{#var:latdec}},+{{#var:londec}}+(Geohashing+for+{{#var:descr}}+in+{{{lat}}},{{{lon}}})&ie=UTF8&t=h google] | ||
− | [http://www.openstreetmap.org/?lat={{#var:latdec}}&lon={{#var:londec}}&zoom=16&layers=B000FTF osm] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | <code><nowiki>{{meetup links|2008-06-24|lat=40|lon=-79}}</nowiki></code> gives links to | + | <code><nowiki>{{meetup links|2008-06-24|lat=40|lon=-79}}</nowiki></code> gives links to [https://geohashing.info/ Geohashing.info], [http://maps.google.com/ Google Maps] and [http://www.openstreetmap.org/ the OpenStreetMap] 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 20:17, 18 January 2022
Usage
{{meetup links|2008-06-24|lat=40|lon=-79}}
gives links to Geohashing.info, Google Maps and the OpenStreetMap 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.