Template:EventCountdownTest: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) (Created page with "<includeonly>{{ #if: {{{ start | }}} | {{ #vardefine: utc_timestamp_start | {{#time: U | {{{ start | }}} }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | {{{ end | }}} }} }} | {{ #vardefine: utc_timestamp_start | {{#time: U | {{{ 1 | }}} }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }} }}{{ #vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }} }}{{ #vardefine: jst_timestamp_...") |
RiceEmpress (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{ | <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}}}}}} | ||
#if: {{{ | }}</includeonly> | ||
| | <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]] | |||
}} | |||
}} | |||
| | |||
| | |||
| | |||
| | |||
}}</includeonly><noinclude> | |||
{{EventCountdown | |||
{{EventCountdown | |||
</noinclude> | </noinclude> | ||
{{ #widget: CountdownTimer }} | |||
Latest revision as of 16:38, 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 05:10 UTC