1 Date: Wed, 28 May 2008 19:06:22 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FMagicPhpWikiURLs;
8 Content-Transfer-Encoding: binary
10 !!! About phpwiki: URLs
12 A special type of URL is available for making links to perform
13 administrative and other special functions in PhpWiki. Here is a
14 brief description of how they work.
16 The basic syntax of a phpwiki: URL is
19 __phpwiki:__''pagename''__?__''query-args''
22 If _pagename_ is omitted it defaults to the current page.
24 _Query-args_ should be a set of parameters in standard HTTP GET
27 The "action=''x''" parameter should almost always be given. It can be one of
28 __browse__, __diff__, __edit__, __viewsource__,
29 __zip__, __dumpserial__, __loadserial__,
30 __remove__, __lock__, __unlock__,
31 __login__, __logout__, __setprefs__ or __save__.
32 The default action is __browse__.
34 Some of the actions accept other parameters.
36 __FullTextSearch__, __TitleSearch__:
38 Accepts __s__=search term, and __size__=input size.
50 Accepts __editversion__, __minor_edit__, and __content__.
54 Accepts __edit_area_width__, __edit_area_height__.
56 !! Writing Magic Links in Wiki Pages
58 A magic link looks like:
61 __~[__ ''text'' __|__ ''phpwiki-url'' __]__
64 The "''text'' *|*" is optional but usually recommended. If given it
65 will provide the label for the link.
67 The _phpwiki-url_ is a *phpwiki:* URL as described above.
72 [ Edit the SandBox | phpwiki:SandBox?action=edit ]
74 will generate a link which will take you directly to editing the
75 SandBox, like so: [Edit the SandBox | phpwiki:SandBox?action=edit].
78 * [ Diff the SandBox | phpwiki:SandBox?action=diff ],
79 * [ Lock the HomePage | phpwiki:HomePage?action=lock ],
80 * [ Get a Full Zip Dump | phpwiki:?action=zip&include=all ],
81 * Search for [ Page titles containing 'wiki' | phpwiki:?action=TitleSearch&s=wiki ]
83 !! Writing Magic Forms in Wiki Pages
85 ''__Note__: The old syntax for Magic forms is no longer supported.
86 They are superseded by =<?plugin-form>=.''
88 If the plugin is called using *<?plugin-form* instead of *<?plugin*
89 and the plugin supports searching, then it will be rendered as a form.
93 If given, specifies the size of the input area.
97 Specifies the default value for the input.
101 A search plugin invoked with *<?plugin* instead of *<?plugin-form*
102 simply inserts the search results of the plugin:
105 <?plugin TitleSearch s=wiki noheader=true ?>
108 Search results for Page titles containing 'wiki':
110 <?plugin TitleSearch s=wiki noheader=true ?>
113 <?plugin-form FullTextSearch ?>
118 <?plugin-form FullTextSearch ?>
123 <?plugin-form TitleSearch formsize=12 ?>
128 <?plugin-form TitleSearch formsize=12 ?>
132 [PhpWikiDocumentation]