1 Date: Fri, 10 Sep 2010 13:48:49 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
4 Content-Type: application/x-phpwiki;
5 pagename=MagicPhpWikiURLs;
9 Content-Transfer-Encoding: binary
11 == About phpwiki: URLs
13 一種特別的 URL, 用來建立連結以執行管理和 PhpWiki 裡的其他特殊功能.
19 __phpwiki:__''pagename''__?__''query-args''
22 如果 _pagename_ 被忽略,那麼預設為目前頁面.
24 _Query-args_ 應該是以標準 HTTP GET 格式表示的一組參數.
26 "action=''x''" 參數應該都要被給定. 他可以是這些值的其中一個:
27 __browse__, __diff__, __edit__, __viewsource__,
28 __zip__, __dumpserial__, __loadserial__,
29 __remove__, __lock__, __unlock__,
30 __login__, __logout__, __setprefs__ or __save__.
35 __FullTextSearch__, __TitleSearch__:
37 接受 __s__ 表示欲搜尋的字串, 而 __size__ 表示輸入的長度.
49 接受 __editversion__, __minor_edit__, 和 __content__.
53 接受 __edit_area_width__, __edit_area_height__.
55 === Writing Magic Links in Wiki Pages
60 __~[__ ''text'' __|__ ''phpwiki-url'' __]__
63 "''text'' *|*" 是可選的,但通常建議使用. 如果給了,他會為此連結提供標籤.
65 _phpwiki-url_ 就如同上面描述的一樣,是一個 *phpwiki:* URL.
70 [ Edit the SandBox | phpwiki:SandBox?action=edit ]
72 將會產生一個連結,而他將會直接引領你去編輯 SandBox, 像是:
73 [Edit the SandBox | phpwiki:SandBox?action=edit].
76 * [ Diff the SandBox | phpwiki:SandBox?action=diff ],
77 * [ Lock the HomePage | phpwiki:HomePage?action=lock ],
78 * [ Get a Full Zip Dump | phpwiki:?action=zip&include=all ],
79 * Search for [ Page titles containing 'wiki' | phpwiki:?action=TitleSearch&s=wiki ]
81 === Writing Magic Forms in Wiki Pages
83 ''__Note__: 舊的 Magic forms 語法將不再支援.
84 他們需以 =<?plugin-form>= 代替.''
86 If the plugin is called using *<?plugin-form* instead of *<?plugin*
87 and the plugin supports searching, then it will be rendered as a form.
91 If given, specifies the size of the input area.
95 Specifies the default value for the input.
99 A search plugin invoked with *<?plugin* instead of *<?plugin-form*
100 simply inserts the search results of the plugin:
103 <<TitleSearch s=wiki noheader=true >>
106 Search results for Page titles containing 'wiki':
108 <<TitleSearch s=wiki noheader=true >>
111 <?plugin-form FullTextSearch ?>
116 <?plugin-form FullTextSearch ?>
121 <?plugin-form TitleSearch formsize=12 ?>
126 <?plugin-form TitleSearch formsize=12 ?>