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