]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FCalendarPlugin
No underscore for private function
[SourceForge/phpwiki.git] / pgsrc / Help%2FCalendarPlugin
1 Date: Fri,  7 Dec 2012 15:16:29 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FCalendarPlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 The **Calendar** [[Help:WikiPlugin|plugin]] can be used to generate a monthly calendar in a
11 wiki page. It's handy for [[PhpWiki:PersonalWiki|personal wikis]].
12
13 Individual dates in the calendar link to specially named wiki pages.
14 The names for the "day pages" are by default formed by appending the
15 date to the pagename on which the calendar appears.
16
17 == Usage ==
18
19 {{{
20 <<Calendar>>
21 }}}
22
23 will get you:
24 <<Calendar>>
25
26 == Arguments ==
27
28 {| class="bordered"
29 |-
30 ! Argument
31 ! Description
32 ! Default value
33 |-
34 | colspan="3" align="center" | **Selection of Month**
35 |-
36 | **year**
37 | Specify the year for the calendar.
38 | Current year
39 |-
40 | **month**
41 | Specify the month for the calendar.
42 | Current month
43 |-
44 | **month_offset**
45 | Added to //month//. Can be used to include several months worth of calendars on a single wiki page.
46 | 0
47 |-
48 | colspan="3" align="center" | **"Day Page" Names**
49 |-
50 | **date_format**
51 | [[php-function:strftime|strftime]] style format string used to generate page names for the "day pages."
52 | The default value is =%Y-%m-%d=.
53 |-
54 | **prefix**
55 | Prepended to the date (formatted per //date_format//) to generate the "day page" names.
56 | The default value is =~[pagename]/=.
57 |-
58 | colspan="3" align="center" | **Appearance**
59 |-
60 | **month_format**
61 | [[php-function:strftime|strftime]] style format string used to generate the title of the calendar.
62 | (Default: =%B %Y=.)
63 |-
64 | **wday_format**
65 | [[php-function:strftime|strftime]] style format string used to generate the day-of-week names at the top of the calendar.
66 |
67 |-
68 | **start_wday**
69 | 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.
70 |
71 |}
72
73 == Examples ==
74
75 {{{
76 <<Calendar month_offset=+1>>
77 }}}
78
79 will get you:
80 <<Calendar month_offset=+1>>
81
82 {{{
83 <<Calendar start_wday=0>>
84 }}}
85
86 will get you:
87 <<Calendar start_wday=0>>
88
89 == See Also ==
90
91 * [[Help:CalendarListPlugin]]
92
93 Often used together like this:
94
95 {{{
96 <<Calendar>>
97 <<CalendarList>>
98 }}}
99
100 == Authors ==
101
102 This feature was inspired by [[http://manila.userland.com/|Calendar]],
103 and first implemented by Gary Benson. It was later implemented as a
104 [[Help:WikiPlugin|plugin]] by [[Help:Jeff Dairiki|Jeff Dairiki]].
105
106 <noinclude>
107 ----
108 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
109 </noinclude>