Difference between revisions of "Template:Minesweeper geohash"

From Geohashing
imported>Robyn
(I'm saving this frequently to avoid clashes.)
imported>Robyn
(Intermediate save)
Line 3: Line 3:
 
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: blue; border-collapse: separate;"><div>
 
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: blue; border-collapse: separate;"><div>
 
<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 flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>{{#if:{{{n|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>{{#if:{{{ne|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.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:{{{w|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>[[Image:Minesweeper geohash {{{ranknumber}}}.jpg]]</td><td>{{#if:{{{e|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.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 flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>{{#if:{{{s|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>{{#if:{{{se|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td></tr>
 
</table>
 
</table>
 
</div></td>
 
</div></td>
<td style="padding: 0px 12px 0px 10px;"> '''This user has {{#if:{{{ranknumber=8|}}}|completed|achieved Level {{{ranknumber}}} of}} the [[Minesweeper Geohash]] achievement'''  
+
<td style="padding: 0px 12px 0px 10px;"> '''{{#if:{{{name|}}}|{{{name}}}|This user}} has {{#if:{{{ranknumber=8|}}}|completed|achieved Level {{{ranknumber}}} of}} the [[Minesweeper Geohash]] achievement'''  
 
:by visiting geohashes in [[{{{graticule}}}]] and '''{{#if:{{{ranknumber=8|}}}|all|{{{ranknumber}}}}}''' of the surrounding graticules. </td>
 
:by visiting geohashes in [[{{{graticule}}}]] and '''{{#if:{{{ranknumber=8|}}}|all|{{{ranknumber}}}}}''' of the surrounding graticules. </td>
 
</tr></table>[[Category:Minesweeper geohash achievement]]
 
</tr></table>[[Category:Minesweeper geohash achievement]]
Line 34: Line 34:
 
:| nw = '''true''' if graticule to the northwest has been hashed, else blank
 
:| nw = '''true''' if graticule to the northwest has been hashed, else blank
 
:| ''name = '''name of achiever''' (optional)''
 
:| ''name = '''name of achiever''' (optional)''
:| ''image = '''image name''' (optional)''
 
 
}}
 
}}
  
Line 41: Line 40:
 
'''Example:'''
 
'''Example:'''
 
<code>&#x007B;{Minesweeper geohash
 
<code>&#x007B;{Minesweeper geohash
 +
| graticule = Vancouver, British Columbia
 +
| ranknumber = 2
 +
| n = true
 +
| se = true
 +
| name = Srs0
 
}}</code> appears as:
 
}}</code> appears as:
 
+
{{Minesweeper geohash
{{
+
| graticule = Vancouver, British Columbia
 +
| ranknumber = 2
 +
| n = true
 +
| se = true
 +
| name = Srs0
 
}}
 
}}
  
 
'''Example:'''
 
'''Example:'''
 
<code>&#x007B;{Minesweeper geohash
 
<code>&#x007B;{Minesweeper geohash
|  
+
| graticule = Vancouver, British Columbia
 +
| ranknumber = 2
 +
| s = true
 +
| w = true
 +
| ne = true
 +
| se = true
 +
| name = Srs0
 
}}</code> appears as:
 
}}</code> appears as:
  
 
{{Minesweeper geohash
 
{{Minesweeper geohash
|  
+
| graticule = Vancouver, British Columbia
 +
| ranknumber = 2
 +
| s = true
 +
| w = true
 +
| ne = true
 +
| se = true
 +
| name = Srs0
 
}}
 
}}
  
 
'''Example:'''
 
'''Example:'''
 
<code>&#x007B;{Minesweeper geohash
 
<code>&#x007B;{Minesweeper geohash
|
+
| graticule = Vancouver, British Columbia
 +
| ranknumber = 8
 +
| s = true
 +
| e = true
 +
| w = true
 +
| n = true
 +
| ne = true
 +
| nw = true
 +
| se = true
 +
| sw = true
 +
| name = Srs0
 
}}</code> appears as:
 
}}</code> appears as:
  
 
{{Minesweeper geohash
 
{{Minesweeper geohash
|  
+
| graticule = Vancouver, British Columbia
 +
| ranknumber = 8
 +
| s = true
 +
| e = true
 +
| w = true
 +
| n = true
 +
| ne = true
 +
| nw = true
 +
| se = true
 +
| sw = true
 +
| name = Srs0
 
}}
 
}}
 
[[Category:Achievement award templates]]
 
[[Category:Achievement award templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:21, 25 August 2008

Minesweeper geohash empty.jpgMinesweeper geohash empty.jpgMinesweeper geohash empty.jpg
Minesweeper geohash empty.jpg[[Image:Minesweeper geohash {{{ranknumber}}}.jpg]]Minesweeper geohash empty.jpg
Minesweeper geohash empty.jpgMinesweeper geohash empty.jpgMinesweeper geohash empty.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)

}}

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

Example: {{Minesweeper geohash | graticule = Vancouver, British Columbia | ranknumber = 2 | n = true | se = true | name = Srs0 }} appears as:

Minesweeper geohash empty.png Minesweeper geohash flag.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash 2.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash flag.png
Srs0 achieved level 2 of the Minesweeper Geohash achievement
by visiting coordinates in Vancouver, British Columbia and 2 of the surrounding graticules.

Example: {{Minesweeper geohash | graticule = Vancouver, British Columbia | ranknumber = 2 | s = true | w = true | ne = true | se = true | name = Srs0 }} appears as:

Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash flag.png
Minesweeper geohash flag.png Minesweeper geohash 2.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash flag.png Minesweeper geohash flag.png
Srs0 achieved level 2 of the Minesweeper Geohash achievement
by visiting coordinates in Vancouver, British Columbia and 2 of the surrounding graticules.

Example: {{Minesweeper geohash | graticule = Vancouver, British Columbia | ranknumber = 8 | s = true | e = true | w = true | n = true | ne = true | nw = true | se = true | sw = true | name = Srs0 }} appears as:

Minesweeper geohash flag.png Minesweeper geohash flag.png Minesweeper geohash flag.png
Minesweeper geohash flag.png Minesweeper geohash 8.png Minesweeper geohash flag.png
Minesweeper geohash flag.png Minesweeper geohash flag.png Minesweeper geohash flag.png
Srs0 completed the Minesweeper Geohash achievement
by visiting coordinates in Vancouver, British Columbia and all of the surrounding graticules.