?? wikiplugin
字號:
Date: Sun, 27 Jan 2002 17:28:55 -0500Mime-Version: 1.0 (Produced by PhpWiki 1.3.2-jeffs-hacks)X-Rcs-Id: $Id: WikiPlugin,v 1.1 2004/02/15 18:14:06 rurban Exp $Content-Type: application/x-phpwiki; pagename=WikiPlugin; pgsrc_version="2 $Revision: 1.1 $"; flags=""; markup=2; charset=iso-8859-1Content-Transfer-Encoding: binaryThe latest hacks include support for ~WikiPlugins.~WikiPlugins allow one to easily add new types of dynamic content (aswell as other functionality) to wiki pages within PhpWiki. In thisvery wiki, the RecentChanges, BackLinks, LikePages and DebugInfo pagesare all implemented using plugins.I expect that the search result pages, as well as muchPhpWikiAdministration will soon be implemented via plugins as well.(I think the oh-so-ugly [MagicPhpWikiURLs] can be replaced by plugins,too.)!!!ExampleCurrently, one invokes a plugin by putting something like:<verbatim><?plugin BackLinks?></verbatim>into a regular wiki-page. That particular example produces as list ofpages which link to the current page. Here it is:<?plugin BackLinks?>(This is great for Category and Topic pages. You can use this to getan automatic in-line listing of pages in the Category or Topic.)!!!Details(This is all subject to change.)Plugins can take certain named arguments (most do). The values ofthese arguments can be determined four different ways. In order ofprecedence:# 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).-----PhpWikiDokumentation
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -