| 23 | === Installation === |
| 24 | Simply download the attached [attachment:WikiTicketCalendarMacro.py] to your projects "wiki-macros"-folder and reload your webserver. |
| 25 | Afterwards you should be able to use the macro in your wiki |
| 26 | |
| 27 | === Usage === |
| 28 | Excerpt of the source documentation: |
| 29 | {{{ |
| 30 | # format: |
| 31 | # WikiTicketCalendar([year,month,[showbuttons,[wiki_page_format]]]) |
| 32 | # |
| 33 | # displays a calendar, the days link to: |
| 34 | # - milestones (day in bold) if there is one on that day |
| 35 | # - a wiki page that has wiki_page_format (if exist) |
| 36 | # - create that wiki page if it does not exist |
| 37 | # |
| 38 | # arguments: |
| 39 | # year, month = display calendar for month in year ('*' for current year/month) |
| 40 | # showbuttons = true/false, show prev/next buttons |
| 41 | # wiki_page_format = strftime format for wiki pages to display as link |
| 42 | # (if there is not a milestone placed on that day) |
| 43 | # (if exist, otherwise link to create page) |
| 44 | # default is "%Y-%m-%d" |
| 45 | # |
| 46 | # examples: |
| 47 | # WikiTicketCalendar(2006,07) |
| 48 | # WikiTicketCalendar(2006,07,false) |
| 49 | # WikiTicketCalendar(*,*,true,Meeting-%Y-%m-%d) |
| 50 | # WikiTicketCalendar(2006,07,false,Meeting-%Y-%m-%d) |
| 51 | }}} |
| 52 | |