Template:Countdown/doc

From Wikimania

Notes[edit source]

Please note the following important points before using this template.

The time on this countdown clock is GMT (UTC+0)

  • if the event is held in more than a year, the number of years and everything below will be shown
  • if the event is held in more than a week, the number of weeks and everything below will be shown
  • if the event is held in more than 24 hours, the number of days and everything below will be shown
  • if the event is held within 24 hours, the number of hours left and everything below will be shown
  • if the event is held within 1 hour, the number of minutes left and the number of seconds left will be shown
  • if the event is held within 1 minute, the number of seconds left will be shown

Notes for translators:

The text displayed when timer reaches zero is specified in Module:Countdown. If you want to set the text for your language, please add an entry to the alreadyStarted table in the beginning of the module, in a similar way to other already listed languages.

The labels like 2 minutes and 40 seconds are loaded from MediaWiki messages. If you don't see them translated, though, please ask an interface administrator or administrator to ensure that there exists a subpage of MediaWiki:lang for your language code.

Usage[edit source]

Editors can use this template as a countdown clock for a lot of different events. The following can show you how to use this template.

Simple Countdown Clock[edit source]

This type of countdown clock is suitable for events with no duration.

{{countdown
 |year  = 2024
 |month = 04
 |day   = 15
}}

If you type in the above, something like the following will appear.

2 weeks, 2 days, 15 hours, 33 minutes and 5 seconds (Purge)

Advanced Countdown Clock[edit source]

This type of countdown clock gives more precise control over the time when the event starts and allows you to provide a message to be displayed when the event begins (instead of a default one).

{{countdown
 |year           = 2027
 |month          = 4
 |day            = 15
 |hour           = 19
 |minute         = 40
 |second         = 0
 |alreadystarted = Yay! It started!
}}

If you type in the above, something like the following will appear.

3 years, 2 weeks, 2 days, 17 hours, 45 minutes and 29 seconds (Purge)

No description.

Template parameters

ParameterDescriptionTypeStatus
yearyear

no description

Numberrequired
monthmonth

no description

Numberrequired
dayday

no description

Numberrequired
hourhour

no description

Numberoptional
minuteminute

no description

Numberoptional
secondsecond

no description

Numberoptional
alreadystartedalreadystarted

no description

Lineoptional