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;
7 Content-Transfer-Encoding: binary
9 The latest hacks include support for ~WikiPlugins.
11 ~WikiPlugins 可以讓人簡單地為 wiki 頁面增加新的動態內容種類 (像是其他的功能).
12 在這個 wiki 之中, RecentChanges, BackLinks, LikePages 和 DebugInfo 頁面都是
15 我期盼搜尋結果頁面或是 PhpWikiAdministration 等能夠很快地以 plugin 形式被實
16 作出來. (我想 oh-so-ugly [MagicPhpWikiURLs] 也能被 plugins 替代.)
20 現在,有人放了這麼一行字想要使用 plugin:
26 到一個一般的 wiki-page. 這個特有的範例產生了連結到此頁面的頁面列表.
31 (這對分類與主題頁面來說是很棒的. 你可以使用它取得自動 in-line 的存在於分
36 (This is all subject to change.)
38 Plugins can take certain named arguments (most do). The values of
39 these arguments can be determined four different ways. In order of
42 # The plugin invocation can specify the value for an argument, like so:
44 <<BackLinks page=OtherPage >>
47 # The argument can be specified via an HTTP query argument. This
48 doesn't happen (is not allowed) unless the argument is mentioned in
49 the plugin invocation:
55 # Default values specified in the plugin invocation:
58 <<BackLinks page||=OtherPage >>
61 # The plugin must supply default values for each argument it uses.
62 (The BackLinks plugin uses the current page as the default value for
63 the ''page'' argument.
82 == More Ideas for Plugins
84 * Integrate Search form with individual InterWiki map entries
85 e.g. Search Php Website for:[ ] (Search)
86 * WantedPages, OrphanedPages, other various indexing schemes.
88 * Redirect plugin -- =<<Redirect target=~OtherPage >>=
89 * Insert XML/RSS/RDF news content from =location=xxx= where location
90 is a parameter to the plugin, maybe include some formatting control
91 of the output generated.
95 Pages in this category:
97 <<BackLinks page=[pagename] noheader=1>>
99 * FullTextSearch: FindPage
100 * TitleSearch: LikePages (match_head, match_tail).
104 [[PhpWikiDocumentation]]