Penguin
Diff: CalendarPlugin
EditPageHistoryDiffInfoLikePages

Differences between current version and revision by previous author of CalendarPlugin.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 5 Last edited on Monday, July 18, 2005 12:46:06 am by WikiAdmin
Older page: version 4 Last edited on Saturday, July 16, 2005 7:14:19 pm by The PhpWiki programming team Revert
@@ -1,42 +1,51 @@
-The CalendarPlugin can be used to generate a monthly calendar in a wiki page. It's handy for [PersonalWiki ]s
+The CalendarPlugin can be used to generate a monthly calendar in a wiki page. It's handy for [HomePages|Category:HomePage ]. 
  
 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|http://manila.userland.com/], and first implemented by GaryBenson . It was later implemented as a WikiPlugin by JeffDairiki .'' 
+''This feature was inspired by [Manila|http://manila.userland.com/], and first implemented by Gary Benson . It was later implemented as a WikiPlugin by Jeff Dairiki .'' 
  
-!!Usage:  
- <?plugin Calendar?> 
+!! Usage  
+  
+ <verbatim>  
+ <?plugin Calendar?>  
+ </verbatim
  
 wil get you: 
+  
 <?plugin Calendar?> 
  
 -------- 
  
-!! Plugin Arguments 
+! !! Plugin Arguments 
  
-!Selection of Month 
+! ! Selection of Month  
+  
+<tt>year</tt>:  
+ Specify the year for the calendar. (Default: current year.)  
+<tt>month</tt>:  
+ Specify the month for the calendar. (Default: current month.)  
+<tt>month_offset</tt>:  
+ Added to ''month''. Can be used to include several months worth of calendars on a single wiki page.  
  
-;__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.  
 <?plugin Calendar month_offset=+1?> 
  
-!"Day Page" Names 
+! ! "Day Page" Names 
  
-;__ date_format__ :[Strftime| php-function: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]:'
+<tt> date_format</tt> :  
+ [Strftime | php-function:strftime] style format string used to generate page names for the "day pages." The default value is <tt> %Y-%m-%d</tt> .  
+<tt> prefix</tt> :  
+ Prepended to the date (formatted per <tt> date_format</tt> ) to generate the "day page" names. The default value is <tt>~ [pagename]:</tt>
  
-!Appearance 
+! ! Appearance 
  
-;__ month_format__ : [Strftime| php-function:strftime] style format string used to generate the title of the calendar. ( Default: ' %B, %Y'.)  
-;__ wday_format__ : [Strftime| php-function: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. 
+<tt> month_format</tt> :  
+ [Strftime | php-function:strftime] style format string used to generate the title of the calendar. Default: <tt> %B, %Y</tt>  
+<tt> wday_format</tt> :  
+ [Strftime | php-function:strftime] style format string used to generate the day-of-week names at the top of the calendar.  
+<tt> start_wday</tt> :  
+ 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. 
  
 <?plugin Calendar start_wday=1 ?> 
------  
-  
-! Patch for 1.2  
  
-GaryBenson wrote the first calendar implementation for PhpWiki 1.2. (Since 1.2 doesn't support plugins, it uses a ###CALENDAR### token as a trigger.) Gary provides a screenshot at http://inauspicious.org/files/screenshots/calender.png, a [patch |http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch] (on 1.2.0), and [calendar.php |http://inauspicious.org/files/phpwiki/calendar.php] (which renders a view of the year.)  
 ---- 
 PhpWikiDocumentation