Changes

Jump to navigation Jump to search
m
Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB
{{Documentation subpage}}
{{lua|Module:Countdown}}

== Notes ==

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

Duration is in seconds, so <kbd>duration=3600</kbd> for a one-hour event. Alternatively, duration and <kbd>duration unit=//unit//</kbd> can be used in unison (e.g., <kbd>duration=1|duration unit=year</kbd>).

This template should not be used in articles per [[MOS:TIME]] and [[MOS:DATED]].

== Usage ==

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 ===

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

<pre>
{{countdown
|year = 2016
|month = 08
|day = 15
|event = Branch Network Awards Night
}}
</pre>

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

{{countdown
|year = 2016
|month = 08
|day = 15
|event = Branch Network Awards Night
}}

=== Advanced Countdown Clock ===

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

<pre>
{{countdown
|year = 2022
|month = 4
|day = 15
|hour = 19
|minute = 40
|second = 0
|event =
|duration = 21
|eventstart = unknown has started
|eventend = unknown has ended
}}
</pre>

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

{{countdown
|year = 2022
|month = 4
|day = 15
|hour = 19
|minute = 40
|second = 0
|event =
|duration = 21
|eventstart = unknown has started
|eventend = unknown has ended
}}

<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Date-computing templates]]
}}</includeonly>
Anonymous user

Navigation menu