]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/zh/pgsrc/Help%2FWikiPlugin
Merge OldTextFormattingRules into TextFormattingRules; Rename _GroupInfo --> DebugGro...
[SourceForge/phpwiki.git] / locale / zh / pgsrc / Help%2FWikiPlugin
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;
5   flags="";
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 The latest hacks include support for ~WikiPlugins.
10
11 ~WikiPlugins 可以讓人簡單地為 wiki 頁面增加新的動態內容種類 (像是其他的功能).
12 在這個 wiki 之中, RecentChanges, BackLinks, LikePages 和 DebugInfo 頁面都是
13 使用 plugins 來實作的.
14
15 我期盼搜尋結果頁面或是 PhpWikiAdministration 等能夠很快地以 plugin 形式被實
16 作出來. (我想 oh-so-ugly [MagicPhpWikiURLs] 也能被 plugins 替代.)
17
18 == Example
19
20 現在,有人放了這麼一行字想要使用 plugin:
21
22 {{{
23 <<BackLinks>>
24 }}}
25
26 到一個一般的 wiki-page. 這個特有的範例產生了連結到此頁面的頁面列表.
27 結果如下:
28
29 <<BackLinks>>
30
31 (這對分類與主題頁面來說是很棒的. 你可以使用它取得自動 in-line 的存在於分
32 類或主題的頁面列表.)
33
34 == Details
35
36 (This is all subject to change.)
37
38 Plugins can take certain named arguments (most do).  The values of
39 these arguments can be determined four different ways.  In order of
40 precedence:
41
42 # The plugin invocation can specify the value for an argument, like so:
43   {{{
44   <<BackLinks page=OtherPage >>
45   }}}
46
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:
50
51   {{{
52   <<BackLinks page >>
53   }}}
54
55 # Default values specified in the plugin invocation:
56
57   {{{
58   <<BackLinks page||=OtherPage >>
59   }}}
60
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.
64
65 == Existing Plugins
66
67 * BackLinks
68 * CalendarPlugin
69 * DebugInfo
70 * FullTextSearch
71 * IncludePage
72 * LikePages
73 * MostPopular
74 * PageHistory
75 * RecentChanges
76 * text2png
77 * TitleSearch
78 * ViewSource
79 * walkabout
80 * PhpHighlightPlugin
81
82 == More Ideas for Plugins
83
84 * Integrate Search form with individual InterWiki map entries
85   e.g. Search Php Website for:[ ] (Search)
86 * WantedPages, OrphanedPages, other various indexing schemes.
87 * Diff, PageHistory
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.
92
93 -----
94
95 Pages in this category:
96
97 <<BackLinks page=[pagename] noheader=1>>
98
99 * FullTextSearch: FindPage
100 * TitleSearch: LikePages (match_head, match_tail).
101
102 <noinclude>
103 ----
104 [[PhpWikiDocumentation]]
105 </noinclude>