From QED
There are currently three main options for including calendars on QED pages:
- using one of the pre-defined calendar templates;
- embedding a (possibly private) Google Calendar on a page;
- using the calendar tag.
This page is primarily about the first of these options.
Here is an example produced using one of the QED templates. These templates make it simple to edit the daily entries for a calendar.
How To
First one must select the appropriate template. If the first day of the month falls on a Monday, then
Template:Calendar for Monday would be used, and similarly for other months.
The basic syntax for producing a calendar is illustrated by the following:
{{Calendar for Monday
| title='''February 2010'''
| days = 28
| 1 = Text for day 1
| 12 = Text for day 12
}}
All the parameters are optional, but if the month has fewer than 31 days, then the parameter "days=NN" must be specified, where NN is the number of days in the month.
Some other points to note:
- Since the "|" and "=" characters play a special syntactic role, one must be careful if a parameter value contains either or both of these characters. One workaround is as follows:
- use {{!}} for the "pipe" ("|") character
- use {{eq}} for the "equals" ("=") character
Here is the wikitext used to produce the above calendar for October 2009:
{{Calendar for Thursday
| title='''October 2009'''
| width=75%
| rowheight=5em
| 3 = [[wikipedia:Succoth|Succoth]]
| 12 = [[wikipedia:Columbus Day|]]
| 31 = [[Image:Halloween150.png|50px]]
}}
As usual in wikitext, when the ":" character appears in column 1, it indents the text.
Further details about the QED calendar templates can be found at Template:Calendar for Monday.
Hyperlinks
The standard methods for creating links from entries in a calendar can be used, as documented on Help:Hyperlinks.
In particular, Template:anchor can be used to create link targets within a page, including within a calendar itself.
This may be useful when a page contains multiple calendars.
CSS Classes
The event calendar templates use the following CSS classes:
- CalendarForMonth
- CalendarForMonthDays (the row of column headers)
- CalendarForMonthSunday (the column header for Sunday)
- CalendarForMonthSaturday (the column header for Saturday)
- CalendarForMonthRow (a row of seven days)
- CalendarForMonthEntry
Editing Event Calendars using the Rich Text Editor
A Rich Text Editor is currently available on QED on a trial basis. This editor allows WYSIWYG-like editing of event calendars. For further details, see Help:Editing Event Calendars.