]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/CalendarPlugin
memory regression suite
[SourceForge/phpwiki.git] / pgsrc / CalendarPlugin
1 Date: Sun, 27 Jan 2002 17:28:55 -0500
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.2-jeffs-hacks)
3 X-Rcs-Id: $Id: CalendarPlugin,v 1.6 2002-12-29 00:32:34 carstenklapp Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=CalendarPlugin;
6   pgsrc_version="2 $Revision: 1.6 $";
7   flags="";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 The CalendarPlugin can be used to generate a monthly calendar in a
13 wiki page. It's handy for PersonalWiki~s.
14
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.
18
19 ''This feature was inspired by [Manila|http://manila.userland.com/],
20 and first implemented by GaryBenson. It was later implemented as a
21 WikiPlugin by JeffDairiki.''
22
23 !!Usage:
24
25 <verbatim>
26 <?plugin Calendar?>
27 </verbatim>
28
29 will get you:
30 <?plugin Calendar?>
31
32 --------
33
34 !! Plugin Arguments
35
36 !Selection of Month
37
38 __year__:
39
40   Specify the year for the calendar.  (Default: current year.)
41
42 __month__:
43
44   Specify the month for the calendar.  (Default: current month.)
45
46 __month_offset__:
47
48   Added to ''month''. Can be used to include several months worth of
49   calendars on a single wiki page.
50
51   <?plugin Calendar month_offset=+1?>
52
53 !"Day Page" Names
54
55 __date_format__:
56
57   [Strftime| php-function:strftime] style format string used to
58   generate page names for the "day pages." The default value is
59   =%Y-%m-%d=.
60
61 __prefix__:
62
63   Prepended to the date (formatted per ''date_format'') to generate
64   the "day page" names. The default value is =~[pagename]/=.
65
66 !Appearance
67
68 __month_format__:
69
70   [Strftime| php-function:strftime] style format string used to
71   generate the title of the calendar. (Default: =%B, %Y=.)
72
73 __wday_format__:
74
75   [Strftime| php-function:strftime] style format string used to
76   generate the day-of-week names at the top of the calendar.
77
78 __start_wday__:
79
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.
83
84   <?plugin Calendar start_wday=1 ?>
85
86 -----
87
88 ! Patch for 1.2
89
90 GaryBenson wrote the first calendar implementation for PhpWiki 1.2.
91 (Since 1.2 doesn't support plugins, it uses a =###CALENDAR###= token
92 as a trigger.) Gary provides a screenshot at
93 http://inauspicious.org/files/screenshots/calender.png|screenshot, a
94 [patch|http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch]
95 (on 1.2.0), and
96 [calendar.php|http://inauspicious.org/files/phpwiki/calendar.php]
97 (which renders a view of the year.)
98
99 ----
100
101 PhpWikiDocumentation