]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/calendar.mdwn
fb3cfb130444a7fd56dfda7df541b707c2cb03e6
[git.ikiwiki.info.git] / doc / plugins / calendar.mdwn
1 [[!template id=plugin name=calendar author="[[ManojSrivastava]]"]]
2 [[!tag type/widget]]
4 This plugin provides a [[ikiwiki/directive/calendar]] [[ikiwiki/directive]].
5 The directive displays a calendar, similar to the typical calendars shown on
6 some blogs. 
8 The [[ikiwiki-calendar]] command is used to force generating year and month
9 pages from templates (overriding the existing ones).
11 ## Setup options
13 * `archivebase` - Default value for [[ikiwiki/directive/calendar]] directive
14   option of the same name.
15 * `archive_pagespec` - [[ikiwiki/PageSpec]] of pages to include in the
16   archives, if option `calendar_autocreate` is on. It defaults to `*`.
17 * `calendar_autocreate` - Control whether new archive pages are created as
18   needed. It defaults to being done only if option `archivebase` is set.
19 * `calendar_fill_gaps` - If set (and `calendar_autocreate` is set as well),
20   build calendar pages of emty years and months (but does not build pages older
21   than the older page, and younger than the younger page of the pagespec). If
22   not, thoses empty calendar pages will be skipped.
24 ## CSS
26 The output is liberally sprinkled with classes, for fine grained CSS
27 customization.
29 * `month-calendar` - The month calendar as a whole.
30 * `month-calendar-head` - The head of the month calendar (ie,"March").
31 * `month-calendar-arrow` - Arrow pointing to previous/next month.
32 * `month-calendar-day-head` - A column head in the month calendar (ie, a
33   day-of-week abbreviation).
34 * `month-calendar-day-noday`, `month-calendar-day-link`,
35   `month-calendar-day-nolink`, `month-calendar-day-future`,
36   `month-calendar-day-this-day` - The day squares on the month calendar,
37   for days that are not in the month (before or after the month itself), that
38   don't have links, that do have links, that are in the future, or are that
39   are the current day, respectively.
40 * `Sunday`, `Monday`, `Tuesday`, ... - Each day square is also given a class
41   matching its  (localised) day of week, this can be used to highlight
42   weekends.
43 * `year-calendar` - The year calendar as a whole.
44 * `year-calendar-head` - The head of the year calendar (ie, "2007").
45 * `year-calendar-arrow` - Arrow pointing to previous/next year.
46 * `year-calendar-subhead` - For example, "Months".
47 * `year-calendar-month-link`, `year-calendar-month-nolink`,
48   `year-calendar-month-future`, `year-calendar-this-month` - The month
49   squares on the year calendar, for months with stories,
50   without, in the future, and currently selected, respectively.