]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/zh/pgsrc/Help%2FCalendarPlugin
Merge OldTextFormattingRules into TextFormattingRules; Rename _GroupInfo --> DebugGro...
[SourceForge/phpwiki.git] / locale / zh / pgsrc / Help%2FCalendarPlugin
1 Date: Fri,  4 Feb 2011 16:58:00 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FCalendarPlugin;
5   flags="";
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 CalendarPlugin 可以用來在 wiki 頁面的月曆. 對 PersonalWiki~s 來說是很便利的.
10
11 在月曆裡的個別日期連結到一個特別名稱的 wiki 頁面.
12 "day pages"(日頁面)的名稱預設會以月曆存在頁面的名稱加上日期.
13
14 ''此功能是從 [Manila|http://manila.userland.com/] 得到啟示,
15 並且首先由 GaryBenson 所實作. 後來則被 JeffDairiki 實作為 WikiPlugin.''
16
17 ===用法:
18
19 {{{
20 <<Calendar>>
21 }}}
22
23 你將會得到:
24 <<Calendar>>
25
26 --------
27
28 === Plugin 引數
29
30 ==== 月份的選擇
31
32 **year**:
33
34   為月曆指定年. (預設: 目前的年份.)
35
36 **month**:
37
38   為月曆指定月份. (預設: 目前的月份.)
39
40 **month_offset**:
41
42   加到 ''month''. 可以用來含括好幾個月的月曆到一個 wiki 頁面.
43
44   <<Calendar month_offset=+1>>
45
46 ==== "Day Page" (日頁面)名稱
47
48 **date_format**:
49
50   使用 [Strftime| php-function:strftime] 風格的格式字串來為 "day pages"
51   產生頁面名稱.  預設值為 =%Y-%m-%d=.
52
53 **prefix**:
54
55   Prepended to the date (formatted per ''date_format'') to generate
56   the "day page" names. The default value is =~[pagename]/=.
57
58 ==== Appearance
59
60 **month_format**:
61
62   使用 [Strftime| php-function:strftime] 風格的格式字串產生
63   月曆的標題. (預設為 =%B, %Y=.)
64
65 **wday_format**:
66
67   使用 [Strftime| php-function:strftime] 風格的格式字串產生
68   在月曆上頭的 day-of-week 名稱.
69
70 **start_wday**:
71
72   每週是由那一天開始.  這會是一個介於 0 (Sunday)到 6(Saturday) 的整數.
73
74   <<Calendar start_wday=1 >>
75
76 -----
77
78 ==== Patch for 1.2
79
80 GaryBenson wrote the first calendar implementation for PhpWiki 1.2.
81 (Since 1.2 doesn't support plugins, it uses a =###CALENDAR###= token
82 as a trigger.) Gary provides a screenshot at
83 http://inauspicious.org/files/screenshots/calender.png|screenshot, a
84 [patch|http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch]
85 (on 1.2.0), and
86 [calendar.php|http://inauspicious.org/files/phpwiki/calendar.php]
87 (which renders a view of the year.)
88
89 <noinclude>
90 ----
91 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
92 </noinclude>