Calendar extension

License
GPL.

Usage
The Calendar extension implements the following functions:


 * calendar: Creats a table showing the monthly calendar.
 * Example for application:


 * Place-holders for links:

$a - abbreviated weekday name $A - full weekday name $b - abbreviated month name $B - full month name $d - day of the month, range 01 to 31 $D - day of the month, range 1 to 31 $e - day of the month, range ' 1' to '31' $m - month as a decimal number, range 01 to 12 $M - next month as a decimal number, range 01 to 12 $n - abbreviated month name of the next month $N - full month name of the next month $o - year of the next month as a decimal number without a century, range 00 to 99 $O - year of the next month as a decimal number including the century $p - abbreviated month name of the previous month $P - full month name of the previous month $q - year of the previous month as a decimal number without a century, range 00 to 99 $Q - year of the previous month as a decimal number including the century $R - previous month as a decimal number, range 01 to 12 $y - year as a decimal number without a century, range 00 to 99 $Y - year as a decimal number including the century $% - Dollar sign (use it if necessary)

Installing Calendar
Download the Calendar extension from the SVN repository.

Copy Calendar.php and Calendar.css into the Calendar folder in the extensions folder of your MediaWiki installation. Then add the following line to your LocalSettings.php file (near the end):

Used style classes
In the Calendar directory you will find the file Calendar.css. It can be overwritten in Common.css or Monobook.css.


 * class="calendar" -- for the table as a whole
 * class="calLeft" -- left floating
 * class="calRight" -- right floating
 * class="prevNext" -- for previous and next links
 * class="calTitle" -- for the table header
 * class="sundays" -- highlighting for sundays
 * class="today" -- highlighting for the date of today
 * class="highlighted" -- additional highlighted dates

Known Problems
It is not possible to convert non-ASCII characters in month names to upper case characters. ucfirst works only with ASCII characters but not with other Unicode characters.

de:Vorlage:Kalender it:Template:Calendario