Difference between revisions of "Template:Minesweeper geohash"

From Geohashing
imported>Robyn
(Saving this so I can see how bad srs) and I are clashing.)
 
imported>Robyn
(I'm saving this frequently to avoid clashes.)
Line 4: Line 4:
 
<table style="border-width: 0px; border-spacing: 0px; border-style: solid solid solid solid;">
 
<table style="border-width: 0px; border-spacing: 0px; border-style: solid solid solid solid;">
 
<tr><td>{{#if:{{{nw|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{n|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{ne|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td></tr>
 
<tr><td>{{#if:{{{nw|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{n|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{ne|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td></tr>
<tr><td>{{#if:{{{w|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>[[Image:Mine{{{ranknumber}}}.PNG]]</td><td>{{#if:{{{e|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td></tr>
+
<tr><td>{{#if:{{{w|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>[[Image:Minesweeper geohash {{{ranknumber}}}.jpg]]</td><td>{{#if:{{{e|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td></tr>
 
<tr><td>{{#if:{{{sw|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{s|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{se|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td></tr>
 
<tr><td>{{#if:{{{sw|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{s|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td><td>{{#if:{{{se|}}}|[[Image:Minesweeper geohash empty.jpg]]|[[Image:Minesweeper geohash flag.jpg]]}}</td></tr>
 
</table>
 
</table>
Line 36: Line 36:
 
:| ''image = '''image name''' (optional)''
 
:| ''image = '''image name''' (optional)''
 
}}
 
}}
 
 
 
<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgray;">
 
<tr>
 
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: lime; border-collapse: separate;"><div>{{#if:{{{honor|}}}|[[Image:couchpotatohm.png|44px]]|[[Image:Couchpotatogeohash.png|44px]]}}</div></td>
 
<td style="padding: 0px 12px 0px 10px;"> '''{{#if:{{{name|}}}|{{{name}}}|This user}} earned the [[Couch Potato Geohash]] {{#if:{{{honor|}}}|honorable mention|achievement}}
 
:by living {{#if:{{{honor|}}}|near|at}} the [http://irc.peeron.com/xkcd/map/map.html?lat={{{latitude}}}&long={{{longitude}}}&date={{{date}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].''' </td>
 
{{#if:{{{image|}}}|<td><div style="width: 52px;">[[Image:{{{image}}}|44px]]</div></td>|}}
 
</tr>
 
</table>
 
 
 
  
 
The image name should not include 'Image:' or surrounding braces.
 
The image name should not include 'Image:' or surrounding braces.

Revision as of 23:09, 25 August 2008

Minesweeper geohash flag.jpgMinesweeper geohash flag.jpgMinesweeper geohash flag.jpg
Minesweeper geohash flag.jpg[[Image:Minesweeper geohash {{{ranknumber}}}.jpg]]Minesweeper geohash flag.jpg
Minesweeper geohash flag.jpgMinesweeper geohash flag.jpgMinesweeper geohash flag.jpg
This user has achieved Level {{{ranknumber}}} of the Minesweeper Geohash achievement
by visiting geohashes in [[{{{graticule}}}]] and {{{ranknumber}}} of the surrounding graticules.



In progress 1. Make a table out of images - done 2. Allow people to choose which images go where 3. Make a good UI for that This template is tricker than some, so please fill in the data carefully. How to use this template:

{{Minesweeper geohash

| graticule = full name of the centre graticule in your grid (required)
| ranknumber = number of surrounding graticules completed (1-8) (required)
| n = true if graticule to the north has been hashed, else blank
| ne = true if graticule to the northeast has been hashed, else blank
| e = true if graticule to the east has been hashed, else blank
| se = true if graticule to the southeast has been hashed, else blank
| s = true if graticule to the south has been hashed, else blank
| sw = true if graticule to the southwest has been hashed, else blank
| w = true if graticule to the west has been hashed, else blank
| nw = true if graticule to the northwest has been hashed, else blank
| name = name of achiever (optional)
| image = image name (optional)

}}

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

Example: {{Minesweeper geohash }} appears as:

{{ }}

Example: {{Minesweeper geohash | }} appears as:

Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
This user achieved level {{{ranknumber}}} of the Minesweeper Geohash achievement
by visiting coordinates in [[{{{graticule}}}]] and {{{ranknumber}}} of the surrounding graticules.

Example: {{Minesweeper geohash | }} appears as:

Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
This user achieved level {{{ranknumber}}} of the Minesweeper Geohash achievement
by visiting coordinates in [[{{{graticule}}}]] and {{{ranknumber}}} of the surrounding graticules.