BETA webtags: Difference between revisions

741 bytes added ,  11:03, 10 February 2019
m (→‎Records: copying edit lost when Wiki moved)
Line 395: Line 395:


==Day/Night/Sun/Moon==
==Day/Night/Sun/Moon==
 
These are updated each hour to refer to current time-zone
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 401: Line 401:
!style="width:600px" | Function
!style="width:600px" | Function
|-
|-
|colspan="2"|no new tags
|<#MoonAge>
|Current '''approximate''' age of the Moon in days (0-29)
b3046 adds the 'dp' and 'rc' parameters
Supports an optional 'dp' parameter, if supplied the result is returned to the specified number of decimal places. E.g
<#MoonAge> gives "11"
<#MoonAge dp=3> gives "11.234"
 
If the "dp" parameter is supplied, then also supplying "rc=y" in addition will cause any decimal comma to be converted to a decimal point.
|-
|<#MoonPercent>
|Current percentage of moon visible (negative value indicates 'waning')
b3046 adds the 'dp' and 'rc' parameters as <#MoonAge> above
|-
|<#MoonPercentAbs>
|Current percentage of moon visible (always positive)
b3046 adds the 'dp' and 'rc' parameters as <#MoonAge> above
|}
|}