Template:Countdown

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:22, 17 October 2024 (Created page with "<includeonly><!-- Initialise vars: -->{{#vardefine:cd_attrs}}{{#vardefine:cd_opts}}<!-- Mutually-exclusive options: -->{{#if:{{{endmsg|}}}|{{#vardefine:cd_attrs|data-end="toggle" data-toggle=".post-countdown{{+=|cd_num|1|echo=1}}"}}}}<!-- -->{{#if:{{{noup|}}}|{{#vardefine:cd_attrs|data-end="stop"}}}}<!-- Additional options: -->{{#if:{{{short|}}}|{{#vardefine:cd_opts|{{#var:cd_opts}} short-format}}}}<!-- -->{{#if:{{{nozeros|}}}|{{#vardefine:cd_opts|{{#var:cd_opts}} no-zer..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template documentation
This documentation is transcluded from Template:Countdown/doc. [edit] [history] [purge]

This template creates a countdown timer, and works only in UTC time (the official wiki-time). The correct usage is as follows:

{{Countdown|[name of month] [number pertaining to day] [year] [time of day in UTC]}}

Therefore,

{{Countdown|January 1 3000 20:00}}

Would create this: January 01 3000 20:00 UTCThis message will be displayed if the timer does not show up (if you do not have JavaScript enabled on your browser, for example).

Options

endmsg

Can be set to an arbitrary message which will be displayed when the countdown expires.

Example:

{{Countdown|August 6 2018 09:06|endmsg=So long, 'Classic!}}

August 06 2018 09:06 UTCThis message will be displayed if the timer does not show up (if you do not have JavaScript enabled on your browser, for example).

noup

If defined, will stop the countdown at zero instead of counting up. (endmsg will take priority.)

Example:

{{Countdown|August 6 2018 09:06|noup=yes}}

August 06 2018 09:06 UTCThis message will be displayed if the timer does not show up (if you do not have JavaScript enabled on your browser, for example).

nomsg

If defined, will hide the default message given (about JavaScript being disabled).

nozeros

If defined, will omit the parts of the time string when they are zero.

Example:

{{Countdown|December 12 2024 15:25:17|nozeros=yes}}

December 12 2024 15:25 UTCThis message will be displayed if the timer does not show up (if you do not have JavaScript enabled on your browser, for example).

nosecs

If defined, will omit the seconds part of the countdown.

Example:

{{Countdown|January 1 3000 20:00|nosecs=yes}}

January 01 3000 20:00 UTCThis message will be displayed if the timer does not show up (if you do not have JavaScript enabled on your browser, for example).

See also