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

From Geohashing
imported>Pedalpusher
(set up single template option for Tale of Two Ribbon)
 
imported>Pedalpusher
(new option for single ribbon for Tale of Two Hashes)
Line 12: Line 12:
 
|<!-- then another #if: --> {{#ifeq:{{{challenger|}}}|no|<!-- nested then --> meeting the challenge of {{{user1}}} to geohash in {{{place}}}, going to the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude2}}}&long={{{longitude2}}}&date={{{date2}}} ({{{latitude2}}}, {{{longitude2}}}) geohash] on [[{{{date2}}} {{{latitude2}}} {{{longitude2}}}|{{{date2}}}]] | <!-- nested else --> having their challenge, issued on [[{{{date1}}} {{{latitude1}}} {{{longitude1}}}|{{{date1}}}]], met by {{{user2}}} in {{{place}}} }}
 
|<!-- then another #if: --> {{#ifeq:{{{challenger|}}}|no|<!-- nested then --> meeting the challenge of {{{user1}}} to geohash in {{{place}}}, going to the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude2}}}&long={{{longitude2}}}&date={{{date2}}} ({{{latitude2}}}, {{{longitude2}}}) geohash] on [[{{{date2}}} {{{latitude2}}} {{{longitude2}}}|{{{date2}}}]] | <!-- nested else --> having their challenge, issued on [[{{{date1}}} {{{latitude1}}} {{{longitude1}}}|{{{date1}}}]], met by {{{user2}}} in {{{place}}} }}
  
| <!-- else: -->geohashing in a place named {{{place}}} from the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude1}}}&long={{{longitude1}}}&date={{{date1}}} ({{{latitude1}}}, {{{longitude1}}}) geohash] on [[{{{date1}}} {{{latitude1}}} {{{longitude1}}}|{{{date1}}}]]
+
| <!-- else: -->geohashing in a place named {{{place}}} at the [http://carabiner.peeron.com/xkcd/map/map.html?lat={{{latitude1}}}&long={{{longitude1}}}&date={{{date1}}} ({{{latitude1}}}, {{{longitude1}}}) geohash] on [[{{{date1}}} {{{latitude1}}} {{{longitude1}}}|{{{date1}}}]]
 
|image = {{{image|}}}} ]]}}
 
|image = {{{image|}}}} ]]}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
Line 39: Line 39:
 
The image name should not include 'Image:' or surrounding braces.
 
The image name should not include 'Image:' or surrounding braces.
  
'''<nowiki>*</nowiki>Note if challenger = yes, then user1 is optional, if no, then user2 is optional. Challenger indicates the name going in the title of the ribbon. If correct user is left out, ribbon will read 'This user earned the A Tale...' '''
+
'''<nowiki>*</nowiki>Note if challenger = yes, then user1 is optional, if no, then user2 is optional. Challenger indicates the name going in the title of the ribbon. If correct user is left out, ribbon will read 'This user earned the A Tale...' ''' See below for examples.
 +
 
 +
 
 +
 
 +
 
 +
== Examples ==
 +
=== Challenger Expedition (Initial) ===
 +
Note: you can leave the lines for the completion expedition as they will (hopefully) be needed when completed changes to 'yes'
 +
 
 +
==== Example 1 ====
 +
<code>&#x007B;{A Tale of Two Hashes challenge
 +
:| latitude1 = 53
 +
:| longitude1 = -1
 +
:| date1 = 2008-05-24
 +
:| user1 = [[User:Tomtom|Tom]]
 +
:| latitude2 = '''latitude of second expedition''' ''(required if completed=yes)''
 +
:| longitude2 = '''longitude of second expedition''' ''(required if completed=yes)''
 +
:| date2 = '''date of second expedition (YYYY-MM-DD format)''' ''(required if completed=yes)''
 +
:| user2 = '''completer's name''' ''(from second expedition; required if completed=yes)*''
 +
:| place = wherever
 +
:| completed = no
 +
:| challenger = yes
 +
:| image = 2008-05-24_53_-1_j.jpg
 +
}}</code> appears as:
 +
 
 +
{{User:Pedalpusher/sandbox/ToTHSingle
 +
| latitude1 = 53
 +
| longitude1 = -1
 +
| date1 = 2008-05-24
 +
| user1 = [[User:Tomtom|Tom]]
 +
| latitude2 = '''latitude of second expedition''' ''(required if completed=yes)''
 +
| longitude2 = '''longitude of second expedition''' ''(required if completed=yes)''
 +
| date2 = '''date of second expedition (YYYY-MM-DD format)''' ''(required if completed=yes)''
 +
| user2 = '''completer's name''' ''(from second expedition; required if completed=yes)*''
 +
| place = Matlock
 +
| completed = no
 +
| challenger = yes
 +
| image = 2008-05-24_53_-1_j.jpg
 +
}}
 +
 
 +
 
 +
 
 +
