Template:Countdown/doc

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:22, 17 October 2024 (Created page with "----- {{Documentation}} This template creates a countdown timer, and works only in UTC time (the official wiki-time). The correct usage is as follows: <pre>{{Countdown|[name of month] [number pertaining to day] [year] [time of day in UTC]}}</pre> Therefore, <pre>{{Countdown|January 1 3000 20:00}}</pre> Would create this: {{Countdown|January 1 3000 20:00}} ==Options== ===endmsg=== Can be set to an arbitrary message which will be displayed when the countdown expires...."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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|December 12 2024 21:11:54|nozeros=yes}}

December 12 2024 21:11 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