1 Date: Mon, 26 Jun 2008 14:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id: Help%2FCalendarPlugin,v 1.5 2008-06-27 20:03:55 vargenau Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FCalendarPlugin;
9 Content-Transfer-Encoding: binary
11 The *Calendar* plugin can be used to generate a monthly calendar in a
12 wiki page. It's handy for PhpWiki:PersonalWiki~s.
14 Individual dates in the calendar link to specially named wiki pages.
15 The names for the "day pages" are by default formed by appending the
16 date to the pagename on which the calendar appears.
18 _This feature was inspired by Calendar |http://manila.userland.com/],
19 and first implemented by [Gary Benson|PhpWiki:GaryBenson]. It was later implemented as a
20 [plugin|Help:WikiPlugin] by [Jeff Dairiki|PhpWiki:JeffDairiki]._
35 <strong>year</strong>:
37 Specify the year for the calendar. (Default: current year.)
39 <strong>month</strong>:
41 Specify the month for the calendar. (Default: current month.)
43 <strong>month_offset</strong>:
45 Added to ''month''. Can be used to include several months worth of
46 calendars on a single wiki page.
48 <?plugin Calendar month_offset=+1?>
52 <strong>date_format</strong>:
54 Help:e | php-function:strftime] style format string used to
55 generate page names for the "day pages." The default value is
58 <strong>prefix</strong>:
60 Prepended to the date (formatted per ''date_format'') to generate
61 the "day page" names. The default value is =~ Help:e ]/=.
65 <strong>month_format</strong>:
67 Help:e | php-function:strftime] style format string used to
68 generate the title of the calendar. (Default: =%B, %Y=.)
70 <strong>wday_format</strong>:
72 Help:e | php-function:strftime] style format string used to
73 generate the day-of-week names at the top of the calendar.
75 <strong>start_wday</strong>:
77 What day of the week does the calendar start on. This should be
78 specified as an integer in the range zero (Sunday) through six
79 (Saturday), inclusive.
81 <?plugin Calendar start_wday=1 ?>
85 Help:CalendarListPlugin.
87 Often used together like this:
91 <?plugin CalendarList?>
98 [Gary Benson|PhpWiki:GaryBenson] wrote the first calendar implementation for PhpWiki 1.2.
99 (Since 1.2 doesn't support plugins, it uses a =###CALENDAR###= token
101 Gary provides a screenshot at [ http://inauspicious.org/files/screenshots/calender.png | screenshot ],
102 a Help:h | http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch] (on 1.2.0), and
103 Help:r .php | http://inauspicious.org/files/phpwiki/calendar.php]
104 (which renders a view of the year.)
108 [PhpWikiDocumentation] [CategoryWikiPlugin]