Changes between Version 31 and Version 32 of WikiCalendarMacro
- Timestamp:
- Dec 31, 2009, 11:38:08 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiCalendarMacro
v31 v32 3 3 == Description == 4 4 5 Renders a calendar of links to date-based wiki pages. Its primary use is for maintaining a calendar of meeting minutes, but it can be used in any situation where the wiki page name is based on the date. It is designed to work well with the [trac:MacroBazaar#Blog Blog] macro, so if a previous month is selected from the Blog, the calendar will display the selected month.5 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. 6 6 7 Non-existent pages link directly to the edit form for the requested page to make it easy to add new meeting minutes pages.7 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 [trac:MacroBazaar#Blog Blog] macro, so if a previous month is selected from the Blog, the calendar will display the selected month. 8 8 9 It takes one argument to specify the format of the page names. It uses the time format syntax from the Python [http://python.org/doc/current/lib/module-time.html time module]'s {{{strftime}}} method.9 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 [http://python.org/doc/current/lib/module-time.html time module]'s {{{strftime}}} method. 10 10 11 11 == Bugs/Feature Requests == … … 28 28 29 29 == Example == 30 31 Usage: 32 {{{ 33 [[WikiCalendar([year, [month, [show-buttons, [wiki-page-format]]]])]] 34 }}} 35 36 Arguments: 37 1. `year` (4-digit year) - defaults to `*` (current year) 38 1. `month` (2-digit month) - defaults to `*` (current month) 39 1. `show-buttons` (boolean) - defaults to `true` 40 1. `wiki-page-format` (string) - defaults to `%Y-%m-%d` 30 41 31 42 {{{ 32 [[WikiCalendar(Meeting-%Y-%m-%d)]] 43 [[WikiCalendar(2006,07)]] 44 [[WikiCalendar(2006,07,false)]] 45 [[WikiCalendar(*,*,true,Meeting-%Y-%m-%d)]] 46 [[WikiCalendar(2006,07,false,Meeting-%Y-%m-%d)]] 33 47 }}} 34 48