We continue to develop resources related to the COVID-19 pandemic. See COVID-19 initiatives on Appropedia for more information.

Changes

Jump to navigation Jump to search

Template:Countdown/doc

1,438 bytes added, 22:55, 18 February 2013
→‎Usage: if event is in past or in progress.
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.
 
'''Note: Time is in GMT (UTC).''' Adjust the time according, and date if necessary. [http://timeanddate.com/ timeanddate.com] is useful for this.
=== Simple Countdown Clock ===
<pre>
{{countdown
|year = 99992016 |month = 12 |day = 114 |event = unknown startsevent
}}
</pre>
{{countdown
|year = 99992016 |month = 12 |day = 114 |event = unknown startsevent}} ==== Notice for a finished event ====  '''Default notice''': If the event is in the past, it will look like this: {{countdown |year = 2012 |month = 2 |day = 14 |event = unknown event
}}
 
 
'''Customized notice''': If you want to customize the notice for the finished event, use ''eventend'' - e.g.:
 
<pre>{{countdown
|year = 2012
|month = 2
|day = 14
|event = unknown event
|eventend = unknown has finished!
}}</pre>
 
which creates:
 
{{countdown
|year = 2012
|month = 2
|day = 14
|event = unknown event
|eventend = unknown has finished!
}}
 
=== Advanced Countdown Clock ===
This type of countdown clock is suitable for events with a duration.It will display a fixed message during the event, defined by ''eventstart.'' If you want the countdown to happen during the event (e.g. how many days left in a fundraiser) then define the deadline as the eventstart, with duration 0. (Or use the simple version above.) Note you ''must'' use whole numbers for time values - you can't use, for example, "1:18". Use the ''minute'' and ''second'' parameters if needed. '''Duration is in seconds'''. This may be expressed as multiples, e.g. '''30*60''' is 30 minutes, and '''2*60*60''' is 2 hours. Just put in the numbers - no units. E.g. an event starting at the beginning of 2013, with a duration of 20 years:
<pre>
{{countdown
|year = 99992013
|month = 1
|day = 1
|second = 0
|event = unknown starts
|duration = 10020*365*24*60*60
|eventstart = unknown has started
|eventend = unknown has ended
</pre>
 This event is currently in progress. If you type in the above, something like the following will appear.:
{{countdown
|year = 99992013
|month = 1
|day = 1
|hour = 0
|minuite minute = 0
|second = 0
|event = unknown starts
|duration = 10020*365*24*60*60
|eventstart = unknown has started
|eventend = unknown has ended
}}
 
<includeonly>
</includeonly>

Navigation menu