Template:EventCountdown: Difference between revisions

From NOISZ Wiki
m (1 revision imported: yolo import of unofficial noisz wiki pt2)
No edit summary
 
(11 intermediate revisions by 4 users 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}}}}}}
}}</includeonly>
}}
{{#widget:CountdownTimer}}
</includeonly>
<noinclude>
<noinclude>
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.</noinclude>
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:
 
<pre><nowiki>
{{EventCountdown
|eventstyle=Attitude Mint
|cyclestart=2025-12-12 04:53
|countdown=true
}}
</nowiki></pre>
 
Yields:
 
{{EventCountdown|eventstyle=Attitude Mint|cyclestart=2025-12-12 04:53|countdown=true}}
[[Category:Templates]]
{{NOISZ Timer Flowchart}}
</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