Difference between revisions of "Template:GDR test meetup graticule"

From Geohashing
imported>GeorgDerReisende
(removed <includeonly> part)
imported>GeorgDerReisende
(Undo revision 427302 by GeorgDerReisende (talk))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<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: {{{posn|right}}}; clear: {{{posn|right}}};">
{{Meetup graticule/Documentation}} <!-- Documentation is elsewhere -->
+
<tr>
 +
<td colspan="3" style="text-align:center;">{{{map|{{#tag:mapimg||lat={{{lat}}}|lon={{{lon}}}|date={{#var:date}}}}}}}</td>
 +
</tr>
 +
<tr>
 +
<td colspan="3" style="text-align:center;">
 +
{{#ifeq:{{{retro|0}}}|1|{{date nolink|{{#var:date}}|D j M Y}}|{{date link|{{#var:date}}|D j M Y}}}} in [[{{{graticule_link|{{{graticule_name|{{{lat}}},{{{lon}}}}}}}}}|{{{graticule_name|{{{lat}}},{{{lon}}}}}}]]:<br/>
 +
{{#if:{{#var:historic}}|''(ancient coords unavailable)''|'''{{coordinates graticule|{{#var:date}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}'''}}<br/>
 +
{{meetup links|{{#var:date}}|lat={{{lat|0}}}|lon={{{lon|0}}}}}
 +
</td>
 +
</tr>
 +
</table>
 +
{{#ifeq:{{{nocategory|0}}}|1||{{#ifeq:{{{retro|0}}}|1|[[Category:Retro meetup]]|[[Category:Meetup on {{#var:date}}]]}}
 +
[[Category:Meetup in {{{lat}}} {{{lon}}}]]}}
 +
</includeonly><noinclude>
 +
{{GDR test meetup graticule doc}} <!-- Documentation is elsewhere -->
 
</noinclude>
 
</noinclude>

Latest revision as of 18:43, 28 September 2014

<mapimg lat="37" lon="-121" date="2008-05-21"></mapimg>

Wed 21 May 2008 in 37,-121:
37.1794680, -121.8615360

geohashing.info google osm bing/os kml crox


Edit the documentation (it isn't part of the template page)


Usage

{{GDR test meetup graticule
| lat=37
| lon=-121
| date=2005-05-21
}}

Optional parameters:

| map=<map lat="37" lon="-121" date="2005-05-21" />
| graticule_name=London West
| graticule_link=London West, United Kingdom
| retro=1

This template is design for "meetup pages", pages with names that look like "2008-05-21 37 -121". For now, it contains a map, the date and graticule information, hashpoint coordinates and category links. It may evolve to contain other useful information.

If the map argument is supplied, that wikitext is included directly in the template. Otherwise, a map is automagically generated, based on the lat, lon, and date parameters.

If graticule_link is not provided, graticule_name will be used as link. If neither of them is provided, {{{lat}}},{{{lon}}} will be used, as almost all graticule pages have that as a "redirection page".

The "retro" argument, when set to 1, excludes the meetup page from the Meetup on YYYY-MM-DD category and places it instead in Category:Retro meetup. This is to be used for retro expeditions such as the Origin geohash achievement. It also now forces the date to be displayed as text only, not as a link. This is so it does not show up as a red-link on your retro expeditions, inviting users to click on it and create an unwanted date page (since retros did not happen on their retro date).