Difference between revisions of "Template:Eclipse"

From Geohashing
(Created page with "Testing...")
 
Line 1: Line 1:
Testing...
+
{{Ribbon
 +
| color = black
 +
| icon = 2021-06-10_62_30_05-eclipse.jpg
 +
| 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>
 +
== Usage ==
 +
 
 +
&#x7B;&#x7B;Kripakko testribbon
 +
:| 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)''
 +
&#x7D;&#x7D;
 +
 
 +
&#x7B;&#x7B;&#x7B;subtype&#x7D;&#x7D;&#x7D; &#x7B;&#x7B;&#x7B;type&#x7D;&#x7D;&#x7D; 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>
 +
or else there will be an error message in the ribbon like above.
 +
 
 +
The level is automatically determined based on the specified type and subtype.
 +
 
 +
== Examples ==
 +
 
 +
{{Kripakko testribbon
 +
| name = [[User:Kripakko|Kripakko]]
 +
| latitude = 62
 +
| longitude = 30
 +
| date = 2021-06-10
 +
| type = solar
 +
| subtype = partial
 +
}}
 +
 
 +
{{Kripakko testribbon
 +
| name = [[User:Kripakko|Kripakko]]
 +
| latitude = 61
 +
| longitude = 28
 +
| date = 1990-07-22
 +
| type = solar
 +
| subtype = total
 +
}}
 +
 
 +
{{Kripakko testribbon
 +
| name = [[User:Kripakko|Kripakko]]
 +
| latitude = 62
 +
| longitude = 29
 +
| date = 2018-07-27
 +
| type = lunar
 +
| subtype = total
 +
}}
 +
 
 +
 
 +
</noinclude>

Revision as of 20:59, 14 April 2024

2021-06-10 62 30 05-eclipse.jpg
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}}}]].

Usage

{{Kripakko testribbon

| 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)

}}

{{{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)

or else there will be an error message in the ribbon like above.

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

Examples

Template:Kripakko testribbon

Template:Kripakko testribbon

Template:Kripakko testribbon