1 Date: Wed, 29 Aug 2007 09:31:31 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20070828)
3 X-Rcs-Id: $Id: Help%2FCalendarPlugin,v 1.2 2007-09-01 13:40:12 rurban Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FCalendarPlugin;
6 pgsrc_version="2 $Revision: 1.2 $";
10 Content-Transfer-Encoding: binary
12 The [CalendarPlugin | Help:CalendarPlugin] can be used to generate a monthly calendar in a
13 wiki page. It's handy for PhpWiki:PersonalWiki~s.
15 Individual dates in the calendar link to specially named wiki pages.
16 The names for the "day pages" are by default formed by appending the
17 date to the pagename on which the calendar appears.
19 _This feature was inspired by Calendar |http://manila.userland.com/],
20 and first implemented by PhpWiki:GaryBenson. It was later implemented as a
21 Help:WikiPlugin by PhpWiki:JeffDairiki._
38 <strong>year</strong>:
40 Specify the year for the calendar. (Default: current year.)
42 <strong>month</strong>:
44 Specify the month for the calendar. (Default: current month.)
46 <strong>month_offset</strong>:
48 Added to ''month''. Can be used to include several months worth of
49 calendars on a single wiki page.
51 <?plugin Calendar month_offset=+1?>
55 <strong>date_format</strong>:
57 Help:e | php-function:strftime] style format string used to
58 generate page names for the "day pages." The default value is
61 <strong>prefix</strong>:
63 Prepended to the date (formatted per ''date_format'') to generate
64 the "day page" names. The default value is =~ Help:e ]/=.
68 <strong>month_format</strong>:
70 Help:e | php-function:strftime] style format string used to
71 generate the title of the calendar. (Default: =%B, %Y=.)
73 <strong>wday_format</strong>:
75 Help:e | php-function:strftime] style format string used to
76 generate the day-of-week names at the top of the calendar.
78 <strong>start_wday</strong>:
80 What day of the week does the calendar start on. This should be
81 specified as an integer in the range zero (Sunday) through six
82 (Saturday), inclusive.
84 <?plugin Calendar start_wday=1 ?>
88 Help:CalendarListPlugin.
90 Often used together like this:
94 <?plugin CalendarList?>
101 PhpWiki:GaryBenson wrote the first calendar implementation for PhpWiki 1.2.
102 (Since 1.2 doesn't support plugins, it uses a =###CALENDAR###= token
104 Gary provides a screenshot at [ http://inauspicious.org/files/screenshots/calender.png | screenshot ],
105 a Help:h | http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch] (on 1.2.0), and
106 Help:r .php | http://inauspicious.org/files/phpwiki/calendar.php]
107 (which renders a view of the year.)
111 PhpWikiDocumentation Help:WikiPlugin