Extension:EventCountdown

The EventCountdown extension makes it easy to display upcoming events, possibly showing the number of days until the event. Your event description will be shown up until the day of the event, then it will be automatically hidden.

Installation
Copy the file below into extensions/EventCountdown.php, and add this line to your LocalSettings.php:

Usage
For example:  10-May-2006 until E3 2006

shows (on 15th February 2006):

84 days until E3 2006

When the event arrives, the countdown message will no longer be displayed.

Tags
Both tags use php's strtotime, so they are quite flexible on the format you use to specify the date.

The tag will show its contents only until the date arrives. On that date, and subsequently, it will show nothing. The contents can be wikitext. For example:

Get ready for E3!

The tag is replaced with the number of days until the date. The optional 'in="days"' argument will append "day" or "days" as appropriate.

E3 is 10 May 2005 away.

ToDo

 * Localization ("day"/"days") - if you know how to do this, please consider updating this page.

Source code

 * EventCountdown.php