Help:Countdown

From Stargate Worlds Wiki (SGW)

Jump to: navigation, search

This 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.

For example: <pre> <eventcountdown date="10-May-2006"><daysuntil in="days">10-May-2006</daysuntil> until [http://www.e3expo.com E3 2006]</eventcountdown> </pre>

shows (on 15th February 2006):

84 days until E3 2006

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

[edit] Tags

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

[edit] <eventcountdown>

The <eventcountdown> 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:

<pre> <eventcountdown date="10-May-2006">Get ready for '''E3'''!</eventcountdown> </pre>

[edit] <daysuntil>

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

<pre> E3 is <daysuntil in="days">10 May 2005</daysuntil> away. </pre>

Personal tools
Ran by