Template:Countdown/doc: Difference between revisions

From Habbox Wiki
Jump to navigation Jump to search
Cameron446: (talk | contribs)
Cameron446: (talk | contribs)
Line 26: Line 26:
  |month = 04
  |month = 04
  |day  = 15
  |day  = 15
  |event = Branch Network Awards Night
  |event = Habbox
}}
}}
</pre>
</pre>
Line 36: Line 36:
  |month = 04
  |month = 04
  |day  = 15
  |day  = 15
  |event = Branch Network Awards Night
  |event = Habbox
}}
}}



Revision as of 12:08, 26 March 2021

Documentation

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 duration=3600 for a one-hour event. Alternatively, duration and duration unit=//unit// can be used in unison (e.g., duration=1|duration unit=year).

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.

{{countdown
 |year  = 2020
 |month = 04
 |day   = 15
 |event = Habbox
}}

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

Habbox has already ended. (refresh)

Advanced Countdown Clock

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

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

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

unknown has ended (refresh)


No description.

Template parameters

ParameterDescriptionTypeStatus
yearyear

no description

Unknownoptional
monthmonth

no description

Unknownoptional
dayday

no description

Unknownoptional
hourhour

no description

Unknownoptional
minuteminute

no description

Unknownoptional
secondsecond

no description

Unknownoptional
eventevent

no description

Unknownoptional
durationduration

no description

Unknownoptional
eventstarteventstart

no description

Unknownoptional
eventendeventend

no description

Unknownoptional