Template:EventCountdown: Difference between revisions

From NOISZ Wiki
oldwiki>RiceEmpress
(adding selfNullEdit - from here tweaks will be made to get it working like it did during testing)
 
(fuyutsuki. let us begin. (switching event countdown back to old timer style))
 
(10 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:
 
<code><nowiki>{{EventCountdown}}</nowiki></code>
 
{{EventCountdown}}
[[Category:Templates]]
</noinclude>

Latest revision as of 16:53, 23 November 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}}

Starts: December 03, 2025 07:27 UTC