Difference between revisions of "Template:Meetup graticule"
imported>Benjw m (getting 0 and 1 the right way around) |
imported>Benjw (add "posn" parameter in order to merge "Wyle graticule" template with this one) |
||
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> | <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:mapimg||lat={{{lat}}}|lon={{{lon}}}|date={{#var:date}}}}}}}</td> | ||
Line 13: | Line 13: | ||
{{#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}}}]]}} | ||
− | </includeonly><noinclude> | + | </!includeonly><noinclude> |
{{Meetup graticule/Documentation}} <!-- Documentation is elsewhere --> | {{Meetup graticule/Documentation}} <!-- Documentation is elsewhere --> | ||
</noinclude> | </noinclude> |
Revision as of 16:09, 5 September 2012
<!includeonly>
<mapimg lat="{{{lat}}}" lon="{{{lon}}}" date="<strong class="error">Error: Invalid time.</strong>"></mapimg> | ||
[[Error: Invalid time. | Error: Invalid time.]] in [[{{{lat}}},{{{lon}}}|{{{lat}}},{{{lon}}}]]: not yet announced |
[[Category:Meetup on Error: Invalid time.]] [[Category:Meetup in {{{lat}}} {{{lon}}}]] </!includeonly>
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]]