About phpwiki: URLs
A special type of URL is available for making links to perform administrative and other special functions in PhpWiki. Here is a brief description of how they work.
The basic syntax of a phpwiki: URL is
phpwiki:pagename?query-args
If pagename is omitted it defaults to the current page.
Query-args should be a set of parameters in standard HTTP GET format.
The "action=x" parameter should almost always be given. It can be one of browse, diff, edit, viewsource, zip, dumpserial, loadserial, remove, lock, unlock, login, logout, setprefs or save. The default action is browse.
Some of the actions accept other parameters.
- FullTextSearch, TitleSearch
- Accepts s=search term, and size=input size.
- edit
- Accepts version.
- remove
- Accepts verify.
- save
- Accepts editversion, minor_edit, and content.
- setprefs
- Accepts edit_area_width, edit_area_height.
Writing Magic Links in Wiki Pages
A magic link looks like:
[ text | phpwiki-url ]
The "text |" is optional but usually recommended. If given it will provide the label for the link.
The phpwiki-url is a phpwiki: URL as described above.
Some examples
[ Edit the SandBox | phpwiki:SandBox?action=edit ]
will generate a link which will take you directly to editing the SandBox, like so: Edit the SandBox.
Other possibilites:
Writing Magic Forms in Wiki Pages
Note: The old syntax for Magic forms is no longer supported. They are superseded by <?plugin-form>.
If the plugin is called using <?plugin-form instead of <?plugin and the plugin supports searching, then it will be rendered as a form.
- size
- If given, specifies the size of the input area.
- s
- Specifies the default value for the input.
Examples:
A search plugin invoked with <?plugin instead of <?plugin-form simply inserts the search results of the plugin:
<?plugin TitleSearch s=wiki noheader=true ?>
Search results for Page titles containing 'wiki':
CommentUtiliserWiki CraoWiki Discuss WikiLens HowToUseWiki InterWiki InterWikiMap InterWikiSearch MagicPhpWikiURLs PhpWiki PhpWikiAdministration PhpWikiAdministration/AdminMetaData PhpWikiAdministration/Chmod PhpWikiAdministration/Remove PhpWikiAdministration/Rename PhpWikiAdministration/Replace PhpWikiAdministration/SetPassword PhpWikiDocumentation PhpWikiPoll PhpWikiRss PluginWiki ReiniUrban/WikiLensPatches ReiniUrban/WikiLensPatches/Buddy ReiniUrban/WikiLensPatches/CreatePage ReiniUrban/WikiLensPatches/NewUserWelcomePage ReiniUrban/WikiLensPatches/PageListColumns ReiniUrban/WikiLensPatches/PreferenceApp ReiniUrban/WikiLensPatches/RateIt ReiniUrban/WikiLensPatches/RatingsDb ReiniUrban/WikiLensPatches/RatingsUser ReiniUrban/WikiLensPatches/UserRatings The Wiki Way: Collaboration and Sharing on the Internet WOWWiki.com WikiBlogPlugin WikiBlogPlugin/Blog WikiBlogPlugin/Blog/2007-05-31 WikiBlogPlugin/Blog/2007-06-09 WikiBlogPlugin/Blog/2008-01-07 WikiLens WikiLens/Developers WikiLens/Developers/StructuredDataTutorial WikiLens/Developers/Utils WikiLens/FAQ WikiLens/Features WikiLens/InstallNotes WikiLens/StructuredData WikiLens/StructuredDataTutorial WikiLens/StructuredDataTutorial/Developers WikiLens/Tutorial WikiLens/Tutorial/CreatingACategory WikiLens/Tutorial/CreatingANewPage WikiLens/Tutorial/EditingWikiPages WikiLens/Tutorial/RatingItems WikiLens/Tutorial/StructuredData WikiLens/Tutorial/ViewingTheWiki WikiLens/Tutorial/WhatIsAWiki WikiLens/Tutoriel WikiLens/Tutoriel/CestQuoiUnWiki WikiLens/Tutoriel/CréerNouvellePage WikiLens/Tutoriel/CréerUneNouvelleCatégorie WikiLens/Tutoriel/DonnéesStructurées WikiLens/Tutoriel/ModifierPagesWiki WikiLens/Tutoriel/NoterDesItems WikiLens/Tutoriel/VisualiserLeWiki WikiLens/TutorielDonnéesStructurées WikiLensCategory WikiLensFeature WikiLensMetaData WikiMot WikiPlugin WikiWikiWeb WikiWord Wikilicious wikipedia.org
<?plugin-form FullTextSearch ?>
gives
While
<?plugin-form TitleSearch formsize=12 ?>
yields
