Difference between revisions of "Template:Leap geohash"

From Geohashing
imported>Relet
imported>Fippe
(expanded this for leap seconds)
Line 1: Line 1:
 +
{{#switch:{{{2}}}
 +
|#default =
 
{{Ribbon
 
{{Ribbon
 
| color    = darkgreen
 
| color    = darkgreen
Line 8: Line 10:
 
| image    = {{{image|}}}
 
| image    = {{{image|}}}
 
| expedition = [[{{{year}}}-02-29 {{{lat}}} {{{lon}}}]]
 
| expedition = [[{{{year}}}-02-29 {{{lat}}} {{{lon}}}]]
 +
}}
 +
|second =
 +
{{Ribbon
 +
| color    = darkgreen
 +
| icon    = Leap.png
 +
| user    = {{{name|}}}
 +
| achievement = [[Leap geohash achievement|Leap second geohash achievement]]
 +
| action  = leaping to [[{{{date}}} {{{lat}}} {{{lon}}}|the hash point]] in a ''leap second'' on {{{date}}}
 +
| category = Leap geohash achievement
 +
| image    = {{{image|}}}
 +
| expedition = [[{{{date}}} {{{lat}}} {{{lon}}}]]
 +
}}
 
}}<noinclude>
 
}}<noinclude>
  
 
'''How to use this template:'''
 
'''How to use this template:'''
 +
 +
'''For leap ''days'':'''
  
 
&#x007B;{Leap geohash
 
&#x007B;{Leap geohash
 
:''| year = '''leap year''' (mandatory)''
 
:''| 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'':'''
 +
 +
&#x007B;{Leap geohash|second
 +
:''| date = '''date (YYYY-MM-DD format)''' (mandatory)''
 
:''| lat  = '''latitude of the graticule''' (mandatory)''
 
:''| lat  = '''latitude of the graticule''' (mandatory)''
 
:''| lon  = '''longitude of the graticule''' (mandatory)''
 
:''| lon  = '''longitude of the graticule''' (mandatory)''
Line 24: Line 50:
 
'''Examples:'''
 
'''Examples:'''
  
  <nowiki>{{leap geohash|year=2012|lat=0|lon=0}}</nowiki>
+
  <nowiki>{{leap geohash|year=2012|lat=59|lon=17}}</nowiki>
{{Leap geohash|lat=0|lon=0|year=2012}}
+
{{leap geohash|year=2012|lat=59|lon=17}}
 +
 
 +
<nowiki>{{leap geohash|second|date=2012-06-30|lat=38|lon=-95}}</nowiki>
 +
{{leap geohash|second|date=2012-06-30|lat=38|lon=-95}}
  
 
</noinclude>
 
</noinclude>

Revision as of 23:29, 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.