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.
Add new attachment
Here's a short reminder on the most common formatting rules you have at your disposal. A complete list is available in TextFormattingRules.
(empty line) Make a paragraph break. ---- Horizontal ruler [link] Create hyperlink to "link", where "link" can be either an internal WikiName or an external link (http://) [text|link] Create a hyperlink where the link text is different from the actual hyperlink link. [text|wiki:link] Create a hyperlink where the link text is different from the actual hyperlink link, and the hyperlink points to a named Wiki. This supports interWiki linking. * Make a bulleted list (must be in first column). Use more (**) for deeper indentations. # Make a numbered list (must be in first column). Use more (##, ###) for deeper indentations. !, !!, !!! Start a line with an exclamation mark (!) to make a heading. More exclamation marks mean bigger headings. __text__ Makes text bold. ''text'' Makes text in italics (notice that these are single quotes (')) {{text}} Makes text in monospaced font. ;term:def Defines 'term' with 'def'. Use this with empty 'term' to make short comments. \\ Forced line break (please use sparingly). |text|more text| Makes a table. Double bars for a table heading.
Don't try to use HTML, since it just won't work.
To embed images just put them available on the web using one of the approved formats, and they will get inlined automatically. To see the list of approved formats, go check SystemInfo.
To make a code block, use triple {'s to open, and triple }'s to close.
(Wondering where this text comes from? It's on a page called Edit Page Help, which you can edit too!)