Rev | Author | # | Line |
---|---|---|---|
4 | The PhpWiki programming team | 1 | The CalendarPlugin can be used to generate a monthly calendar in a wiki page. It's handy for [HomePages|Category:HomePage]. |
1 | The PhpWiki programming team | 2 | |
3 | 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. | ||
4 | |||
5 | ''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.'' | ||
6 | |||
5 | WikiAdmin | 7 | !! Usage |
8 | |||
9 | <verbatim> | ||
10 | <?plugin Calendar?> | ||
11 | </verbatim> | ||
1 | The PhpWiki programming team | 12 | |
13 | wil get you: | ||
5 | WikiAdmin | 14 | |
3 | AristotlePagaltzis | 15 | <?plugin Calendar?> |
1 | The PhpWiki programming team | 16 | |
17 | -------- | ||
18 | |||
19 | !!! Plugin Arguments | ||
20 | |||
5 | WikiAdmin | 21 | !! Selection of Month |
22 | |||
23 | <tt>year</tt>: | ||
24 | Specify the year for the calendar. (Default: current year.) | ||
25 | <tt>month</tt>: | ||
26 | Specify the month for the calendar. (Default: current month.) | ||
27 | <tt>month_offset</tt>: | ||
28 | Added to ''month''. Can be used to include several months worth of calendars on a single wiki page. | ||
1 | The PhpWiki programming team | 29 | |
4 | The PhpWiki programming team | 30 | <?plugin Calendar month_offset=+1?> |
1 | The PhpWiki programming team | 31 | |
32 | !! "Day Page" Names | ||
33 | |||
5 | WikiAdmin | 34 | <tt>date_format</tt>: |
35 | [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>. | ||
36 | <tt>prefix</tt>: | ||
37 | Prepended to the date (formatted per <tt>date_format</tt>) to generate the "day page" names. The default value is <tt>~[pagename]:</tt>. | ||
1 | The PhpWiki programming team | 38 | |
39 | !! Appearance | ||
40 | |||
5 | WikiAdmin | 41 | <tt>month_format</tt>: |
42 | [Strftime | php-function:strftime] style format string used to generate the title of the calendar. Default: <tt>%B, %Y</tt> | ||
43 | <tt>wday_format</tt>: | ||
44 | [Strftime | php-function:strftime] style format string used to generate the day-of-week names at the top of the calendar. | ||
45 | <tt>start_wday</tt>: | ||
46 | 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. | ||
1 | The PhpWiki programming team | 47 | |
48 | <?plugin Calendar start_wday=1 ?> | ||
4 | The PhpWiki programming team | 49 | |
50 | ---- | ||
1 | The PhpWiki programming team | 51 | PhpWikiDocumentation |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)