]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/zh/pgsrc/Help%2FPhotoAlbumPlugin
Fix categories
[SourceForge/phpwiki.git] / locale / zh / pgsrc / Help%2FPhotoAlbumPlugin
1 Date: Fri,  4 Feb 2011 16:44:25 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FPhotoAlbumPlugin;
6   flags="";
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 == Summary
12 藉著顯示帶有說明以及相片檔名的文字檔以製作相簿.
13
14 == Usage
15 {{{
16 <<PhotoAlbum
17          src=http://server/textfile
18          mode=[column|row]
19          align=[center|left|right]
20          desc=true
21          sort=false
22          height=100%
23          width=100%
24 >>
25 }}}
26
27 == Arguments
28 ''只有 ='src'= 參數是必要的.''
29
30 **src**:
31   一個 CSV 文字檔案,裡面每行的格式為 filename, description.
32   裡面列出的每張相片必須都與 CSV 文字檔在同個目錄下. Descriptions 可寫可不寫.
33
34 **mode**:
35   指定相片排列的方法, ='column'= 表示直放, ='row'= 表示橫放. 預設為 ='row'=.
36
37 **align**:
38   每欄的對齊方式. 預設為 ='center'=.
39
40 **desc**:
41   是否顯示文字檔中指定的 description. 預設為真.
42
43 **sort**:
44   以檔案名稱排序圖片. 預設是以文字檔中的順序來排列.
45
46 **height**, **width**:
47   高度與寬度用來與用 [php-function:getimagesize] 取得的原始高度與寬度做比較,
48   可以指定絕對值或百分比 (例如 "50%").
49
50 == Examples
51 === Text file
52 正確文字檔的內容應該是:
53
54 {{{
55 photo-01.jpg; My girlfriend and I
56 photo-02.jpg
57 christmas.gif; Merry Christmas!
58 }}}
59
60 === Sample Album
61 <<PhotoAlbum
62          src="http://phpwiki.sourceforge.net/demo/themes/Hawaiian/images/pictures/PhotoAlbum"
63 >>
64
65 == Plugin Author
66 [Ted Vinke|mailto:teddy@jouwfeestje.com] <teddy@jouwfeestje.com>
67
68 <noinclude>
69 ----
70 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
71 </noinclude>