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