JSPWiki has many variables that can be embedded in pages on the fly. See Text Formatting Rules for how to do it. Quick example:
This is the name of this Wiki. It has been set by the administrator in "jspwiki.properties". This Wiki is called JSPWiki.
The base URL address for this wiki. Example: /JSPWiki.
- 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
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.
Lets you know which image types are being inlined. Example: *.png.
Writes HTML code for supported InterWiki links. Example:
TWiki --> http://twiki.org/cgi-bin/view/TWiki/%s, WikiWikiWeb --> http://c2.com/cgi/wiki?%s, Reader --> Wiki.jsp?page=%s&skin=reader, Wikipedia --> http://www.wikipedia.com/wiki/%s, Raw --> Wiki.jsp?page=%s&skin=raw, Doc --> http://jspwiki-wiki.apache.org/Wiki.jsp?page=%s, Google --> http://www.google.com/search?q=%s, JIRA --> https://issues.apache.org/jira/browse/JSPWIKI-%s, RSS --> rss.jsp?page=%s&mode=wiki, Group --> Group.jsp?group=%s, Edit --> Edit.jsp?page=%s, Location --> https://maps.google.com/maps?q=%s, MeatballWiki --> http://usemod.com/cgi-bin/mb.pl?%s, JSPWiki --> http://jspwiki-wiki.apache.org/Wiki.jsp?page=%s.
Inserts the version number of the JSPWiki engine. For example, this version is 2.11.0-M8.
Inserts the amount of time since this Wiki has been last restarted. This wiki has been up for 47d, 21h 30m 44s.
Inserts the current page name. Example: This page is called WikiVariable.
The current PageProvider. Example: org.apache.wiki.providers.CachingProvider.
A verbose, HTML description about the currently used page provider. Example: Real provider: org.apache.wiki.providers.VersioningFileProvider. Cache misses: 325. Cache hits: 817350. History cache hits: 152915. History cache misses: 325.
The total number of pages available in this Wiki. Example: 325.
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.