Difference between revisions of "Template:Bicycle geohash"
From Geohashing
imported>Benjw (adding a 'distance' parameter) |
|||
(4 intermediate revisions by 4 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 | ||
+ | | latitude={{#explode:{{SUBPAGENAME}}| |1}} | ||
+ | | longitude={{#explode:{{SUBPAGENAME}}| |2}} | ||
+ | | date={{#explode:{{SUBPAGENAME}}| |0}} | ||
+ | | distance= | ||
+ | | bothways= | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
The image name should not include 'Image:' or surrounding braces. | The image name should not include 'Image:' or surrounding braces. | ||
Line 28: | Line 43: | ||
| 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 53: | ||
| 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 06:40, 15 August 2023
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 | latitude={{#explode:{{SUBPAGENAME}}| |1}} | longitude={{#explode:{{SUBPAGENAME}}| |2}} | date={{#explode:{{SUBPAGENAME}}| |0}} | distance= | bothways= }}
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
|