Difference between revisions of "Template:Minesweeper geohash"
imported>Mattyk m (Attempting to add click-and-hold icons for attempts -- have to save it because you can't preview templates) |
imported>Mattyk m (extending it to accept O (mine) and X (boom) icons... saving again because I have to) |
||
Line 3: | Line 3: | ||
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: black; border-collapse: separate;"><div> | <td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: black; border-collapse: separate;"><div> | ||
<table style="border-width: 0px; border-spacing: 0px; border-style: solid solid solid solid;" cellspacing="0" cellpadding="0"> | <table style="border-width: 0px; border-spacing: 0px; border-style: solid solid solid solid;" cellspacing="0" cellpadding="0"> | ||
− | <tr><td>{{# | + | <tr><td>{{#switch:{{{nw}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{nw|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td><td>{{#switch:{{{n}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{n|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td><td>{{#switch:{{{ne}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{ne|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td></tr> |
− | <tr><td>{{# | + | <tr><td>{{#switch:{{{w}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{w|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td><td>{{#if:{{{ranknumber|}}}|[[Image:Minesweeper geohash {{{ranknumber}}}.png]]|[[Image:Minesweeper geohash empty.png]]}}</td><td>{{#switch:{{{e}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{e|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td></tr> |
− | <tr><td>{{# | + | <tr><td>{{#switch:{{{sw}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{sw|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td><td>{{#switch:{{{s}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{s|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td><td>{{#switch:{{{se}}}|?=[[Image:Minesweeper geohash ?.png]]|O=[[Image:Minesweeper geohash O.png]]|X=[[Image:Minesweeper geohash X.png]]|{{#if:{{{se|}}}|[[Image:Minesweeper geohash flag.png]]|[[Image:Minesweeper geohash empty.png]]}}}}</td></tr> |
</table> | </table> | ||
</div></td> | </div></td> |
Revision as of 05:57, 24 October 2009
This user has achieved Level {{{ranknumber}}} of the Minesweeper Geohash achievement
|
How to use this template: This template is trickier than some, so please fill in the data carefully. Note there is no error checking between the ranknumber you specify and the number of flags you specify. If you like you can just ignore all the flags, as in the last example.
{{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 (optional)
- | ne = true if graticule to the northeast has been hashed (optional)
- | e = true if graticule to the east has been hashed (optional)
- | se = true if graticule to the southeast has been hashed (optional)
- | s = true if graticule to the south has been hashed (optional)
- | sw = true if graticule to the southwest has been hashed (optional)
- | w = true if graticule to the west has been hashed (optional)
- | nw = true if graticule to the northwest has been hashed (optional)
- | name = name of achiever (optional)
}}
Example:
{{Minesweeper geohash
| graticule = Vancouver, British Columbia
| ranknumber = 2
| n = true
| se = true
| name = Srs0
}}
appears as:
Srs0 achieved level 2 of the Minesweeper Geohash achievement
|
Example:
{{Minesweeper geohash
| graticule = Vancouver, British Columbia
| ranknumber = 4
| s = true
| w = true
| ne = true
| se = true
| name = Srs0
}}
appears as:
Srs0 achieved level 4 of the Minesweeper Geohash achievement
|
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:
Srs0 completed the Minesweeper Geohash achievement
|
Example:
{{Minesweeper geohash
| graticule = Vancouver, British Columbia
| ranknumber = 3
}}
appears as:
This user achieved level 3 of the Minesweeper Geohash achievement
|