wiki:WikiCalendarMacro

Version 32 (modified by rjollos, 5 years ago) (diff)

Updating wiki page to agree with current trunk version

WikiCalendar Macro

Description

Inserts a small calendar where each day links to a wiki page whose name matches the wiki-page-format agument. The current day is highlighted, and days with Milestones are marked in bold. This version 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.

Bugs/Feature Requests

Existing bugs and feature requests for WikiCalendarMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source.

Source

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

Example

Usage:

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

Arguments:

  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
[[WikiCalendar(2006,07)]]
[[WikiCalendar(2006,07,false)]]
[[WikiCalendar(*,*,true,Meeting-%Y-%m-%d)]]
[[WikiCalendar(2006,07,false,Meeting-%Y-%m-%d)]]

Screenshot of version 5

Recent Changes

[13798] by hasienda on 2014-03-31 21:33:53
WikiCalendarMacro: Improve 'today' offset calculation to succeed for any day-of-month, refs #11656.
[13656] by hasienda on 2014-02-11 23:30:45
WikiCalendarMacro: Pre-filter tickets by calendar time range for performance.
[12991] by hasienda on 2013-04-21 00:13:04
WikiCalendarMacro: Releasing current, tested macro package as final product, closes #7639, #8175, #9718, #10991, #10992 and #10993.

Special thanks to Jun Omae for pushing development by testing and providing
valuable hints in our discussion about utilizing Babel for better
localization and for making macro execution thread-safe as well.

Author/Contributors

Author: mgood
Maintainer: rjollos
Contributors: Alexander Klimetschek, JoshuaH TagIt(macro,mgood,example,0.8,0.9,0.11)?

Attachments (2)

Download all attachments as: .zip