Difference between revisions of "Template:Eclipse"
From Geohashing
(Created page with "{{Ribbon | color = black | icon = eclipse.png | user = {{{name|}}} | customtitle = achieved level {{#switch:{{{type}}} | solar = {{#switch:{{{subtype}}} | total =...") |
|||
Line 1: | Line 1: | ||
{{Ribbon | {{Ribbon | ||
| color = black | | color = black | ||
− | | icon = | + | | icon = eclipse.png |
| user = {{{name|}}} | | user = {{{name|}}} | ||
| customtitle = achieved level {{#switch:{{{type}}} | | customtitle = achieved level {{#switch:{{{type}}} | ||
Line 19: | Line 19: | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
| expedition = [[{{{date}}} {{{latitude}}} {{{longitude}}}]] | | expedition = [[{{{date}}} {{{latitude}}} {{{longitude}}}]] | ||
− | |||
| category = Eclipse achievement | | category = Eclipse achievement | ||
− | + | }} | |
− | }}<noinclude> | + | <noinclude> |
− | + | '''How to use this template:''' | |
− | &# | + | {{Eclipse |
:| latitude = '''latitude''' (required) | :| latitude = '''latitude''' (required) | ||
:| longitude = '''longitude''' (required) | :| longitude = '''longitude''' (required) | ||
Line 33: | Line 32: | ||
:''| name = '''name of achiever''' (optional)'' | :''| name = '''name of achiever''' (optional)'' | ||
:''| image = '''image name''' (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> | * total solar <span style="color:red">(level 4)</span> | ||
* annular solar <span style="color:red">(level 3)</span> | * annular solar <span style="color:red">(level 3)</span> | ||
Line 42: | Line 43: | ||
* partial 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> | * 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. | The level is automatically determined based on the specified type and subtype. | ||
− | == | + | '''Example:''' |
+ | <pre>{{Eclipse | ||
+ | | latitude = 62 | ||
+ | | longitude = 30 | ||
+ | | date = 2021-06-10 | ||
+ | | subtype = partial | ||
+ | | type = solar | ||
+ | | name = [[User:Kripakko|Kripakko]] | ||
+ | }}</pre> appears as: | ||
− | {{ | + | {{Eclipse |
− | |||
| latitude = 62 | | latitude = 62 | ||
| longitude = 30 | | longitude = 30 | ||
| date = 2021-06-10 | | date = 2021-06-10 | ||
+ | | subtype = partial | ||
| type = solar | | type = solar | ||
− | | | + | | name = [[User:Kripakko|Kripakko]] |
}} | }} | ||
− | { | + | '''Example:''' |
− | + | <pre>{{Eclipse | |
− | | latitude = | + | | latitude = 37 |
− | | longitude = | + | | longitude = -122 |
− | | date = | + | | date = 2005-05-26 |
+ | | subtype = total | ||
| type = solar | | type = solar | ||
+ | }}</pre> appears as: | ||
+ | |||
+ | {{Eclipse | ||
+ | | latitude = 37 | ||
+ | | longitude = -122 | ||
+ | | date = 2005-05-26 | ||
| subtype = total | | subtype = total | ||
+ | | type = solar | ||
}} | }} | ||
− | { | + | '''Example:''' |
− | + | <pre>{{Eclipse | |
− | | latitude = | + | | latitude = 37 |
− | | longitude = | + | | longitude = -122 |
− | | date = | + | | date = 2005-05-26 |
+ | | subtype = total | ||
| type = lunar | | type = lunar | ||
+ | }}</pre> appears as: | ||
+ | |||
+ | {{Eclipse | ||
+ | | latitude = 37 | ||
+ | | longitude = -122 | ||
+ | | date = 2005-05-26 | ||
| subtype = total | | subtype = total | ||
+ | | type = lunar | ||
}} | }} | ||
− | + | [[Category:Achievement award templates]] | |
</noinclude> | </noinclude> |
Latest revision as of 17:27, 16 April 2024
This user achieved level Expression error: Unexpected > operator. of the Eclipse achievement
|
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:
Kripakko achieved level 2 of the Eclipse achievement
|
Example:
{{Eclipse | latitude = 37 | longitude = -122 | date = 2005-05-26 | subtype = total | type = solar }}
appears as:
This user achieved level 4 of the Eclipse achievement
|
Example:
{{Eclipse | latitude = 37 | longitude = -122 | date = 2005-05-26 | subtype = total | type = lunar }}
appears as:
This user achieved level 1 of the Eclipse achievement
|