Changes between Version 58 and Version 59 of WikiCalendarMacro


Ignore:
Timestamp:
Sep 23, 2016, 7:37:04 PM (8 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • WikiCalendarMacro

    v58 v59  
    1313
    1414Check the documentation for WikiTicketCalendarMacro to learn about its option to preselect a wiki page template for new pages and much more. The macro WikiTicketCalendarMacro, once forked off from this macro, has been re-integrated. Both macros are available in `wikicalendar-2.0.0` and later.
     15
     16Usage:
     17{{{
     18[[WikiCalendar([year, [month, [show-buttons, [wiki-page-format]]]])]]
     19}}}
     20
     21Arguments:
     22 1. `year` (4-digit year) - defaults to `*` (current year)
     23 1. `month` (2-digit month) - defaults to `*` (current month)
     24 1. `show-buttons` (boolean) - defaults to `true`
     25 1. `wiki-page-format` (string) - defaults to `%Y-%m-%d`
     26
     27{{{
     28[[WikiCalendar(2006,07)]]
     29[[WikiCalendar(2006,07,false)]]
     30[[WikiCalendar(*,*,true,Meeting-%Y-%m-%d)]]
     31[[WikiCalendar(2006,07,false,Meeting-%Y-%m-%d)]]
     32}}}
     33
     34Relative wiki paths are supported as well, which is especially relevant if you later change position of the wiki page containing the !WikiCalendarMacro relative to the stack of related wiki pages:
     35
     36{{{
     37[[WikiCalendar(*,*,true,../Meeting/%Y-%m-%d)]]
     38}}}
     39
     40The calendar will be displayed as follows (border added for visibility):
     41
     42[[Image(20130421_wikicalendar_screenshot.gif, border=2)]]
     43
     44Screenshots using `[[WikiCalendar(w)]]` (for week numbers) with different browser locale settings.
    1545
    1646'''New:''' Since wikicalendar-2.1 both macros are able to display week numbers. Just add a 'w' to your macro arguments (argument position doesn't matter). With `Babel` installed you even get Sunday as first day of the week and week numbers localized according to your browser settings.
     
    5181To upgrade this plugin, rename your old `[wikiticketcalendar]` section, and the required option name change `ticket.due_field.name --> ticket.due_field.name` will be done automatically for you.
    5282
    53 == Example
    54 
    55 Usage:
    56 {{{
    57 [[WikiCalendar([year, [month, [show-buttons, [wiki-page-format]]]])]]
    58 }}}
    59 
    60 Arguments:
    61  1. `year` (4-digit year) - defaults to `*` (current year)
    62  1. `month` (2-digit month) - defaults to `*` (current month)
    63  1. `show-buttons` (boolean) - defaults to `true`
    64  1. `wiki-page-format` (string) - defaults to `%Y-%m-%d`
    65 
    66 {{{
    67 [[WikiCalendar(2006,07)]]
    68 [[WikiCalendar(2006,07,false)]]
    69 [[WikiCalendar(*,*,true,Meeting-%Y-%m-%d)]]
    70 [[WikiCalendar(2006,07,false,Meeting-%Y-%m-%d)]]
    71 }}}
    72 
    73 Relative wiki paths are supported as well, which is especially relevant if you later change position of the wiki page containing the !WikiCalendarMacro relative to the stack of related wiki pages:
    74 
    75 {{{
    76 [[WikiCalendar(*,*,true,../Meeting/%Y-%m-%d)]]
    77 }}}
    78 
    79  [[Image(20130421_wikicalendar_screenshot.gif)]]
    80 
    81 Screenshots using `[[WikiCalendar(w)]]` (for week numbers) with different browser locale settings.
    82 
    83 === About i18n/l10n support
     83== About i18n/l10n support
    8484
    8585These macros are prepared for localization (tooltip customization in calendar navigation and localized macro description).