Template:EventTimeCountdownUnix: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) No edit summary |
RiceEmpress (talk | contribs) (added documentation) |
||
| Line 17: | Line 17: | ||
=Documentation= | =Documentation= | ||
This counts down the time until an event, assuming a standard 10-week recurrent event cycle. | This counts down the time until an event, assuming a standard 10-week recurrent event cycle. | ||
[[Template:EventTimeCountdownUnix|EventTimeCountdownUnix]] looks at where we are in the 10-week cycle and accordingly counts down to the next 2-week marker using a case/switch. The "if time > 0" condition in there is to deal with the possibility that a date in the future was set to determine the 10-week cycle. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
{{NOISZ Timer Flowchart}} | {{NOISZ Timer Flowchart}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:15, 5 February 2026
Documentation
This counts down the time until an event, assuming a standard 10-week recurrent event cycle.
EventTimeCountdownUnix looks at where we are in the 10-week cycle and accordingly counts down to the next 2-week marker using a case/switch. The "if time > 0" condition in there is to deal with the possibility that a date in the future was set to determine the 10-week cycle.
Timer Templates