• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
      • Install/Upgrade
      • Admin Manual
      • User Manual
      • Style/Phrase Changes
      • Changelog
      • Security Issues
    • 
    • Wiki
    • Help
    • VaultWiki 4 Manual
    • Variable Syntax

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    • Main
    • View
      • Source Code
      • History of Edits
    • English (US)

    1. VW4
    2. Variable Syntax

    This page is a chapter in VW4 Editing Syntax
    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.
    Code:
    [var]varname|args[/var]


    Contents

    1. 1Current Time
    2. 2Article-related
    3. 3Counters
    4. 4Revision-related
    5. 5User-related
    6. 6Accessibility
    7. 7URL-related

    Current Time

    When 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.
    • CURRENT
    • CURRENTDAY
    • CURRENTDAY2
    • CURRENTDAYNAME
    • CURRENTDOW
    • CURRENTHOUR
    • CURRENTMONTH
    • CURRENTMONTHABBREV
    • CURRENTMONTHNAME
    • CURRENTMONTHNAMEGEN
    • CURRENTTIME
    • CURRENTTIMESTAMP
    • CURRENTWEEK
    • CURRENTYEAR
    Another one is called CURRENTVERSION, which is not time-related. Instead, it shows the current VaultWiki version.

    Article-related

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

    Counters

    NUMBEROFARTICLES 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-related

    The following variables return information about the current revision of the page:
    • REVISIONID
    • REVISIONDAY
    • REVISIONDAY2
    • REVISIONMONTH
    • REVISIONYEAR
    • REVISIONTIMESTAMP
    • REVISIONUSER

    User-related

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

    Accessibility

    DIRMARK and DIRECTIONMARK return the current page's text-direction.
    CONTENTLANGUAGE returns the current page's language.

    URL-related

    URLENCODE 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.
    VW4 Editing Syntax
    VW4 Auto-Links 
    VW4 Edit History 

    This page has been seen 223,436 times.

      • Created by
        pegasus
        • View Public Profile
        • Show contributions to this page
        • Send a private message to pegasus
        • Visit pegasus's homepage!
        on January 4, 2015

    Users Browsing This Page (0 members, 1 guests)

    Search the Wiki

    Show results of these types:

    Share This Page

    Click a button below to activate it. Click again to share. Privacy Information Keep in mind that simply activating a button will reveal some of your browsing data with the selected third-party service in accordance with their own Terms of Service and/or Privacy Policy.
    Like0
    Link here from this web site
    Link here from the web
    Submit to Digg Digg
    Submit to del.icio.us del.icio.us
    Submit to StumbleUpon StumbleUpon
    Submit to Google Google

    Recent Activity

    Filters

    VW4 User Manual

    Book Table of Contents
    • 6.1VW4 Editing Syntax
      1. 6.1.1VW4 Wiki Links
        1. 6.1.1.1VW4 Auto-Links
      2. 6.1.2VW4 Variable Syntax
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 10:30 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.
    "Wiki" powered by VaultWiki v4.1.9.