Difference between revisions of "Template:Bicycle geohash"

From Geohashing
imported>Jevanyn
m
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
+
{{Ribbon
<tr>
+
|color = green
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: green; border-collapse: separate;"><div>[[Image:Bikegeohash.png|44px]]</div></td>
+
|icon = Bikegeohash.png
<td style="padding: 0px 12px 0px 10px;"> '''{{#if:{{{name|}}}|{{{name}}}|This user}} earned the [[Bicycle_Geohash|Bicycle Geohash]] achievement'''
+
|user = {{{name|}}}
:by reaching the [http://irc.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]. </td>
+
|achievement = [[Bicycle geohash achievement]]
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
+
|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}}}]]
</tr>
+
|image = {{{image|}}}
</table>[[Category:Bicycle Geohash Achievement]]<noinclude>
+
|category = Bicycle geohash achievement
 +
| expedition = [[{{{date}}} {{{latitude}}} {{{longitude}}}]]
 +
}}<noinclude>
 
'''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)
 
:| 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)''
 +
:''| 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 24: Line 41:
 
| longitude = -1
 
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
| name = [[User:Tom|Tom]]
+
| name = [[User:Tomtom|Tom]]
 +
| 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 32: Line 51:
 
| longitude = -1
 
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
| name = [[User:Tom|Tom]]
+
| name = [[User:Tomtom|Tom]]
 +
| distance = 12.2 km
 +
| bothways = true
 
| image = 2008-05-24_53_-1_j.jpg
 
| image = 2008-05-24_53_-1_j.jpg
 
}}
 
}}
Line 41: Line 62:
 
| longitude = -1
 
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
| name = [[User:Tom|Tom]]
+
| name = [[User:Tomtom|Tom]]
 
}}</code> appears as:
 
}}</code> appears as:
  
Line 48: Line 69:
 
| longitude = -1
 
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
| name = [[User:Tom|Tom]]
+
| name = [[User:Tomtom|Tom]]
 
}}
 
}}
  

Latest revision as of 06:40, 15 August 2023

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)

}}

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:

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.