%HTTP_EQUIV_ON_VIEW% ="" />

PGMFI Logo
Library> CalendarPlugin Destinations: Home | Library | Change Log | Index
Search | Go

The Calendar Plugin can be used to generate a monthly calendar in a wiki page. It's handy for Personal Wiki?s.

Individual dates in the calendar link to specially named wiki pages. The names for the "day pages" are by default formed by appending the date to the pagename on which the calendar appears.

''This feature was inspired by Manila, and first implemented by Gary Benson?. It was later implemented as a Wiki Plugin by Jeff Dairiki?.''

Usage:

wil get you:


Plugin Arguments

Selection of Month

;__year__: Specify the year for the calendar. (Default: current year.) ;__month__: Specify the month for the calendar. (Default: current month.) ;__month_offset__: Added to ''month''. Can be used to include several months worth of calendars on a single wiki page.

"Day Page" Names

;__date_format__:Strftime? style format string used to generate page names for the "day pages." The default value is '%Y-%m-%d'. ;__prefix__: Prepended to the date (formatted per ''date_format'') to generate the "day page" names. The default value is '[pagename?:'.

Appearance

;__month_format__: Strftime? style format string used to generate the title of the calendar. (Default: '%B, %Y'.) ;__wday_format__: Strftime? style format string used to generate the day-of-week names at the top of the calendar. ;__start_wday__: What day of the week does the calendar start on. This should be specified as an integer in the range zero (Sunday) through six (Saturday), inclusive.


Patch for 1.2

Gary Benson? wrote the first calendar implementation for Php Wiki 1.2. (Since 1.2 doesn't support plugins, it uses a ###CALENDAR### token as a trigger.) Gary provides a screenshot at calender.png, a patch (on 1.2.0), and calendar.php (which renders a view of the year.)


Php Wiki Documentation

Revision: r1.1 - 19 Feb 2004 - 22:01 GMT - guest { Edit | Attach | History | More }
Copyright © 2002-present by the contributing authors. All material on this collaboration platform is the property of the
contributing authors, and is covered by the Non-Commercial Share-Alike License unless explicitly stated otherwise.
Ideas, requests, problems regarding the PGMFI TWiki?? E-Mail the WikiAdmin
Site Designed By: Digital Fusion   Need a website?