Template:EventCountdown: Difference between revisions

From NOISZ Wiki
(fuyutsuki. let us begin. (switching event countdown back to old timer style))
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{countdown|}}} | <span class="countdown" data-options="short-format" style="display:none;" data-end="callback" data-callback="selfNullEdit">Starts: <span class="countdowndate">{{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}</span></span> | Starts: {{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}
<includeonly>{{#if: {{{countdown|}}} | <span class="countdown" data-options="short-format" style="display:none;" data-end="callback" data-callback="selfNullEdit">Starts: <span class="countdowndate">{{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}</span></span> | Starts: {{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}
}}
}}
{{ #widget: CountdownTimer }}
{{#widget:CountdownTimer}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 8: Line 8:
Example:
Example:


<code><nowiki>{{EventCountdown}}</nowiki></code>
<pre><nowiki>
{{EventCountdown
|eventstyle=Attitude Mint
|cyclestart=2025-12-12 04:53
|countdown=true
}}
</nowiki></pre>


{{EventCountdown}}
Yields:
 
{{EventCountdown|eventstyle=Attitude Mint|cyclestart=2025-12-12 04:53|countdown=true}}
[[Category:Templates]]
[[Category:Templates]]
{{NOISZ Timer Flowchart}}
</noinclude>
</noinclude>

Latest revision as of 21:38, 13 December 2025


This counts down the time until the recurrent event for a given style, and gives a differing output format depending on how many parameters are input.

Example:

{{EventCountdown
|eventstyle=Attitude Mint
|cyclestart=2025-12-12 04:53
|countdown=true
}}

Yields:

Timer Templates

Template:EventCycleTime Template:CurrentNoiszSLEvent
Template:CurrentSyntheticEvent
Template:EventTimeLeftUnix Template:EventTimeLeft Template:NOISZ SL Events
Template:NOISZ SL Events Vertical
Template:NOISZ SL Recursive Events
Template:NOISZ SL Synthetic Events
Template:EventTimeCountdownUnix Template:EventCountdown