Difference between revisions of "Template:Meetup global"
imported>Benjw m (fix?) |
imported>Benjw (add note explaining incorrect pin location, and links to correct maps) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:historic|}}{{#vardefine:date|{{#time:Y-m-d|{{{date}}}}}}}{{#ifeq:{{#var:date}}|1970-01-01|{{#vardefine:historic|1}}{{#vardefine:date|{{{date}}}}}|}}{{#vardefine:globlat|{{#expr: ({{Coordinates/30Wadjusted/latOnly|{{#var:date}}}} * 180) - 90}}}}{{#vardefine:globlon|{{#expr: ({{Coordinates/30Wadjusted/lonOnly|{{#var:date}}}} * 360) - 180}}}}<table class="infobox" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;"> | + | <!--<includeonly>--> |
+ | {{#vardefine:historic|}}{{#vardefine:date|{{#time:Y-m-d|{{{date|2012-09-05}}}}}}}{{#ifeq:{{#var:date}}|1970-01-01|{{#vardefine:historic|1}}{{#vardefine:date|{{{date}}}}}|}}{{#vardefine:globlat|{{#expr: ({{Coordinates/30Wadjusted/latOnly|{{#var:date}}}} * 180) - 90}}}}{{#vardefine:globlon|{{#expr: ({{Coordinates/30Wadjusted/lonOnly|{{#var:date}}}} * 360) - 180}}}}<table class="infobox" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;"> | ||
<tr> | <tr> | ||
<td colspan="3" style="text-align:center;">{{{map|{{#tag:mapimg||lat={{#var:globlat}}|lon={{#var:globlon}}}}}}}</td> | <td colspan="3" style="text-align:center;">{{{map|{{#tag:mapimg||lat={{#var:globlat}}|lon={{#var:globlon}}}}}}}</td> | ||
Line 6: | Line 7: | ||
<td colspan="3" style="text-align:center;"> | <td colspan="3" style="text-align:center;"> | ||
Globalhash on {{date link|{{#var:date}}|D j M Y}}:<br/> | Globalhash on {{date link|{{#var:date}}|D j M Y}}:<br/> | ||
− | {{#if:{{#var:historic}}|''(ancient coords unavailable)''|'''{{#var:globlat}},{{#var:globlon}}'''}} | + | {{#if:{{#var:historic}}|''(ancient coords unavailable)''|'''{{#var:globlat}},{{#var:globlon}}'''}}<br/> |
+ | THE MAP ABOVE SHOWS THE WRONG LOCATION<br/>WITHIN THE (correct) GRATICULE.<br/> | ||
+ | For the correct location, see | ||
+ | {{#ifeq:{{coords are announced|{{#var:date}}|30w=1}}|1|{{#if:{{#var:historic}}|<!--coverup: dates before 1970-01-01 don't work-->| [http://maps.google.com/maps?f=q&hl=en&q=loc:{{#var:globlat}},+{{#var:globlon}}+(Globalhash+for+{{#var:date}})&ie=UTF8&t=h google] [http://www.openstreetmap.org/?mlat={{#var:globlat}}&mlon={{#var:globlon}}&zoom=16&layers=B000FTF osm]}} |not yet announced}} | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
{{#ifeq:{{{nocategory|0}}}|1||[[Category:Meetup on {{#var:date}}]][[Category:Globalhash]]}} | {{#ifeq:{{{nocategory|0}}}|1||[[Category:Meetup on {{#var:date}}]][[Category:Globalhash]]}} | ||
− | </includeonly><noinclude> | + | <!--</includeonly>--><noinclude> |
{{Meetup global/Documentation}} <!-- Documentation is elsewhere --> | {{Meetup global/Documentation}} <!-- Documentation is elsewhere --> | ||
</noinclude> | </noinclude> |
Revision as of 22:51, 4 September 2012
<mapimg lat="46.70577" lon="-114.83838"></mapimg> | ||
Globalhash on Wed 5 Sep 2012: |
Globalhash on Sun 28 Mar 2010: |
Edit the documentation (it isn't part of the template page)
Usage
{{ meetup global | date=2010-03-28 }}
Optional parameters: none.
This template is designed for GLOBALHASH "meetup pages", pages with names that look like "2010-03-28 global". For now, it contains a map of the globalhash graticule (although without a pin showing the globalhash itself) and category links. It may evolve to contain more useful information.
The map is automagically generated, based on the date parameter. No lat and lon parameters are needed as the globalhash is the same wherever you are.
It is to be hoped that at some point a pin showing the location of the globalhash can be placed onto the map. For now you'll have to make do with just the graticule as a whole. Watch this space.