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 Eiswiki.

baseurl#

The base URL address for this wiki. Example: http://solarb.mssl.ucl.ac.uk:8080/eiswiki/.

  • 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.

Writes HTML code for supported InterWiki links. Example:
WikiWikiWeb --> http://c2.com/cgi/wiki?%s, JSPWiki --> http://jspwiki-wiki.apache.org/Wiki.jsp?page=%s, Doc --> http://jspwiki-wiki.apache.org/Wiki.jsp?page=%s, Wikipedia --> http://www.wikipedia.com/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, JIRA --> https://issues.apache.org/jira/browse/JSPWIKI-%s, Edit --> Edit.jsp?page=%s.

jspwikiversion#

Inserts the version number of the JSPWiki engine. For example, this version is 2.10.2.

uptime#

Inserts the amount of time since this Wiki has been last restarted. This wiki has been up for 0d, 10h 45m 43s.

pagename#

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

pageprovider#

The current PageProvider. Example: org.apache.wiki.providers.CachingProvider.

pageproviderdescription#

A verbose, HTML description about the currently used page provider. Example: Real provider: org.apache.wiki.providers.VersioningFileProvider. Cache misses: 241. Cache hits: 2801. History cache hits: 126. History cache misses: 101.

totalpages#

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

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

Only authorized users are allowed to upload new attachments.
« This page (revision-801) was last changed on 03-Feb-2017 10:35 by Angelina