==== Bare Minimum ====
 +
<code>&#x007B;{A Tale of Two Hashes challenge
 +
:| latitude1 = 53
 +
:| longitude1 = -1
 +
:| date1 = 2008-05-24
 +
:| latitude2 = '''latitude of second expedition''' ''(required if completed=yes)''
 +
:| longitude2 = '''longitude of second expedition''' ''(required if completed=yes)''
 +
:| date2 = '''date of second expedition (YYYY-MM-DD format)''' ''(required if completed=yes)''
 +
:| user2 = '''completer's name''' ''(from second expedition; required if completed=yes)*''
 +
:| place = Matlock
 +
:| completed = no
 +
:| challenger = yes
 +
}}</code> appears as:
 +
 
 +
{{User:Pedalpusher/sandbox/ToTHSingle
 +
| latitude1 = 53
 +
| longitude1 = -1
 +
| date1 = 2008-05-24
 +
| latitude2 = '''latitude of second expedition''' ''(required if completed=yes)''
 +
| longitude2 = '''longitude of second expedition''' ''(required if completed=yes)''
 +
| date2 = '''date of second expedition (YYYY-MM-DD format)''' ''(required if completed=yes)''
 +
| user2 = '''completer's name''' ''(from second expedition; required if completed=yes)*''
 +
| place = Matlock
 +
| completed = no
 +
| challenger = yes
 +
}}
 +
 
 +
 
 +
=== Challenge Completed ===
 +
==== Initial Expedition ====

Revision as of 17:10, 12 October 2015

Tale of Two Hashes Template

T2htemp1.JPG
This user earned the A Tale of Two Hashes achievement
by geohashing in a place named {{{place}}} at the ({{{latitude1}}}, {{{longitude1}}}) geohash on [[{{{date1}}} {{{latitude1}}} {{{longitude1}}}|{{{date1}}}]].


How to use this template

{{A Tale of Two Hashes

| latitude1 = latitude of first expedition (required)
| longitude1 = longitude of first expedition (required)
| date1 = date of first expedition (YYYY-MM-DD format) (required)
| user1 = challenger's name (from first expedition; required)*
| latitude2 = latitude of second expedition (required if completed=yes)
| longitude2 = longitude of second expedition (required if completed=yes)
| date2 = date of second expedition (YYYY-MM-DD format) (required if completed=yes)
| user2 = completer's name (from second expedition; required if completed=yes)*
| place = the common place name (required)
| completed = no|yes (default is no; required)
| challenger = no|yes (Are you the challenger[user1]? default is yes; required if completed=yes)*
| image = image name from your expedition (optional)

}}

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

*Note if challenger = yes, then user1 is optional, if no, then user2 is optional. Challenger indicates the name going in the title of the ribbon. If correct user is left out, ribbon will read 'This user earned the A Tale...' See below for examples.



Examples

Challenger Expedition (Initial)

Note: you can leave the lines for the completion expedition as they will (hopefully) be needed when completed changes to 'yes'

Example 1

{{A Tale of Two Hashes challenge

| latitude1 = 53
| longitude1 = -1
| date1 = 2008-05-24
| user1 = Tom
| latitude2 = latitude of second expedition (required if completed=yes)
| longitude2 = longitude of second expedition (required if completed=yes)
| date2 = date of second expedition (YYYY-MM-DD format) (required if completed=yes)
| user2 = completer's name (from second expedition; required if completed=yes)*
| place = wherever
| completed = no
| challenger = yes
| image = 2008-05-24_53_-1_j.jpg

}} appears as:


T2htemp1.JPG
Tom issued a challenge for the A Tale of Two Hashes achievement
by geohashing in a place named Matlock at the (53, -1) geohash on 2008-05-24.
2008-05-24 53 -1 j.jpg


Bare Minimum

{{A Tale of Two Hashes challenge

| latitude1 = 53
| longitude1 = -1
| date1 = 2008-05-24
| latitude2 = latitude of second expedition (required if completed=yes)
| longitude2 = longitude of second expedition (required if completed=yes)
| date2 = date of second expedition (YYYY-MM-DD format) (required if completed=yes)
| user2 = completer's name (from second expedition; required if completed=yes)*
| place = Matlock
| completed = no
| challenger = yes

}} appears as:


T2htemp1.JPG
This user issued a challenge for the A Tale of Two Hashes achievement
by geohashing in a place named Matlock at the (53, -1) geohash on 2008-05-24.


Challenge Completed

Initial Expedition