Difference between revisions of "Template:Meetup graticule/Documentation"

From Geohashing
imported>Abunai
m
imported>Nurbles
Line 21: Line 21:
  
 
:--[[User:Gissehel|Gissehel]] 10:55, 24 May 2008 (UTC)
 
:--[[User:Gissehel|Gissehel]] 10:55, 24 May 2008 (UTC)
 +
 +
::''Hopefully, the author of this template checks here periodically... There are two things that don't work right with this.  First, the <code>graticule_link</code> doesn't product a link when there is a comma in the name (even though the example shows a comma!).  If it doesn't change, look at the [[Melbourne, Florida]] page for an example.  Second, it is very sad that the use of magic words (such as <code><nowiki>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}</nowiki></code>) for the date doesn't work within the <code><nowiki><map /></nowiki></code> part.  Perhaps a special symbol for TODAY could be used for people who would like the map to always show the current location. -- [[User:Nurbles|Nurbles]] 14 Jun 2008''
  
 
----
 
----
  
 
[http://wiki.xkcd.com/wgh/index.php?title=Template:Meetup_graticule/Documentation&action=edit Edit the documentation] (it isn't part of the template page)
 
[http://wiki.xkcd.com/wgh/index.php?title=Template:Meetup_graticule/Documentation&action=edit Edit the documentation] (it isn't part of the template page)

Revision as of 16:05, 14 June 2008

Usage:

{{meetup graticule
| map=<map lat="123" lon="-45" date="2005-05-21" />
| lat=123
| lon=-45
| date=2005-05-21
}}

Optional parameters:

| graticule_name=London West
| graticule_link=London West, United Kingdom

This template is design for "meetup pages", pages which name look like "2008-05-21 37 -121". For now, it contains a map, a category links. It may evolve to contain more usefull informations.

Right now, map argument is mandatory, while beeing so redundant with other informations. I hope it will change in the future (I think it needs code change!)

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 some graticule pages already got that kind of "redirection page".

--Gissehel 10:55, 24 May 2008 (UTC)
Hopefully, the author of this template checks here periodically... There are two things that don't work right with this. First, the graticule_link doesn't product a link when there is a comma in the name (even though the example shows a comma!). If it doesn't change, look at the Melbourne, Florida page for an example. Second, it is very sad that the use of magic words (such as {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}) for the date doesn't work within the <map /> part. Perhaps a special symbol for TODAY could be used for people who would like the map to always show the current location. -- Nurbles 14 Jun 2008

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