Difference between revisions of "Template:Leap geohash"

From Geohashing
imported>Fippe
(expanded this for leap seconds)
imported>Fippe
m
Line 1: Line 1:
{{#switch:{{{2}}}
+
{{#switch:{{{1}}}
 
|#default =  
 
|#default =  
 
{{Ribbon
 
{{Ribbon

Revision as of 23:31, 3 March 2015

Leap.png
This user earned the Leap geohash achievement {{{year}}}
by leaping to [[{{{year}}}-02-29 {{{lat}}} {{{lon}}}|the hash point]] on leap day of the year {{{year}}}.

How to use this template:

For leap days:

{{Leap geohash

| year = leap year (mandatory)
| lat = latitude of the graticule (mandatory)
| lon = longitude of the graticule (mandatory)
| name = name of achiever (optional)
| image = image name (optional)

}}

For leap seconds:

{{Leap geohash|second

| date = date (YYYY-MM-DD format) (mandatory)
| lat = latitude of the graticule (mandatory)
| lon = longitude of the graticule (mandatory)
| name = name of achiever (optional)
| image = image name (optional)

}}

Examples:

{{leap geohash|year=2012|lat=59|lon=17}}
Leap.png
This user earned the Leap geohash achievement 2012
by leaping to the hash point on leap day of the year 2012.
{{leap geohash|second|date=2012-06-30|lat=38|lon=-95}}
Leap.png
This user earned the Leap second geohash achievement
by leaping to the hash point in a leap second on 2012-06-30.