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;
8 Content-Transfer-Encoding: binary
10 The latest hacks include support for ~WikiPlugins.
12 ~WikiPlugins 可以讓人簡單地為 wiki 頁面增加新的動態內容種類 (像是其他的功能).
13 在這個 wiki 之中, RecentChanges, BackLinks, LikePages 和 DebugInfo 頁面都是
16 我期盼搜尋結果頁面或是 PhpWikiAdministration 等能夠很快地以 plugin 形式被實
17 作出來. (我想 oh-so-ugly [MagicPhpWikiURLs] 也能被 plugins 替代.)
21 現在,有人放了這麼一行字想要使用 plugin:
27 到一個一般的 wiki-page. 這個特有的範例產生了連結到此頁面的頁面列表.
32 (這對分類與主題頁面來說是很棒的. 你可以使用它取得自動 in-line 的存在於分
37 (This is all subject to change.)
39 Plugins can take certain named arguments (most do). The values of
40 these arguments can be determined four different ways. In order of
43 # The plugin invocation can specify the value for an argument, like so:
45 <<BackLinks page=OtherPage >>
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:
56 # Default values specified in the plugin invocation:
59 <<BackLinks page||=OtherPage >>
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.
83 == More Ideas for Plugins
85 * Integrate Search form with individual InterWiki map entries
86 e.g. Search Php Website for:[ ] (Search)
87 * WantedPages, OrphanedPages, other various indexing schemes.
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.
96 Pages in this category:
98 <<BackLinks page=[pagename] noheader=1>>
100 * FullTextSearch: FindPage
101 * TitleSearch: LikePages (match_head, match_tail).
105 [[PhpWikiDocumentation]]