Difference between revisions of "Template:Minesweeper geohash"

From Geohashing
imported>Robyn
(Trying to get the ranknumber = 8 test to work)
imported>Fippe
m
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<table style="border-width: 1px; border-spacing: 0px; border-style: solid solid solid solid; border-color: lightgrey;">
+
{{#vardefine:iconsize|{{#if:{{#var:ribbontheme|}}|8px|16px}}}}{{Ribbon
 +
|iconcode = <table style="border-width: 0px; border-spacing: 0px; border-style: solid solid solid solid;" cellspacing="0" cellpadding="0">
 
<tr>
 
<tr>
<td style="border-width: 5px; border-spacing: 2px; border-style: hidden hidden hidden solid; border-color: blue; border-collapse: separate;"><div>
+
  <td>{{Minesweeper geohash/Field|{{{nw|}}}}}</td>
<table style="border-width: 0px; border-spacing: 0px; border-style: solid solid solid solid;">
+
  <td>{{Minesweeper geohash/Field|{{{n|}}}}}</td>
<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>
+
  <td>{{Minesweeper geohash/Field|{{{ne|}}}}}</td>
<tr><td>{{#if:{{{w|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>{{#if:{{{ranknumber|}}}|[[Image:Minesweeper geohash {{{ranknumber}}}.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td><td>{{#if:{{{e|}}}|[[Image:Minesweeper geohash flag.jpg]]|[[Image:Minesweeper geohash empty.jpg]]}}</td></tr>
+
</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>
+
<tr>
 +
  <td>{{Minesweeper geohash/Field|{{{w|}}}}}</td>
 +
  <td>{{Minesweeper geohash/Center|{{{ranknumber|}}}}}</td>
 +
  <td>{{Minesweeper geohash/Field|{{{e|}}}}}</td>
 +
</tr>
 +
<tr>
 +
  <td>{{Minesweeper geohash/Field|{{{sw|}}}}}</td>
 +
  <td>{{Minesweeper geohash/Field|{{{s|}}}}}</td>
 +
  <td>{{Minesweeper geohash/Field|{{{se|}}}}}</td>
 +
</tr>
 
</table>
 
</table>
</div></td>
+
|color = black
<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'''
+
|user = {{{name|}}}
:by visiting coordinates in [[{{{graticule}}}]] and '''{{#if:{{{ranknumber=8|}}}|all|{{{ranknumber}}}}}''' of the surrounding graticules. </td>
+
|achievement = [[Minesweeper Geohash]] achievement
</tr></table>[[Category:Minesweeper geohash achievement]]
+
|action = visiting coordinates in [[{{{graticule}}}]] and '''{{#ifeq:{{{ranknumber|}}}|8|all|{{{ranknumber}}}}}''' of the surrounding graticules
 
+
|category = Minesweeper geohash achievement
 
+
|customtitle = {{#ifeq:{{{ranknumber|}}}|8|completed the|achieved level {{{ranknumber}}} of the}}
<noinclude>
+
|expedition = [[{{{graticule}}}]] (+{{#ifeq:{{{ranknumber|}}}|8|all|{{{ranknumber}}}}})
'''How to use this template:''' This template is tricker than some, so please fill in the data carefully.  
+
|image    = {{{image|}}}
 +
}}<noinclude>
 +
'''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.
  
 
&#x007B;{Minesweeper geohash
 
&#x007B;{Minesweeper geohash
 
:| graticule = '''full name of the ''centre'' graticule in your grid''' (required)
 
:| graticule = '''full name of the ''centre'' graticule in your grid''' (required)
 
:| ranknumber = '''number of surrounding graticules completed (1-8)''' (required)
 
:| ranknumber = '''number of surrounding graticules completed (1-8)''' (required)
:| n = '''true''' if graticule to the north has been hashed, else blank
+
:| ''n = '''true''' if graticule to the north has been hashed (optional)''
:| ne = '''true''' if graticule to the northeast has been hashed, else blank
+
:| ''ne = '''true''' if graticule to the northeast has been hashed (optional)''
:| e = '''true''' if graticule to the east has been hashed, else blank
+
:| ''e = '''true''' if graticule to the east has been hashed (optional)''
:| se = '''true''' if graticule to the southeast has been hashed, else blank
+
:| ''se = '''true''' if graticule to the southeast has been hashed (optional)''
:| s = '''true''' if graticule to the south has been hashed, else blank
+
:| ''s = '''true''' if graticule to the south has been hashed (optional)''
:| sw = '''true''' if graticule to the southwest has been hashed, else blank
+
:| ''sw = '''true''' if graticule to the southwest has been hashed (optional)''
:| w = '''true''' if graticule to the west has been hashed, else blank
+
:| ''w = '''true''' if graticule to the west has been hashed (optional)''
:| nw = '''true''' if graticule to the northwest has been hashed, else blank
+
:| ''nw = '''true''' if graticule to the northwest has been hashed (optional)''
 
:| ''name = '''name of achiever''' (optional)''
 
:| ''name = '''name of achiever''' (optional)''
 
}}
 
}}
Line 49: Line 61:
 
<code>&#x007B;{Minesweeper geohash
 
<code>&#x007B;{Minesweeper geohash
 
| graticule = Vancouver, British Columbia
 
| graticule = Vancouver, British Columbia
| ranknumber = 2
+
| ranknumber = 4
 
| s = true
 
| s = true
 
| w = true
 
| w = true
Line 59: Line 71:
 
{{Minesweeper geohash
 
{{Minesweeper geohash
 
| graticule = Vancouver, British Columbia
 
| graticule = Vancouver, British Columbia
| ranknumber = 2
+
| ranknumber = 4
 
| s = true
 
| s = true
 
| w = true
 
| w = true
Line 94: Line 106:
 
| sw = true
 
| sw = true
 
| name = Srs0
 
| name = Srs0
 +
}}
 +
'''Example:'''
 +
<code>&#x007B;{Minesweeper geohash
 +
| graticule = Vancouver, British Columbia
 +
| ranknumber = 3
 +
}}</code> appears as:
 +
{{Minesweeper geohash
 +
| graticule = Vancouver, British Columbia
 +
| ranknumber = 3
 
}}
 
}}
 
[[Category:Achievement award templates]]
 
[[Category:Achievement award templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:38, 19 March 2015

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.

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:

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 = 4 | 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 4.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash flag.png Minesweeper geohash flag.png
Srs0 achieved level 4 of the Minesweeper Geohash achievement
by visiting coordinates in Vancouver, British Columbia and 4 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.

Example: {{Minesweeper geohash | graticule = Vancouver, British Columbia | ranknumber = 3 }} appears as:

Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash 3.png Minesweeper geohash empty.png
Minesweeper geohash empty.png Minesweeper geohash empty.png Minesweeper geohash empty.png
This user achieved level 3 of the Minesweeper Geohash achievement
by visiting coordinates in Vancouver, British Columbia and 3 of the surrounding graticules.