Difference between revisions of "Template:A Tale of Two Hashes"
From Geohashing
imported>Relet m |
imported>CrystyB (documented the "place" parameter ; added sections ; added code to allow initial challenger to use this template after completion of the challenge) |
||
Line 4: | Line 4: | ||
|user = {{{name|}}} | |user = {{{name|}}} | ||
|achievement = [[A Tale of Two Hashes achievement]] | |achievement = [[A Tale of Two Hashes achievement]] | ||
− | |action = meeting the challenge by {{{user2}}} to geohash in {{{place}}} going to the [http://irc.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]] | + | |action = {{#if:{{{completed|}}}|<!-- then: -->having their challenge met by {{{user2}}} in {{{place}}} on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]|<!-- else: -->meeting the challenge by {{{user2}}} to geohash in {{{place}}} going to the [http://irc.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]}} |
|image = {{{image|}}} | |image = {{{image|}}} | ||
|category = A Tale of Two Hashes achievement | |category = A Tale of Two Hashes achievement | ||
Line 15: | Line 15: | ||
:| date = '''date (YYYY-MM-DD format)''' (required) | :| date = '''date (YYYY-MM-DD format)''' (required) | ||
:| user2 = '''challenger's name''' (required) | :| user2 = '''challenger's name''' (required) | ||
+ | :| place = '''the common place name''' (required) | ||
:''| name = '''name of achiever''' (optional)'' | :''| name = '''name of achiever''' (optional)'' | ||
:''| image = '''image name''' (optional)'' | :''| image = '''image name''' (optional)'' | ||
Line 21: | Line 22: | ||
The image name should not include 'Image:' or surrounding braces. | The image name should not include 'Image:' or surrounding braces. | ||
− | + | === Examples === | |
+ | ==== Second expedition ==== | ||
+ | * Full details: | ||
<code>{{A Tale of Two Hashes | <code>{{A Tale of Two Hashes | ||
:| latitude = 53 | :| latitude = 53 | ||
Line 27: | Line 30: | ||
:| date = 2008-05-24 | :| date = 2008-05-24 | ||
:| user2 = [[User:wmcduff|wmcduff]] | :| user2 = [[User:wmcduff|wmcduff]] | ||
+ | :| place = wherever | ||
:| name = [[User:Tomtom|Tom]] | :| name = [[User:Tomtom|Tom]] | ||
:| image = 2008-05-24_53_-1_j.jpg | :| image = 2008-05-24_53_-1_j.jpg | ||
Line 36: | Line 40: | ||
| date = 2008-05-24 | | date = 2008-05-24 | ||
| user2 = [[User:wmcduff|wmcduff]] | | user2 = [[User:wmcduff|wmcduff]] | ||
+ | | place = wherever | ||
| name = [[User:Tomtom|Tom]] | | name = [[User:Tomtom|Tom]] | ||
| image = 2008-05-24_53_-1_j.jpg | | image = 2008-05-24_53_-1_j.jpg | ||
}} | }} | ||
− | + | * No image: | |
<code>{{A Tale of Two Hashes | <code>{{A Tale of Two Hashes | ||
:| latitude = 53 | :| latitude = 53 | ||
Line 46: | Line 51: | ||
:| date = 2008-05-24 | :| date = 2008-05-24 | ||
:| user2 = [[User:wmcduff|wmcduff]] | :| user2 = [[User:wmcduff|wmcduff]] | ||
+ | :| place = wherever | ||
:| name = [[User:Tomtom|Tom]] | :| name = [[User:Tomtom|Tom]] | ||
}}</code> appears as: | }}</code> appears as: | ||
Line 54: | Line 60: | ||
| date = 2008-05-24 | | date = 2008-05-24 | ||
| user2 = [[User:wmcduff|wmcduff]] | | user2 = [[User:wmcduff|wmcduff]] | ||
+ | | place = wherever | ||
| name = [[User:Tomtom|Tom]] | | name = [[User:Tomtom|Tom]] | ||
}} | }} | ||
− | + | * No name provided for achiever, defaults to "This user": | |
<code>{{A Tale of Two Hashes | <code>{{A Tale of Two Hashes | ||
:| latitude = 53 | :| latitude = 53 | ||
Line 63: | Line 70: | ||
:| date = 2008-05-24 | :| date = 2008-05-24 | ||
:| user2 = [[User:wmcduff|wmcduff]] | :| user2 = [[User:wmcduff|wmcduff]] | ||
+ | :| place = wherever | ||
}}</code> appears as: | }}</code> appears as: | ||
Line 70: | Line 78: | ||
| date = 2008-05-24 | | date = 2008-05-24 | ||
| user2 = [[User:wmcduff|wmcduff]] | | user2 = [[User:wmcduff|wmcduff]] | ||
+ | | place = wherever | ||
+ | }} | ||
+ | |||
+ | ==== Initial expedition ==== | ||
+ | <code>{{A Tale of Two Hashes | ||
+ | :| latitude = 53 | ||
+ | :| longitude = 1 | ||
+ | :| completed = yes | ||
+ | :| date = 2008-05-24 | ||
+ | :| user2 = [[User:Tomtom|Tom]] | ||
+ | :| place = wherever | ||
+ | :| name = [[User:wmcduff|wmcduff]] | ||
+ | :| image = 2008-05-24_53_-1_j.jpg | ||
+ | }}</code> appears as: | ||
+ | |||
+ | {{A Tale of Two Hashes | ||
+ | | latitude = 53 | ||
+ | | longitude = 1 | ||
+ | | completed = yes | ||
+ | | date = 2008-05-24 | ||
+ | | user2 = [[User:Tomtom|Tom]] | ||
+ | | place = wherever | ||
+ | | name = [[User:wmcduff|wmcduff]] | ||
+ | | image = 2008-05-24_53_-1_j.jpg | ||
}} | }} | ||
[[Category:Achievement award templates]] | [[Category:Achievement award templates]] | ||
</noinclude> | </noinclude> |
Revision as of 15:25, 5 February 2010
This user earned the A Tale of Two Hashes achievement
|
How to use this template:
{{A Tale of Two Hashes
- | latitude = latitude (required)
- | longitude = longitude (required)
- | date = date (YYYY-MM-DD format) (required)
- | user2 = challenger's name (required)
- | place = the common place name (required)
- | name = name of achiever (optional)
- | image = image name (optional)
}}
The image name should not include 'Image:' or surrounding braces.
Examples
Second expedition
- Full details:
{{A Tale of Two Hashes
}}
appears as:
Tom earned the Tale of Two Hashes achievement
|
- No image:
{{A Tale of Two Hashes
}}
appears as:
Tom earned the Tale of Two Hashes achievement
|
- No name provided for achiever, defaults to "This user":
{{A Tale of Two Hashes
- | latitude = 53
- | longitude = 1
- | date = 2008-05-24
- | user2 = wmcduff
- | place = wherever
}}
appears as:
This user earned the Tale of Two Hashes achievement
|
Initial expedition
{{A Tale of Two Hashes
}}
appears as:
wmcduff earned the Tale of Two Hashes achievement
|