Difference between revisions of "Template:Meetup graticule"
imported>Joannac (please don't mess up the template) |
|||
(7 intermediate revisions by 3 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}}}}}}}{{#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}}};"><tr><td colspan="3" style="text-align:center;">{{#tag:map||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> |
− | <tr> | ||
− | <td colspan="3" style="text-align:center;"> | ||
− | </tr> | ||
− | <tr> | ||
− | <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/> | ||
− | {{#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}}]]}} | {{#ifeq:{{{nocategory|0}}}|1||{{#ifeq:{{{retro|0}}}|1|[[Category:Retro meetup]]|[[Category:Meetup on {{#var:date}}]]}} | ||
[[Category:Meetup in {{{lat}}} {{{lon}}}]]}} | [[Category:Meetup in {{{lat}}} {{{lon}}}]]}} |
Latest revision as of 14:53, 20 February 2020
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
{{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 designed 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".
Retro meetup
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).
Retro and real meetup
If you visit retro coordinates and there is already an expedition report, please don't add the retro argument as described above. Instead please add these categories to the expedition report as well as writing up your own expedition of course.
[[Category:Retro meetup]] and either [[Category:Retro coordinates reached]] or [[Category:Retro coordinates not reached]]