Date: Fri, 4 Feb 2011 16:58:00 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FWikiPlugin; flags=""; charset=UTF-8 Content-Transfer-Encoding: binary The latest hacks include support for ~WikiPlugins. ~WikiPlugins 可以讓人簡單地為 wiki 頁面增加新的動態內容種類 (像是其他的功能). 在這個 wiki 之中, RecentChanges, BackLinks, LikePages 和 DebugInfo 頁面都是 使用 plugins 來實作的. 我期盼搜尋結果頁面或是 PhpWikiAdministration 等能夠很快地以 plugin 形式被實 作出來. (我想 oh-so-ugly [MagicPhpWikiURLs] 也能被 plugins 替代.) == Example 現在,有人放了這麼一行字想要使用 plugin: {{{ <> }}} 到一個一般的 wiki-page. 這個特有的範例產生了連結到此頁面的頁面列表. 結果如下: <> (這對分類與主題頁面來說是很棒的. 你可以使用它取得自動 in-line 的存在於分 類或主題的頁面列表.) == Details (This is all subject to change.) Plugins can take certain named arguments (most do). The values of these arguments can be determined four different ways. In order of precedence: # The plugin invocation can specify the value for an argument, like so: {{{ <> }}} # The argument can be specified via an HTTP query argument. This doesn't happen (is not allowed) unless the argument is mentioned in the plugin invocation: {{{ <> }}} # Default values specified in the plugin invocation: {{{ <> }}} # The plugin must supply default values for each argument it uses. (The BackLinks plugin uses the current page as the default value for the ''page'' argument. == Existing Plugins * BackLinks * CalendarPlugin * DebugInfo * FullTextSearch * IncludePage * LikePages * MostPopular * PageHistory * RecentChanges * text2png * TitleSearch * ViewSource * walkabout * PhpHighlightPlugin == More Ideas for Plugins * Integrate Search form with individual InterWiki map entries e.g. Search Php Website for:[ ] (Search) * WantedPages, OrphanedPages, other various indexing schemes. * Diff, PageHistory * Redirect plugin -- =<>= * Insert XML/RSS/RDF news content from =location=xxx= where location is a parameter to the plugin, maybe include some formatting control of the output generated. ----- Pages in this category: <> * FullTextSearch: FindPage * TitleSearch: LikePages (match_head, match_tail). ---- [[PhpWikiDocumentation]]