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