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