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, Doc --> http://doc.jspwiki.org/2.6/wiki/%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.8.3-svn-4.

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: 9747. Cache hits: 374903. History cache hits: 915. History cache misses: 5640. Cache consistency checks: 1000s.

totalpages#

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

uptime#

Inserts the amount of time since this Wiki has been last restarted. This wiki has been up for 3d, 18h 1m 54s.

username#

Inserts the name of the user currently logged in, or else "unknown guest" (or the corresponding localized text of the selected language).

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-31) was last changed on 19-Mar-2009 10:15 by Janne Jalkanen