Small calendar with days linking to wiki pages


This plugin inserts a small calendar where each day links to a wiki page whose name matches the wiki-page-format argument. The current day is highlighted, and days with Milestones are marked in bold. This macro makes heavy use of CSS for formatting.

It can be used for maintaining a calendar of meeting minutes or any situation where the wiki page name is based on the date. It is designed to work well with the Blog macro, so if a previous month is selected from the Blog, the calendar will display the selected month.

Non-existent pages link directly to the edit form for the requested page to make it easy to add new meeting minutes pages. It uses the time format syntax from the Python time module's strftime method. Resolution of relative wiki paths is available.

Check the documentation for WikiTicketCalendarMacro to learn about its option to preselect a wiki page template for new pages and much more. The macro WikiTicketCalendarMacro, once forked off from this macro, has been re-integrated. Both macros are available in wikicalendar-2.0.0 and later.

New: Since wikicalendar-2.1 both macros are able to display week numbers. Just add a 'w' to your macro arguments (argument position doesn't matter). With Babel installed you even get Sunday as first day of the week and week numbers localized according to your browser settings.

Bugs/Feature Requests

Existing bugs and feature requests for WikiCalendarMacro are here.

If you have any issues, create a new ticket.


16 / 18


12 / 15


6 / 6


Download the zipped source from here.


You can check out the source for WikiCalendarMacro from Subversion here or browse the source with Trac.


Requires Trac >= 0.11.3. After [11741] you should be able to use the plugin even with Trac 0.11.

If you experience strange results (see #8818 for an example), you may want to force CSS definitions into the HTML page with the following option:

internal_css = True
ticket.due_field = due_close
ticket.due_field.format = %y-%m-%d

Available since [11746], WikiTicketCalendarMacro options supported since [11749].

To upgrade this plugin, rename your old [wikiticketcalendar] section, and the required option name change --> will be done automatically for you.



[[WikiCalendar([year, [month, [show-buttons, [wiki-page-format]]]])]]


  1. year (4-digit year) - defaults to * (current year)
  2. month (2-digit month) - defaults to * (current month)
  3. show-buttons (boolean) - defaults to true
  4. wiki-page-format (string) - defaults to %Y-%m-%d

Relative wiki paths are supported as well, which is especially relevant if you later change position of the wiki page containing the WikiCalendarMacro relative to the stack of related wiki pages:


WikiCalendarMacro v2.1 with week numbers for different preferred locales: English (default), French, Spanish, German, Hungarian, Russian, Hebrew and Japanese

Screenshots using [[WikiCalendar(w)]] (for week numbers) with different browser locale settings.

About i18n/l10n support

These macros are prepared for localization (tooltip customization in calendar navigation and localized macro description).

But English message texts are still the (POSIX) default. If this isn't your preferred language, you can

  1. check if it's already available from the Trac plugin l10n project at Transifex or
  2. do it yourself, see the l10n cookbook page for Trac plugins for more details.

Contributing your translation is highly appreciated.
You could send it to the plugin's maintainer or contribute to Trac plugin l10n project via Transifex:

Top translations: Trac_Plugin-L10N » wikicalendar

Kindly provided by

Preparing the plugin from source requires no additional steps for compiling message catalog files. Only to include translations marked as # fuzzy by the translator, you'll want to do a manual message catalog compilation with the extra -f argument before packaging:

cd wikicalendarmacro/
python ./ compile_catalog -f
python ./ bdist_egg

Complaints about missing locale directory are often a side-effect of failure to compile any message catalog for inclusion into Python egg, hence the whole path is missing. Due to a known Trac issue, Babel has to be installed prior to Trac, to get it all working as expected.

Again, for more details see the l10n cookbook page for Trac plugins.

Recent Changes

15113 by rjollos on 2015-12-11 06:04:58
2.1.1dev: Remove tag_svn_revision

The attribute isn't supported in setuptools >= 10.

Refs #9568.

15112 by rjollos on 2015-12-11 06:02:47
2.1.1dev: Add additional mock classes for Trac < 0.12

Patch by bof.

Fixes #9568.

14364 by hasienda on 2015-01-11 09:27:06
WikiCalendarMacro: Add missing import-fallback for format_datetime, refs #12133.

This issue on Trac installations without Babel as well as the patch have been
kindly contributed by Nick Piper, thank you.



Author: mgood
Maintainer: Steffen Hoffmann
Contributors: JoshuaH, Alexander Klimetschek, YouLi, fjruiz, jun66j5, rjollos

Last modified 4 months ago Last modified on Jan 21, 2016, 7:39:53 AM

Attachments (2)

Download all attachments as: .zip