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 = 2021-06-10_62_30_05-eclipse.jpg
+
| 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>
== Usage ==
+
'''How to use this template:'''
  
&#x7B;&#x7B;Kripakko testribbon
+
&#x007B;{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)''
&#x7D;&#x7D;
+
}}
 +
 
 +
The image name should not include 'Image:' or surrounding braces.
  
&#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>):
+
{{{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>
or else there will be an error message in the ribbon like above.
+
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.
  
== Examples ==
+
'''Example:'''
 +
<pre>&#x007B;{Eclipse
 +
| latitude = 62
 +
| longitude = 30
 +
| date = 2021-06-10
 +
| subtype = partial
 +
| type = solar
 +
| name = [[User:Kripakko|Kripakko]]
 +
}}</pre> appears as:
  
{{Kripakko testribbon
+
{{Eclipse
| name = [[User:Kripakko|Kripakko]]
 
 
| latitude = 62
 
| latitude = 62
 
| longitude = 30
 
| longitude = 30
 
| date = 2021-06-10
 
| date = 2021-06-10
 +
| subtype = partial
 
| type = solar
 
| type = solar
| subtype = partial
+
| name = [[User:Kripakko|Kripakko]]
 
}}
 
}}
  
{{Kripakko testribbon
+
'''Example:'''
| name = [[User:Kripakko|Kripakko]]
+
<pre>&#x007B;{Eclipse
| latitude = 61
+
| latitude = 37
| longitude = 28
+
| longitude = -122
| date = 1990-07-22
+
| 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
 
}}
 
}}
  
{{Kripakko testribbon
+
'''Example:'''
| name = [[User:Kripakko|Kripakko]]
+
<pre>&#x007B;{Eclipse
| latitude = 62
+
| latitude = 37
| longitude = 29
+
| longitude = -122
| date = 2018-07-27
+
| 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

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.