Difference between revisions of "User:Pedalpusher/sandbox/testTemplate"

From Geohashing
imported>Pedalpusher
m
m (Replacing Peeron with Geohashing.info)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>
 +
== Single Template option ==
 +
I have now created a single template option which might be better, although it is still a bit complicated.
 +
 +
[[User:Pedalpusher/sandbox/ToTHSingle | ToTH Single Option]]
 +
 
== Challenge Completed Template ==
 
== Challenge Completed Template ==
 +
</noinclude>
  
 
{{Ribbon
 
{{Ribbon
Line 6: Line 13:
 
|user = {{{name|}}}
 
|user = {{{name|}}}
 
|achievement = [[A Tale of Two Hashes achievement]]
 
|achievement = [[A Tale of Two Hashes achievement]]
|action = {{#if:{{{completed|}}}|<!-- then: -->having their challenge, issued on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]], met by {{{user2}}} in {{{place}}} |<!-- else: -->meeting the challenge of {{{user2}}} to geohash in {{{place}}}, going to the [http://carabiner.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, issued on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]], met by {{{user2}}} in {{{place}}} |<!-- else: -->meeting the challenge of {{{user2}}} to geohash in {{{place}}}, going to the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{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 46: Line 53:
 
<code>&#x007B;{A Tale of Two Hashes
 
<code>&#x007B;{A Tale of Two Hashes
 
:| latitude = 53
 
:| latitude = 53
:| longitude = 1
+
:| longitude = -1
 
:| date = 2008-05-24
 
:| date = 2008-05-24
 
:| user2 = [[User:wmcduff|wmcduff]]
 
:| user2 = [[User:wmcduff|wmcduff]]
Line 53: Line 60:
 
:| image = 2008-05-24_53_-1_j.jpg
 
:| image = 2008-05-24_53_-1_j.jpg
 
}}</code> appears as:
 
}}</code> appears as:
 
 
{{User:Pedalpusher/sandbox/testTemplate
 
{{User:Pedalpusher/sandbox/testTemplate
 
| latitude = 53
 
| latitude = 53
| longitude = 1
+
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
 
| user2 = [[User:wmcduff|wmcduff]]
 
| user2 = [[User:wmcduff|wmcduff]]
Line 64: Line 70:
 
}}
 
}}
  
 +
 +
----
 
* No image:
 
* No image:
 
<code>&#x007B;{A Tale of Two Hashes
 
<code>&#x007B;{A Tale of Two Hashes
 
:| latitude = 53
 
:| latitude = 53
:| longitude = 1
+
:| longitude = -1
 
:| date = 2008-05-24
 
:| date = 2008-05-24
 
:| user2 = [[User:wmcduff|wmcduff]]
 
:| user2 = [[User:wmcduff|wmcduff]]
Line 73: Line 81:
 
:| name = [[User:Tomtom|Tom]]
 
:| name = [[User:Tomtom|Tom]]
 
}}</code> appears as:
 
}}</code> appears as:
 
 
{{User:Pedalpusher/sandbox/testTemplate
 
{{User:Pedalpusher/sandbox/testTemplate
 
| latitude = 53
 
| latitude = 53
| longitude = 1
+
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
 
| user2 = [[User:wmcduff|wmcduff]]
 
| user2 = [[User:wmcduff|wmcduff]]
Line 83: Line 90:
 
}}
 
}}
  
 +
 +
----
 
* No name provided for achiever, defaults to "This user":
 
* No name provided for achiever, defaults to "This user":
 
<code>&#x007B;{A Tale of Two Hashes
 
<code>&#x007B;{A Tale of Two Hashes
 
:| latitude = 53
 
:| latitude = 53
:| longitude = 1
+
:| longitude = -1
 
:| date = 2008-05-24
 
:| date = 2008-05-24
 
:| user2 = [[User:wmcduff|wmcduff]]
 
:| user2 = [[User:wmcduff|wmcduff]]
 
:| place = wherever
 
:| place = wherever
 
}}</code> appears as:
 
}}</code> appears as:
 
