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%2FMagicPhpWikiURLs;
8 Content-Transfer-Encoding: binary
10 == About phpwiki: URLs
12 一種特別的 URL, 用來建立連結以執行管理和 PhpWiki 裡的其他特殊功能.
18 **phpwiki:**''pagename''**?**''query-args''
21 如果 _pagename_ 被忽略,那麼預設為目前頁面.
23 _Query-args_ 應該是以標準 HTTP GET 格式表示的一組參數.
25 "action=''x''" 參數應該都要被給定. 他可以是這些值的其中一個:
26 **browse**, **diff**, **edit**, **viewsource**,
27 **zip**, **dumpserial**, **loadserial**,
28 **remove**, **lock**, **unlock**,
29 **login**, **logout**, **setprefs** or **save**.
34 **FullTextSearch**, **TitleSearch**:
36 接受 **s** 表示欲搜尋的字串, 而 **size** 表示輸入的長度.
48 接受 **editversion**, **minor_edit**, 和 **content**.
52 接受 **edit_area_width**, **edit_area_height**.
54 === Writing Magic Links in Wiki Pages
59 **~[** ''text'' **|** ''phpwiki-url'' **]**
62 "''text'' *|*" 是可選的,但通常建議使用. 如果給了,他會為此連結提供標籤.
64 _phpwiki-url_ 就如同上面描述的一樣,是一個 *phpwiki:* URL.
69 [ Edit the SandBox | phpwiki:SandBox?action=edit ]
71 將會產生一個連結,而他將會直接引領你去編輯 SandBox, 像是:
72 [Edit the SandBox | phpwiki:SandBox?action=edit].
75 * [ Diff the SandBox | phpwiki:SandBox?action=diff ],
76 * [ Lock the HomePage | phpwiki:HomePage?action=lock ],
77 * [ Get a Full Zip Dump | phpwiki:?action=zip&include=all ],
78 * Search for [ Page titles containing 'wiki' | phpwiki:?action=TitleSearch&s=wiki ]
80 === Writing Magic Forms in Wiki Pages
82 ''**Note**: 舊的 Magic forms 語法將不再支援.
83 他們需以 =<?plugin-form>= 代替.''
85 If the plugin is called using *<?plugin-form* instead of *<?plugin*
86 and the plugin supports searching, then it will be rendered as a form.
90 If given, specifies the size of the input area.
94 Specifies the default value for the input.
98 A search plugin invoked with *<?plugin* instead of *<?plugin-form*
99 simply inserts the search results of the plugin:
102 <<TitleSearch s=wiki noheader=true >>
105 Search results for Page titles containing 'wiki':
107 <<TitleSearch s=wiki noheader=true >>
110 <?plugin-form FullTextSearch ?>
115 <?plugin-form FullTextSearch ?>
120 <?plugin-form TitleSearch formsize=12 ?>
125 <?plugin-form TitleSearch formsize=12 ?>
129 [[PhpWikiDocumentation]]