Extension:EmbedNews

What can this extension do?
This page is still in working progress and files are still in working progress

Allows the latest event to be displayed on a wiki page. Events are stored on a wiki page where the headings is the date for when this event is to be shown. The upcoming or current event will be displayed on the page.

Usage
To start displaying news on the page:

news

Where news inside the tags is the news page. If the page does not exist yet, the extension will provide a link to create the page.

The news page is structured with the date as the title and the news for that date is written below. Example below

23 November 2007
Longer dates work

2007-11-15
Short dates are picked up

2007-11-10
Wiki links work as well

Quite a few date representations can be detected by the extension.

For the regex minded person the following is used to find dates in a wiki page:

/==[\[]*([^\]\n]*)[\]]*==/

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

Disabling Caching
This extension requires that caching is disabled on the page that the current news is to be displayed on.

Install the following extenion to disable caching on a single page.

Extension:MagicNoCache

You would then do the following: __NOCACHE__ news

Enabling Calendar (Optional)
Currently, a patch to a file is needed to enable the calendar. Inside your skin file, Monobook.php for example, paste the following line into where you wish to see the calendar.

An already patched Monobook.php file is provided to install the calendar, remember to back up original!