+
{{User:Pedalpusher/sandbox/testTemplate
{{A Tale of Two Hashes
 
 
| latitude = 53
 
| latitude = 53
| longitude = 1
+
| longitude = -1
 
| date = 2008-05-24
 
| date = 2008-05-24
 
| user2 = [[User:wmcduff|wmcduff]]
 
| user2 = [[User:wmcduff|wmcduff]]
 
| place = wherever
 
| place = wherever
 
}}
 
}}
 +
----
  
 
==== Initial expedition ====
 
==== Initial expedition ====
 
<code>&#x007B;{A Tale of Two Hashes
 
<code>&#x007B;{A Tale of Two Hashes
 
:| latitude = 53
 
:| latitude = 53
:| longitude = 12
+
:| longitude = -1
 
:| completed = yes
 
:| completed = yes
 
:| date = 2008-05-24
 
:| date = 2008-05-24
Line 111: Line 120:
 
:| image = 2008-05-24_53_-1_j.jpg
 
:| image = 2008-05-24_53_-1_j.jpg
 
}}</code> appears as:
 
}}</code> appears as:
 
 
{{User:Pedalpusher/sandbox/testTemplate
 
{{User:Pedalpusher/sandbox/testTemplate
 
| latitude = 53
 
| latitude = 53
| longitude = 12
+
| longitude = -1
 
| completed = yes
 
| completed = yes
 
| date = 2008-05-24
 
| date = 2008-05-24

Latest revision as of 10:54, 15 January 2022

Single Template option

I have now created a single template option which might be better, although it is still a bit complicated.

ToTH Single Option

Challenge Completed Template

T2htemp2.JPG
This user earned the A Tale of Two Hashes achievement
by meeting the challenge of {{{user2}}} to geohash in {{{place}}}, going to the ({{{latitude}}}, {{{longitude}}}) geohash on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].


How to use this template

Second Expedition:
{{A Tale of Two Hashes

| latitude = latitude (required)
| longitude = longitude (required)
| date = date of second expedition (YYYY-MM-DD format) (required)
| user2 = challenger's name (from first expedition; required)
| place = the common place name (required)
| name = name of achiever (from second expedition; optional)
| image = image name (optional)

}}

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

Initial Expedition:
Note: This ribbon should replace the original challenge ribbon from the first expedition page.
{A Tale of Two Hashes

| latitude = latitude (required)
| longitude = longitude (required)
| date = date of first expedition (YYYY-MM-DD format) (required)
| completed = yes
| user2 = completer's name (from second expedition; required)
| place = the common place name (required)
| name = name of challenger (from first expedition; optional)
| image = image name (optional)

}}

Examples

Second expedition

  • Full details:

{{A Tale of Two Hashes

| latitude = 53
| longitude = -1
| date = 2008-05-24
| user2 = wmcduff
| place = wherever
| name = Tom
| image = 2008-05-24_53_-1_j.jpg

}} appears as:


T2htemp2.JPG
Tom earned the A Tale of Two Hashes achievement
by meeting the challenge of wmcduff to geohash in wherever, going to the (53, -1) geohash on 2008-05-24.
2008-05-24 53 -1 j.jpg



  • No image:

{{A Tale of Two Hashes

| latitude = 53
| longitude = -1
| date = 2008-05-24
| user2 = wmcduff
| place = wherever
| name = Tom

}} appears as:


T2htemp2.JPG
Tom earned the A Tale of Two Hashes achievement
by meeting the challenge of wmcduff to geohash in wherever, going to the (53, -1) geohash on 2008-05-24.



  • 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:


T2htemp2.JPG
This user earned the A Tale of Two Hashes achievement
by meeting the challenge of wmcduff to geohash in wherever, going to the (53, -1) geohash on 2008-05-24.

Initial expedition

{{A Tale of Two Hashes

| latitude = 53
| longitude = -1
| completed = yes
| date = 2008-05-24
| user2 = Tom
| place = wherever
| name = wmcduff
| image = 2008-05-24_53_-1_j.jpg

}} appears as:


T2htemp2.JPG
wmcduff earned the A Tale of Two Hashes achievement
by having their challenge, issued on 2008-05-24, met by Tom in wherever.
2008-05-24 53 -1 j.jpg