Extension:Calendar-Wikivoyage

Calendar is an extension that creates a Calendar in pages. This extension was originally from the old Wikivoyage project.

Usage
The Calendar extension implements the following functions:


 * calendar: Creates 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)

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.