Difference between revisions of "Template:Meetup global"

From Geohashing
imported>Jiml
m (Try to create a global hashpoint map)
 
(add Meetup in LAT LON category)
 
(22 intermediate revisions by 6 users not shown)
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}}}}}|}}<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={{{lat}}}|lon={{{lon}}}|date={{#var:date}}}}}}}</td>
+
<td colspan="3" style="text-align:center;">{{{map|{{#tag:map||lat={{#var:globlat}}|lon={{#var:globlon}}|date={{#var:date}}|global=true}}}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td colspan="3" style="text-align:center;">
 
<td colspan="3" style="text-align:center;">
{{date link|{{#var:date}}|D j M Y}} in [[{{{graticule_link|{{{graticule_name|{{{lat}}},{{{lon}}}}}}}}}|{{{graticule_name|{{{lat}}},{{{lon}}}}}}]]:<br/>
+
Globalhash on {{#ifeq:{{{retro|0}}}|1|[[Retrohash|{{date nolink|{{#var:date}}|D j M Y}}]]|{{date link|{{#var:date}}|D j M Y}}}}:<br/>
{{#if:{{#var:historic}}|''(ancient coords unavailable)''|'''{{coordinates graticule|{{#var:date}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}'''}}<br/>
+
{{#if:{{#var:historic}}|''(ancient coords unavailable)''|'''{{#var:globlat}},{{#var:globlon}}'''}}<br/>
{{meetup links|{{#var:date}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}
+
 
 +
{{#ifeq:{{coords are announced|{{#var:date}}|30w=1}}|1|{{#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:globlat}},+{{#var:globlon}}+(Globalhash+for+{{#var:date}})&ie=UTF8&t=h google]&nbsp;[http://www.openstreetmap.org/?mlat={{#var:globlat}}&mlon={{#var:globlon}}&zoom=16&layers=B000FTF osm]&nbsp;[http://geo.crox.net/poster/{{#var:date}}_global crox]}} |not yet announced}}
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
{{#ifeq:{{{nocategory|0}}}|1||{{#ifeq:{{{retro|0}}}|1|[[Category:Retro meetup]]|[[Category:Meetup on {{#var:date}}]]}}
+
{{#ifeq:{{{nocategory|0}}}|1||{{#ifeq:{{{retro|0}}}|1|[[Category:Retro meetup]]|[[Category:Meetup on {{#var:date}}]]}}[[Category:Globalhash]][[Category:Meetup in {{#expr: trunc {{#var:globlat}}}} {{#expr: trunc {{#var:globlon}}}}]]}}
[[Category:Meetup in {{{lat}}} {{{lon}}}]]}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
{{Meetup graticule/Documentation}} <!-- Documentation is elsewhere -->
+
{{Meetup global/Documentation}} <!-- Documentation is elsewhere -->
 
</noinclude>
 
</noinclude>

Latest revision as of 13:27, 21 September 2023


Globalhash on Sun 28 Mar 2010:
47.273778,-116.52138

 google osm crox


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.