Extension:Countdown

Countdown is a MediaWiki 1.5, and up, extension that allows a wiki page to display one or more "live" countdowns (using DHTML) to a specified date. It is designed to allow the countdown text to be formatted using wiki syntax. Once it is installed you invoke it via the  countdown  tag which accepts two arguments; Withing the countdown opening and closing tags you'll have four extra markups you can use to place the countdown components: See below for some usage examples.
 * 1) time - this is the target time to count down to.
 * 2) name (optional) - used when there are more than one countdown on a page
 *  - days to target time
 *  - hours to target time
 *  - minutes to target time
 *  - seconds to target time

Caveats:
 * The "time" attribute, while pretty flexible, must be written in some standard parseable form (parseable by javascript). Use the examples below and modify if you're not familiar with what formats that work.

-- PEZ 20:32, 24 November 2005 (UTC)

Installation
Place the following code at the bottom of LocalSettings.php:

Demo
See http://halowiki.net/p/Help:Countdown_Extension for some examples on a site where the extension is installed.

Example: Countdown to New Year 2011

 * Days: 
 * Hours: 
 * Minutes: 
 * Seconds: 

Example: Countdown to 2009 Christmas Eve in Sweden
 Santa will arrive in  days,  hours,  minutes and  seconds. Have you been a good boy/girl?  Santa will arrive in  days, <H> hours, <M> minutes. Have you been a good boy/girl?

Revisions

 * v1.2 - October 24, 2007 - made the code a little leaner. Fixed a bug in instantiation.
 * v1.1 - October 16, 2007 - incorporated javascript into PHP file for better maintainability. Made the "name" parameter optional
 * v1.0 - October 14, 2007 - added info so that Special:Version displays correctly for this extension
 * ?? - original version