Difference between revisions of "Template:Bicycle geohash"
From Geohashing
imported>Benjw (adding a 'distance' parameter) |
|||
(6 intermediate revisions by 6 users not shown) | |||
Line 4: | Line 4: | ||
|user = {{{name|}}} | |user = {{{name|}}} | ||
|achievement = [[Bicycle geohash achievement]] | |achievement = [[Bicycle geohash achievement]] | ||
− | |action = cycling {{#if:{{{distance|}}}|{{{distance}}}|}} to the [ | + | |action = cycling {{#if:{{{distance|}}}|{{{distance}}}|}} to {{#if:{{{bothways|}}}|and from|}} the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]] |
|image = {{{image|}}} | |image = {{{image|}}} | ||
|category = Bicycle geohash achievement | |category = Bicycle geohash achievement | ||
+ | | expedition = [[{{{date}}} {{{latitude}}} {{{longitude}}}]] | ||
}}<noinclude> | }}<noinclude> | ||
'''How to use this template:''' | '''How to use this template:''' | ||
− | {{ | + | {{bicycle geohash |
:| latitude = '''latitude''' (required) | :| latitude = '''latitude''' (required) | ||
:| longitude = '''longitude''' (required) | :| longitude = '''longitude''' (required) | ||
Line 16: | 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)'' | ||
}} | }} | ||
+ | |||
+ | If you are using it on the expedition page, you can copy and paste this: | ||
+ | |||
+ | <pre>{{bicycle geohash|date={{subst:title|date}}|latitude={{subst:title|lat}}|longitude={{subst:title|lon}}|name={{subst:me}}|distance=|bothways=|image=}}</pre> | ||
+ | |||
+ | or this: <pre> | ||
+ | {{bicycle geohash | ||
+ | |date={{subst:title|date}} | ||
+ | |latitude={{subst:title|lat}} | ||
+ | |longitude={{subst:title|lon}} | ||
+ | |name={{subst:me}} | ||
+ | |distance= | ||
+ | |bothways= | ||
+ | |image= | ||
+ | }}</pre> | ||
The image name should not include 'Image:' or surrounding braces. | The image name should not include 'Image:' or surrounding braces. | ||
Line 28: | Line 45: | ||
| 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 37: | Line 55: | ||
| 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 | ||
}} | }} |
Latest revision as of 10:43, 26 May 2024
This user earned the Bicycle geohash achievement
|
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)
}}
If you are using it on the expedition page, you can copy and paste this:
{{bicycle geohash|date={{subst:title|date}}|latitude={{subst:title|lat}}|longitude={{subst:title|lon}}|name={{subst:me}}|distance=|bothways=|image=}}
or this:
{{bicycle geohash |date={{subst:title|date}} |latitude={{subst:title|lat}} |longitude={{subst:title|lon}} |name={{subst:me}} |distance= |bothways= |image= }}
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:
Tom earned the Bicycle geohash achievement
|
Example:
{{Bicycle geohash
| latitude = 53
| longitude = -1
| date = 2008-05-24
| name = Tom
}}
appears as:
Tom earned the Bicycle geohash achievement
|
Example:
{{Bicycle geohash
| latitude = 53
| longitude = -1
| date = 2008-05-24
}}
appears as:
This user earned the Bicycle geohash achievement
|