Difference between revisions of "Template:Eclipse"

From Geohashing
(Created page with "Testing...")
 
(Created page with "{{Ribbon | color = black | icon = eclipse.png | user = {{{name|}}} | customtitle = achieved level {{#switch:{{{type}}} | solar = {{#switch:{{{subtype}}} | total =...")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Testing...
+
{{Ribbon
 +
| color = black
 +
| icon = eclipse.png
 +
| user = {{{name|}}}
 +
| customtitle = achieved level {{#switch:{{{type}}}
 +
    | solar = {{#switch:{{{subtype}}}
 +
        | total = {{#vardefine:level | 4}}
 +
        | annular = {{#vardefine:level | 3}}
 +
        | partial = {{#vardefine:level | 2}}
 +
    }}
 +
    | lunar = {{#switch:{{{subtype}}}
 +
        | total = {{#vardefine:level | 1}}
 +
        | partial = {{#vardefine:level | 1}}
 +
        | penumbral = {{#vardefine:level | 1}}
 +
    }}
 +
}}{{#ifexpr: {{#var:level}} > 0 | {{#var:level}}}} of the
 +
| achievement = [[Eclipse achievement]]
 +
| action = observing {{#ifeq:{{{subtype}}}|annular|an|a}} {{{subtype}}} {{{type}}} eclipse at the [https://geohashing.info/s/{{{date}}}/{{{latitude}}},{{{longitude}}} ({{{latitude}}}, {{{longitude}}}) geohash] on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]]
 +
| image = {{{image|}}}
 +
| expedition = [[{{{date}}} {{{latitude}}} {{{longitude}}}]]
 +
| category = Eclipse achievement
 +
}}
 +
<noinclude>
 +
'''How to use this template:'''
 +
 
 +
&#x007B;{Eclipse
 +
:| latitude = '''latitude''' (required)
 +
:| longitude = '''longitude''' (required)
 +
:| date = '''date (YYYY-MM-DD format)''' (required)
 +
:| subtype = '''see below''' (required)
 +
:| type = '''see below''' (required)
 +
:''| name = '''name of achiever''' (optional)''
 +
:''| image = '''image name''' (optional)''
 +
}}
 +
 
 +
The image name should not include 'Image:' or surrounding braces.
 +
 
 +
{{{subtype}}} {{{type}}} must be one of these combinations (excluding the achievement levels in <span style="color:red">red</span>):
 +
* total solar <span style="color:red">(level 4)</span>
 +
* annular solar <span style="color:red">(level 3)</span>
 +
* partial solar <span style="color:red">(level 2)</span>
 +
* total lunar <span style="color:red">(level 1)</span>
 +
* partial lunar <span style="color:red">(level 1)</span>
 +
* penumbral lunar <span style="color:red">(level 1)</span>
 +
If these combinations are not followed, there will be an error message in the ribbon such as above.
 +
 
 +
The level is automatically determined based on the specified type and subtype.
 +
 
 +
'''Example:'''
 +
<pre>&#x007B;{Eclipse
 +
| latitude = 62
 +
| longitude = 30
 +
| date = 2021-06-10
 +
| subtype = partial
 +
| type = solar
 +
| name = [[User:Kripakko|Kripakko]]
 +
}}</pre> appears as:
 +
 
 +
{{Eclipse
 +
| latitude = 62
 +
| longitude = 30
 +
| date = 2021-06-10
 +
| subtype = partial
 +
| type = solar
 +
| name = [[User:Kripakko|Kripakko]]
 +
}}
 +
 
 +
'''Example:'''
 +
<pre>&#x007B;{Eclipse
 +
| latitude = 37
 +
| longitude = -122
 +
| date = 2005-05-26
 +
| subtype = total
 +
| type = solar
 +
}}</pre> appears as:
 +
 
 +
{{Eclipse
 +
| latitude = 37
 +
| longitude = -122
 +
| date = 2005-05-26
 +
| subtype = total
 +
| type = solar
 +
}}
 +
 
 +
'''Example:'''
 +
<pre>&#x007B;{Eclipse
 +
| latitude = 37
 +
| longitude = -122
 +
| date = 2005-05-26
 +
| subtype = total
 +
| type = lunar
 +
}}</pre> appears as:
 +
 
 +
{{Eclipse
 +
| latitude = 37
 +
| longitude = -122
 +
| date = 2005-05-26
 +
| subtype = total
 +
| type = lunar
 +
}}
 +
 
 +
[[Category:Achievement award templates]]
 +
</noinclude>

Latest revision as of 17:27, 16 April 2024

Eclipse.png
This user achieved level Expression error: Unexpected > operator. of the Eclipse achievement
by observing a {{{subtype}}} {{{type}}} eclipse at the ({{{latitude}}}, {{{longitude}}}) geohash on [[{{{date}}} {{{latitude}}} {{{longitude}}}|{{{date}}}]].

How to use this template:

{{Eclipse

| latitude = latitude (required)
| longitude = longitude (required)
| date = date (YYYY-MM-DD format) (required)
| subtype = see below (required)
| type = see below (required)
| name = name of achiever (optional)
| image = image name (optional)

}}

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

{{{subtype}}} {{{type}}} must be one of these combinations (excluding the achievement levels in red):

  • total solar (level 4)
  • annular solar (level 3)
  • partial solar (level 2)
  • total lunar (level 1)
  • partial lunar (level 1)
  • penumbral lunar (level 1)

If these combinations are not followed, there will be an error message in the ribbon such as above.

The level is automatically determined based on the specified type and subtype.

Example:

{{Eclipse
| latitude = 62
| longitude = 30
| date = 2021-06-10
| subtype = partial
| type = solar
| name = [[User:Kripakko|Kripakko]]
}}

appears as:

Eclipse.png
Kripakko achieved level 2 of the Eclipse achievement
by observing a partial solar eclipse at the (62, 30) geohash on 2021-06-10.


Example:

{{Eclipse
| latitude = 37
| longitude = -122
| date = 2005-05-26
| subtype = total
| type = solar
}}

appears as:

Eclipse.png
This user achieved level 4 of the Eclipse achievement
by observing a total solar eclipse at the (37, -122) geohash on 2005-05-26.


Example:

{{Eclipse
| latitude = 37
| longitude = -122
| date = 2005-05-26
| subtype = total
| type = lunar
}}

appears as:

Eclipse.png
This user achieved level 1 of the Eclipse achievement
by observing a total lunar eclipse at the (37, -122) geohash on 2005-05-26.