352 | | |
353 | | ---- |
354 | | See also: TracLinks, TracGuide, WikiHtml, WikiMacros, WikiProcessors, TracSyntaxColoring. |
| 352 | == [[WikiTicketCalendarMacro http://trac-hacks.org/wiki/WikiTicketCalendarMacro]] == |
| 353 | |
| 354 | {{{ |
| 355 | |
| 356 | format: |
| 357 | WikiTicketCalendar([year,month,[showbuttons,[wiki_page_format]]]) |
| 358 | |
| 359 | }}} |
| 360 | |
| 361 | displays a calendar, the days link to: |
| 362 | - milestones (day in bold) if there is one on that day |
| 363 | - a wiki page that has wiki_page_format (if exist) |
| 364 | - create that wiki page if it does not exist |
| 365 | |
| 366 | arguments: |
| 367 | year, month = display calendar for month in year ('*' for current year/month) |
| 368 | showbuttons = true/false, show prev/next buttons |
| 369 | wiki_page_format = strftime format for wiki pages to display as link |
| 370 | (if there is not a milestone placed on that day) |
| 371 | (if exist, otherwise link to create page) |
| 372 | default is "%Y-%m-%d", '*' for default |
| 373 | |
| 374 | {{{ |
| 375 | |
| 376 | examples: |
| 377 | WikiTicketCalendar(2006,07) |
| 378 | WikiTicketCalendar(2006,07,false) |
| 379 | WikiTicketCalendar(*,*,true,Meeting-%Y-%m-%d) |
| 380 | WikiTicketCalendar(2006,07,false,Meeting-%Y-%m-%d) |
| 381 | |
| 382 | }}} |