Template:Countdown/doc

From RuneRealm Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:Countdown.
It contains usage information, categories, and other content that is not part of the original template page.

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|November 24 2024 20:25:36|nozeros=yes}}

November 24 2024 20: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