JSPWiki has many variables that can be embedded in pages on the fly. See Text Formatting Rules for how to do it. Quick example:

[{$jspwikiversion}]

applicationname

This is the name of this Wiki. It has been set by the administrator in "jspwiki.properties". This Wiki is called JSPWiki.

baseurl

The base URL address for this wiki. Example: http://www.jspwiki.org/.

  • Strange, here it seems to work with the trailing slash, in our setup (Windows 2000, Apache 2, Tomcat 5.5, JSPWiki 2.2.28 the trainling slash is removed, even though defined in the property file! -- G. Hagedorn, 10-2005

encoding

Describes the character encoding used in this Wiki. An encoding of "UTF-8" means that the Wiki accepts any character, including Chinese, Japanese, etc. Encoding "ISO-8859-1" means that only western languages are supported. This wiki uses the UTF-8 encoding.

inlinedimages

Lets you know which image types are being inlined. Example: *.png, *.jpg.

Writes HTML code for supported InterWiki links. Example:
WikiWikiWeb --> http://c2.com/cgi/wiki?%s, JSPWiki --> http://www.jspwiki.org/Wiki.jsp?page=%s, Bug --> http://bugs.jspwiki.org/show_bug.cgi?id=%s, Wikipedia --> http://www.wikipedia.org/wiki/%s, TWiki --> http://twiki.org/cgi-bin/view/TWiki/%s, Google --> http://www.google.com/search?q=%s, MeatballWiki --> http://usemod.com/cgi-bin/mb.pl?%s, Edit --> Edit.jsp?page=%s.

jspwikiversion

Inserts the version number of the JSPWiki engine. For example, this version is 2.6.3-rc-2.

uptime

Inserts the amount of time since this Wiki has been last restarted. This wiki has been up for 0d, 23h 19m 48s.

pagename

Inserts the current page name. Example: This page is called WikiVariables.

pageprovider

The current PageProvider. Example: com.ecyrd.jspwiki.providers.CachingProvider.

pageproviderdescription

A verbose, HTML description about the currently used page provider. Example: Real provider: com.ecyrd.jspwiki.providers.VersioningFileProvider. Cache misses: 3270. Cache hits: 116152. History cache hits: 888. History cache misses: 2455. Cache consistency checks: 1000s.

totalpages

The total number of pages available in this Wiki. Example: 3383.

Inserting JSPWiki properties

You can also access some of the JSPWiki properties (that have been defined by the site maintainer) by using their property names directly. See SystemInfo for an example. Note that some properties might not be accessible due to security reasons.

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-26) was last changed on 15-Jun-2007 06:49 by David Au [RSS]