Changes between Version 27 and Version 28 of WikiCalendarMacro


Ignore:
Timestamp:
Dec 31, 2009, 10:18:44 PM (14 years ago)
Author:
Ryan J Ollos
Comment:

Removing externally linked version of WikiCalendarMacro. Relevant changes will be incorporated into the trunk.

Legend:

Unmodified
Added
Removed
Modified
  • WikiCalendarMacro

    v27 v28  
    88
    99It 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.
    10 
    11 == Another Version: Automatic linking to Milestones ==
    12 
    13 I have created another version [http://myhpi.de/~alexklim/WikiCalendar.py] (newer than the attached file, includes a time parse bug fix!) which has these new features:
    14 (I cannot attach any file to this page anymore, so the link is external. If someone with more privileges could attach that file again under the name WikiCalendar.py it would be very nice)
    15  * allows to specify the year,month to display
    16  * allows to enable/disable the prev/next buttons
    17  * still allows to define a wiki page
    18  * but will display a link to a milestone in bold if there is one placed on that day
    19  * default format for wiki page is "%Y-%m-%d"
    20  * table header with weekdays will be in bold
    21 
    22 Description:
    23 {{{
    24 Format:
    25    WikiCalendar([year,month,[showbuttons,[wiki_page_format]]])
    26 
    27 Description:
    28    Displays a calendar, the days will link to:
    29      - milestones (day in bold) if there is one on that day
    30      - a wiki page that has wiki_page_format (if exist)
    31      - create that wiki page if it does not exist
    32 
    33 Arguments:
    34    year, month = display calendar for month in year ('*' for current year/month)
    35    showbuttons = true/false, show prev/next buttons
    36    wiki_page_format = strftime format for wiki pages to display as link
    37                       (if there is not a milestone placed on that day)
    38                       (if exist, otherwise link to create page)
    39                       default is "%Y-%m-%d"
    40 
    41 Examples:
    42    WikiCalendar
    43        shows a calendar for the current month, wiki pages will have the format "%Y-%m-%d"
    44 
    45    WikiCalendar(2006,07)
    46        shows a calender for July 2006, wiki pages will have the format "%Y-%m-%d"
    47 
    48    WikiCalendar(2006,07,false)
    49        as above, but don't display the prev/next buttons
    50 
    51    WikiCalendar(*,*,true,Meeting-%Y-%m-%d)
    52        shows a calendar for the current month, with buttons, and wiki pages with the format "Meeting-%Y-%m-%d"
    53 
    54    WikiCalendar(2006,07,false,Meeting-%Y-%m-%d)
    55        shows a calendar for July 2006, no buttons, and wiki pages with the format "Meeting-%Y-%m-%d"
    56 }}}
    5710
    5811== Bugs/Feature Requests ==