Extension:Calendar (Shane) extended

With this script I added functionality to the calendar similar to the phpwiki calendar:
 * every day is a link to a page. When you click that link, you automatically start editing that page. (current day is marked in bold, days that have an event are underlined)
 * on bottom of the calendar, all events (days that are edited) are summed up + their content is shown
 * the calendar defaults to the "current month"
 * You can follow links to next or previous months

I changed first day of the week from sunday -> monday, this is easily changed:
 * change order in $wday_names
 * add/change this code in function dayOfWeek($month,$year) :

No doubt this is code is quite ugly, and not very portable(language,html,css..?) but it works mighty fine here, maybe someone can use it too...

This script now works on MediaWiki 1.9.x and should work on all previous versions from 1.6 upwards. Micrology 19:37, 6 May 2007 (UTC)

Install
Create a file called 'calendar_extension.php' in your  directory, and add code below. Then simply add the following line to the end of your  file:

and you are ready to go! Go to the sandbox and see if it works!

calendar_extension.php
';

/**               * Show events for this month **/               $output .= $viewEvents;

return $output; } } ?>