Since v1.6.3 you can now define your own plugins. These are just simply Java classes that implement the com.ecyrd.jspwiki.plugin.WikiPlugin interface and can be found from somewhere in your class path. The plugins work so that when you write a special code on the Wiki page, the plugins are invoked and their output is inserted into the page, verbatim.
The form is:
[{INSERT <plugin class> WHERE <param1=value1>,<param2=value2>,...}]
You can also use a shortcut: instead of using [{INSERT com.ecyrd.jspwiki.plugin.RecentChangesPlugin you can also use [{INSERT RecentChangesPlugin}]. This works only with the plugins that come with JSPWiki, though.
In addition, you can now (since 1.9.30) omit even the "INSERT", so the shortest possible version for plugins becomes:
[{CurrentTimePlugin}]
If a parameter contains spaces, you can use single quotes (') around the parameter. Like this:
[{INSERT CurrentTimePlugin format='dd MM yyyy'}]
List of plugins included with JSPWiki#
- Counter - Insert a simple counter on a page.
- CurrentTimePlugin - Show the current time.
- Denounce - Denounce a link.
- Image - Have deep control over how an image is placed on the page.
- IndexPlugin - Index of all pages.
- InsertPage - Inserts a portion of another page.
- ListLocksPlugin - Lists page locks.
- RecentChangesPlugin - Displays the recent changes.
- ReferringPagesPlugin - Lists pages that refer to this page.
- UndefinedPagesPlugin - Lists pages that are missing.
- UnusedPagesPlugin - Lists pages that have been orphaned.
- WeblogArchivePlugin - Displays a list to older weblog entries.
- WeblogEntryPlugin - Makes a "new entry" link.
- WeblogPlugin - Builds a weblog.