Template:EventCountdown: Difference between revisions

From NOISZ Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{countdown|}}} | <span class="countdown" data-options="short-format" style="display:none;" data-end="callback" data-callback="selfNullEdit">Next event: {{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}EventCountdown | Next event: {{#time:F d, Y H:i T|@{{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}
<includeonly>{{#if: {{{countdown|}}} | Next event: {{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}| Next event: {{#expr:{{EventTimeCountdownUnix|cyclestart={{{cyclestart|}}}|eventstyle={{{eventstyle|LUNATIC MAINFRAME}}}}} + {{#time:U|now}}}}}}
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>

Revision as of 05:30, 10 June 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}}

| Next event: 1750634299}} }}