Template:Countdown

From RuneRealm Wiki
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 13 2024 12:42:16|nozeros=yes}}

December 13 2024 12:42 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