Difference between revisions of "Template:Bicycle geohash"

From Geohashing
imported>Dvdllr
m (irc --> carabiner)
imported>Benjw
m (add facility to have "to and from" in the description)
Line 4: Line 4:
 
|user = {{{name|}}}
 
|user = {{{name|}}}
 
|achievement = [[Bicycle geohash achievement]]
 
|achievement = [[Bicycle geohash achievement]]
|action = cycling {{#if:{{{distance|}}}|{{{distance}}}|}} to the [http://carabiner.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 {{#if:{{{bothways|}}}|and from|}} the [http://carabiner.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 11: Line 11:
 
'''How to use this template:'''
 
'''How to use this template:'''
  
{{Bicycle geohash
+
{{bicycle geohash
 
:| latitude = '''latitude''' (required)
 
:| latitude = '''latitude''' (required)
 
:| longitude = '''longitude''' (required)
 
:| longitude = '''longitude''' (required)
Line 17: Line 17:
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| distance = '''distance cycled''' (optional)''
 
:''| distance = '''distance cycled''' (optional)''
 +
:''| bothways = '''true''' (optional)''
 
:''| image = '''image name''' (optional)''
 
:''| image = '''image name''' (optional)''
 
}}
 
}}
Line 29: Line 30:
 
| name = [[User:Tomtom|Tom]]
 
| name = [[User:Tomtom|Tom]]
 
| distance = 12.2 km
 
| distance = 12.2 km
 +
| bothways = true
 
| image = 2008-05-24_53_-1_j.jpg
 
| image = 2008-05-24_53_-1_j.jpg
 
}}</code> appears as:
 
}}</code> appears as:
Line 38: Line 40:
 
| name = [[User:Tomtom|Tom]]
 
| name = [[User:Tomtom|Tom]]
 
| distance = 12.2 km
 
| distance = 12.2 km
 +
| bothways = true
 
| image = 2008-05-24_53_-1_j.jpg
 
| image = 2008-05-24_53_-1_j.jpg
 
}}
 
}}

Revision as of 00:54, 19 September 2012

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)
| bothways = true (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 | bothways = true | image = 2008-05-24_53_-1_j.jpg }} appears as:

Bikegeohash.png
Tom earned the Bicycle geohash achievement
by cycling 12.2 km to and from 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.