Difference between revisions of "Template:Inarow"

From Geohashing
(Creating ribbon template)
 
m (Adding range option)
 
Line 1: Line 1:
 
{{Ribbon
 
{{Ribbon
|color    = lightcoral
+
|color    = darkslategrey
 
|icon    = inarow.png
 
|icon    = inarow.png
 
|user    = {{{name|}}}
 
|user    = {{{name|}}}
 
|achievement = [[N-in-a-row achievement|{{{level}}}-in-a-row achievement]]
 
|achievement = [[N-in-a-row achievement|{{{level}}}-in-a-row achievement]]
|action  = achieving a connection of '''{{{level}}}''' graticules in a row after reaching the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
+
|action  = achieving a connection of '''{{{level}}}''' graticules in a row {{#if:{{{graticule1|}}}|{{#if:{{{graticule2|}}}|'''({{{graticule1}}} to {{{graticule2}}})'''|}}|}} after reaching the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
 
|image    = {{{image|}}}
 
|image    = {{{image|}}}
 
|category = N-in-a-row achievement
 
|category = N-in-a-row achievement
Line 16: Line 16:
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 
:| date = '''date (YYYY-MM-DD format)''' (required)
 
:| level = '''number of graticules in a row''' (required)
 
:| level = '''number of graticules in a row''' (required)
 +
:''| graticule1 = '''start of the line of graticules''' (optional, requires graticule2 to show)''
 +
:''| graticule2 = '''end of the line of graticules''' (optional, requires graticule1 to show)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| name = '''name of achiever''' (optional)''
 
:''| image = '''image name''' (optional)''
 
:''| image = '''image name''' (optional)''
Line 23: Line 25:
  
  
'''Example:'''
+
'''Example with range:'''
 
<code>&#x007B;{inarow
 
<code>&#x007B;{inarow
 
| latitude = 55
 
| latitude = 55
Line 29: Line 31:
 
| date = 2023-09-27
 
| date = 2023-09-27
 
| level = 2
 
| level = 2
 +
| graticule1 = 55,-3
 +
| graticule2 = 55,-4
 
| name = [[User:KerrMcF|KerrMcF]]
 
| name = [[User:KerrMcF|KerrMcF]]
 
}}</code> appears as:
 
}}</code> appears as:
Line 37: Line 41:
 
| date = 2023-09-27
 
| date = 2023-09-27
 
| level = 2
 
| level = 2
 +
| graticule1 = 55,-3
 +
| graticule2 = 55,-4
 +
| name = [[User:KerrMcF|KerrMcF]]
 +
}}
 +
 +
 +
'''Example with only graticule2:'''
 +
<code>&#x007B;{inarow
 +
| latitude = 55
 +
| longitude = -4
 +
| date = 2023-09-27
 +
| level = 2
 +
| graticule2 = 55,-4
 +
| name = [[User:KerrMcF|KerrMcF]]
 +
}}</code> appears as:
 +
 +
{{inarow
 +
| latitude = 55
 +
| longitude = -4
 +
| date = 2023-09-27
 +
| level = 2
 +
| graticule2 = 55,-4
 
| name = [[User:KerrMcF|KerrMcF]]
 
| name = [[User:KerrMcF|KerrMcF]]
 
}}
 
}}

Latest revision as of 01:33, 5 April 2024

Inarow.png
This user earned the {{{level}}}-in-a-row achievement
by achieving a connection of {{{level}}} graticules in a row after reaching the ({{{latitude}}}, {{{longitude}}}) geohash on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].

How to use this template:

{{inarow

| latitude = latitude (required)
| longitude = longitude (required)
| date = date (YYYY-MM-DD format) (required)
| level = number of graticules in a row (required)
| graticule1 = start of the line of graticules (optional, requires graticule2 to show)
| graticule2 = end of the line of graticules (optional, requires graticule1 to show)
| name = name of achiever (optional)
| image = image name (optional)

}}

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


Example with range: {{inarow | latitude = 55 | longitude = -4 | date = 2023-09-27 | level = 2 | graticule1 = 55,-3 | graticule2 = 55,-4 | name = KerrMcF }} appears as:

Inarow.png
KerrMcF earned the 2-in-a-row achievement
by achieving a connection of 2 graticules in a row (55,-3 to 55,-4) after reaching the (55, -4) geohash on 2023-09-27.


Example with only graticule2: {{inarow | latitude = 55 | longitude = -4 | date = 2023-09-27 | level = 2 | graticule2 = 55,-4 | name = KerrMcF }} appears as:

Inarow.png
KerrMcF earned the 2-in-a-row achievement
by achieving a connection of 2 graticules in a row after reaching the (55, -4) geohash on 2023-09-27.


Example: {{inarow | latitude = 51 | longitude = 15 | date = 2023-10-31 | level = 11 | name = Fippe | image = 2023-10-31 51 15 01 Train.jpg }} appears as:

Inarow.png
Fippe earned the 11-in-a-row achievement
by achieving a connection of 11 graticules in a row after reaching the (51, 15) geohash on 2023-10-31.
2023-10-31 51 15 01 Train.jpg


Example: {{inarow | latitude = -37 | longitude = 143 | date = 2023-11-04 | level = 7 }} appears as:

Inarow.png
This user earned the 7-in-a-row achievement
by achieving a connection of 7 graticules in a row after reaching the (-37, 143) geohash on 2023-11-04.