The [var] BB-Code allows editors to insert information into wiki articles that is usually only available behind-the-scenes or to make changes to that information. The value of the tag should be the name of the variable that you wish to use. If the variable accepts any arguments, you can add those as well, separating them with the | separator.
Current TimeWhen a user visits a page, the following variables display the current time, formatted in various ways. The page is still eligible for caching, so the time may become out of sync.
Another one is called CURRENTVERSION, which is not time-related. Instead, it shows the current VaultWiki version.
Article-relatedDISPLAYTITLE replaces the title of the current article with the provided argument.
TYPE appends the provided argument to the end of the title, as a subtitle.
Neither of these affect the article's URL.
DESCRIPTION replaces the meta description of the current article with the provide argument.
KEYWORDS adds the provided keyword list to the keywords meta tag for the current article.
ID returns the page ID for the specified article title, or 0 if it does not exist or is not an article.
CountersNUMBEROFARTICLES returns the number of articles in the same wiki area as the current article.
NUMBEROFPAGES returns the number of articles in all wiki areas.
NUMBEROFEDITS returns the number of edits for all articles in all wiki areas.
All of these variables accept the R argument, which returns the number without applying any formatting.
Revision-relatedThe following variables return information about the current revision of the page:
User-relatedUSER returns information about the user currently viewing the page. A page that uses this variable cannot be added to the post cache. To return specific data, include the name of the field as the argument. Passwords and other sensitive fields cannot be returned with this code.
AccessibilityDIRMARK and DIRECTIONMARK return the current page's text-direction.
CONTENTLANGUAGE returns the current page's language.
URL-relatedURLENCODE prepares the argument for transmission via a URL or form data.
PAGENAME returns the title of the current article.
FULLPAGENAME returns the prefix and title of the current article.
FULLPAGENAMEE returns the encoded title of the article, as used in the article's URL.
SITENAME returns the title of the wiki.
SERVER returns the path to the wiki, excluding the wiki directory.
SERVERNAME returns the domain name of the current HTTP request.
SCRIPTPATH returns the relative path to the current page.
This page has been seen 1,646 times.