]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/zh/pgsrc/WikiPlugin
Update pgsrc to 1.4.0RC1
[SourceForge/phpwiki.git] / locale / zh / pgsrc / WikiPlugin
1 Date: Fri, 10 Sep 2010 13:48:49 +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=WikiPlugin;
6   flags="";
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 The latest hacks include support for ~WikiPlugins.
12
13 ~WikiPlugins 可以讓人簡單地為 wiki 頁面增加新的動態內容種類 (像是其他的功能).
14 在這個 wiki 之中, RecentChanges, BackLinks, LikePages 和 DebugInfo 頁面都是
15 使用 plugins 來實作的.
16
17 我期盼搜尋結果頁面或是 PhpWikiAdministration 等能夠很快地以 plugin 形式被實
18 作出來. (我想 oh-so-ugly [MagicPhpWikiURLs] 也能被 plugins 替代.)
19
20 == Example
21
22 現在,有人放了這麼一行字想要使用 plugin:
23
24 {{{
25 <<BackLinks>>
26 }}}
27
28 到一個一般的 wiki-page. 這個特有的範例產生了連結到此頁面的頁面列表.
29 結果如下:
30
31 <<BackLinks>>
32
33 (這對分類與主題頁面來說是很棒的. 你可以使用它取得自動 in-line 的存在於分
34 類或主題的頁面列表.)
35
36 == Details
37
38 (This is all subject to change.)
39
40 Plugins can take certain named arguments (most do).  The values of
41 these arguments can be determined four different ways.  In order of
42 precedence:
43
44 # The plugin invocation can specify the value for an argument, like so:
45   {{{
46   <<BackLinks page=OtherPage >>
47   }}}
48
49 # The argument can be specified via an HTTP query argument.  This
50   doesn't happen (is not allowed) unless the argument is mentioned in
51   the plugin invocation:
52
53   {{{
54   <<BackLinks page >>
55   }}}
56
57 # Default values specified in the plugin invocation:
58
59   {{{
60   <<BackLinks page||=OtherPage >>
61   }}}
62
63 # The plugin must supply default values for each argument it uses.
64   (The BackLinks plugin uses the current page as the default value for
65   the ''page'' argument.
66
67 == Existing Plugins
68
69 * BackLinks
70 * CalendarPlugin
71 * DebugInfo
72 * FullTextSearch
73 * IncludePage
74 * LikePages
75 * MostPopular
76 * PageHistory
77 * RecentChanges
78 * text2png
79 * TitleSearch
80 * ViewSource
81 * walkabout
82 * PhpHighlightPlugin
83
84 == More Ideas for Plugins
85
86 * Integrate Search form with individual InterWiki map entries
87   e.g. Search Php Website for:[ ] (Search)
88 * WantedPages, OrphanedPages, other various indexing schemes.
89 * Diff, PageHistory
90 * Redirect plugin -- =<<Redirect target=~OtherPage >>=
91 * Insert XML/RSS/RDF news content from =location=xxx= where location
92   is a parameter to the plugin, maybe include some formatting control
93   of the output generated.
94
95 -----
96
97 Pages in this category:
98
99 <<BackLinks page=[pagename] noheader=1>>
100
101 * FullTextSearch: FindPage
102 * TitleSearch: LikePages (match_head, match_tail).
103
104 -----
105
106 PhpWikiDocumentation