Difference between revisions of "Template:No trespassing"

From Geohashing
imported>Mkoniecz
(add option to show distance to the hash)
m (Replacing Peeron with Geohashing.info)
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
| user    = {{{name|}}}
 
| user    = {{{name|}}}
 
| achievement = [[No trespassing consolation prize]]
 
| achievement = [[No trespassing consolation prize]]
| action  = almost {{#if:{{{distance|}}}|({{{distance}}}) |}}reaching the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
+
| action  = almost {{#if:{{{distance|}}}|({{{distance}}}) reaching|reaching}} the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
 
| image    = {{{image|}}}
 
| image    = {{{image|}}}
 
| category = No trespassing consolation prize
 
| category = No trespassing consolation prize
Line 17: Line 17:
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| image = '''image name''' (optional)''
 
:''| image = '''image name''' (optional)''
 +
:''| distance = '''distance to the hashpoint''' (optional)''
 
}}
 
}}
  
Line 22: Line 23:
  
 
'''Copyable, minimal example:'''
 
'''Copyable, minimal example:'''
<pre>{{No trespassing |latitude= |longitude= |date= |image= |name= ~~~}}</pre>
+
<pre>{{No trespassing |latitude= |longitude= |date= |image= |name= ~~~ |distance= }}</pre>
  
 
'''Example with image:'''
 
'''Example with image:'''
Line 31: Line 32:
 
| name = MrGeohasher
 
| name = MrGeohasher
 
| image = Noterminal_portland_sample_2.jpg
 
| image = Noterminal_portland_sample_2.jpg
 +
| distance =
 
}}</code> appears as:
 
}}</code> appears as:
  
Line 39: Line 41:
 
| name = MrGeohasher
 
| name = MrGeohasher
 
| image = Noterminal_portland_sample_2.jpg
 
| image = Noterminal_portland_sample_2.jpg
 +
| distance =
 
}}
 
}}
  
Line 47: Line 50:
 
| date = 2008-02-19
 
| date = 2008-02-19
 
| name = MrGeohasher
 
| name = MrGeohasher
 +
| distance =
 
}}</code> appears as:
 
}}</code> appears as:
  
Line 54: Line 58:
 
| date = 2008-02-19
 
| date = 2008-02-19
 
| name = MrGeohasher
 
| name = MrGeohasher
 +
| distance =
 
}}
 
}}
  
Line 61: Line 66:
 
| longitude = -122
 
| longitude = -122
 
| date = 2008-02-19
 
| date = 2008-02-19
 +
| distance =
 
}}</code> appears as:
 
}}</code> appears as:
  
Line 67: Line 73:
 
| longitude = -122
 
| longitude = -122
 
| date = 2008-02-19
 
| date = 2008-02-19
 +
| distance =
 +
}}
 +
 +
'''Example with image and distance:'''
 +
<code>&#x007B;{No trespassing
 +
| latitude = 45
 +
| longitude = -122
 +
| date = 2008-02-19
 +
| name = MrGeohasher
 +
| image = Noterminal_portland_sample_2.jpg
 +
| distance = 4m
 +
}}</code> appears as:
 +
 +
{{No trespassing
 +
| latitude = 45
 +
| longitude = -122
 +
| date = 2008-02-19
 +
| name = MrGeohasher
 +
| image = Noterminal_portland_sample_2.jpg
 +
| distance = 4m
 
}}
 
}}
  
 
[[Category:Achievement award templates]]
 
[[Category:Achievement award templates]]
 +
 
</noinclude>
 
</noinclude>

Latest revision as of 10:50, 15 January 2022

Notrespassing.gif
This user earned the No trespassing consolation prize
by almost reaching the ({{{latitude}}}, {{{longitude}}}) geohash on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].

How to use this template:

{{No trespassing

| latitude = latitude (required)
| longitude = longitude (required)
| date = date (YYYY-MM-DD format) (required)
| name = name of achiever (optional)
| image = image name (optional)
| distance = distance to the hashpoint (optional)

}}

The image name should not include 'Image:' or surrounding braces.

Copyable, minimal example:

{{No trespassing |latitude= |longitude= |date= |image= |name= ~~~ |distance= }}

Example with image: {{No trespassing | latitude = 45 | longitude = -122 | date = 2008-02-19 | name = MrGeohasher | image = Noterminal_portland_sample_2.jpg | distance = }} appears as:

Notrespassing.gif
MrGeohasher earned the No trespassing consolation prize
by almost reaching the (45, -122) geohash on 2008-02-19.
Noterminal portland sample 2.jpg

Example without image, but with name: {{No trespassing | latitude = 45 | longitude = -122 | date = 2008-02-19 | name = MrGeohasher | distance = }} appears as:

Notrespassing.gif
MrGeohasher earned the No trespassing consolation prize
by almost reaching the (45, -122) geohash on 2008-02-19.

Example without image or name: {{No trespassing | latitude = 45 | longitude = -122 | date = 2008-02-19 | distance = }} appears as:

Notrespassing.gif
This user earned the No trespassing consolation prize
by almost reaching the (45, -122) geohash on 2008-02-19.

Example with image and distance: {{No trespassing | latitude = 45 | longitude = -122 | date = 2008-02-19 | name = MrGeohasher | image = Noterminal_portland_sample_2.jpg | distance = 4m }} appears as:

Notrespassing.gif
MrGeohasher earned the No trespassing consolation prize
by almost (4m) reaching the (45, -122) geohash on 2008-02-19.
Noterminal portland sample 2.jpg