0byt3m1n1
Path:
/
data
/
applications
/
aps
/
phpwiki
/
1.3.14-6
/
standard
/
htdocs
/
locale
/
zh
/
pgsrc
/
[
Home
]
File: WikiPlugin
Date: Sun, 27 Jan 2002 17:28:55 -0500 Mime-Version: 1.0 (Produced by PhpWiki 1.3.2-jeffs-hacks) X-Rcs-Id: $Id: WikiPlugin,v 1.1 2004/04/29 23:59:07 rurban Exp $ Content-Type: application/x-phpwiki; pagename=WikiPlugin; pgsrc_version="2 $Revision: 1.1 $"; flags=""; markup=2; 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: <verbatim> <?plugin BackLinks?> </verbatim> 到一個一般的 wiki-page. 這個特有的範例產生了連結到此頁面的頁面列表. 結果如下: <?plugin BackLinks?> (這對分類與主題頁面來說是很棒的. 你可以使用它取得自動 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: <verbatim> <?plugin BackLinks page=OtherPage ?> </verbatim> # 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: <verbatim> <?plugin BackLinks page ?> </verbatim> # Default values specified in the plugin invocation: <verbatim> <?plugin BackLinks page||=OtherPage ?> </verbatim> # 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 -- =<?plugin Redirect target=~OtherPage ?>= * 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: <?plugin BackLinks page=[pagename] noheader=1?> * FullTextSearch: FindPage * TitleSearch: LikePages (match_head, match_tail). ----- PhpWikiDocumentation