Difference between revisions of "Template:Bicycle geohash"

From Geohashing
imported>Relet
imported>Benjw
(adding a 'distance' parameter)
Line 4: Line 4:
 
|user = {{{name|}}}
 
|user = {{{name|}}}
 
|achievement = [[Bicycle geohash achievement]]
 
|achievement = [[Bicycle geohash achievement]]
|action = reaching the [http://irc.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
+
|action = cycling {{#if:{{{distance|}}}|{{{distance}}}|}} to the [http://irc.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
 
|image = {{{image|}}}
 
|image = {{{image|}}}
 
|category = Bicycle geohash achievement
 
|category = Bicycle geohash achievement
Line 15: Line 15:
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 +
:''| distance = '''distance cycled''' (optional)''
 
:''| image = '''image name''' (optional)''
 
:''| image = '''image name''' (optional)''
 
}}
 
}}
Line 26: Line 27:
 
| date = 2008-05-24
 
| date = 2008-05-24
 
| name = [[User:Tomtom|Tom]]
 
| name = [[User:Tomtom|Tom]]
 +
| distance = 12.2 km
 
| image = 2008-05-24_53_-1_j.jpg
 
| image = 2008-05-24_53_-1_j.jpg
 
}}</code> appears as:
 
}}</code> appears as:
Line 34: Line 36:
 
| date = 2008-05-24
 
| date = 2008-05-24
 
| name = [[User:Tomtom|Tom]]
 
| name = [[User:Tomtom|Tom]]
 +
| distance = 12.2 km
 
| image = 2008-05-24_53_-1_j.jpg
 
| image = 2008-05-24_53_-1_j.jpg
 
}}
 
}}

Revision as of 20:15, 24 April 2009

Bikegeohash.png
This user earned the Bicycle geohash achievement
by cycling to the ({{{latitude}}}, {{{longitude}}}) geohash on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].

How to use this template:

{{Bicycle geohash

| latitude = latitude (required)
| longitude = longitude (required)
| date = date (YYYY-MM-DD format) (required)
| name = name of achiever (optional)
| distance = distance cycled (optional)
| image = image name (optional)

}}

The image name should not include 'Image:' or surrounding braces.

Example: {{Bicycle geohash | latitude = 53 | longitude = -1 | date = 2008-05-24 | name = Tom | distance = 12.2 km | image = 2008-05-24_53_-1_j.jpg }} appears as:

Bikegeohash.png
Tom earned the Bicycle geohash achievement
by cycling 12.2 km to the (53, -1) geohash on 2008-05-24.
2008-05-24 53 -1 j.jpg

Example: {{Bicycle geohash | latitude = 53 | longitude = -1 | date = 2008-05-24 | name = Tom }} appears as:

Bikegeohash.png
Tom earned the Bicycle geohash achievement
by cycling to the (53, -1) geohash on 2008-05-24.

Example: {{Bicycle geohash | latitude = 53 | longitude = -1 | date = 2008-05-24 }} appears as:

Bikegeohash.png
This user earned the Bicycle geohash achievement
by cycling to the (53, -1) geohash on 2008-05-24.