Log In | Users | Register
Welcome, Registration, and other StartingPoints; Foswiki history & Wiki style; All the docs...
Edit | Attach | New | Raw | Diff | Print | Subscribe | Tools
You are here: System » Macros » VarREVINFO

REVINFO -- revision information of current topic

  • Syntax:
  • Date format defined as {DefaultDateFormat} in configure

REVINFO{"format"} -- formatted revision information of topic

  • Syntax: %REVINFO% OR %REVINFO{"format"}%
  • %REVINFO% is equivalent to %REVINFO{format="r1.$rev - $date - $wikiusername"}%
  • Supported parameters:
    Parameter: Description: Default:Sorted ascending
    "format" Format of revision information, see supported formatting tokens below "r1.$rev - $date - $wikiusername"
    topic="..." Topic name Current topic
    web="..." Name of web Current web
    rev="1.5" Specific revision number Latest revision
  • Supported formatting tokens:
    Token: Unit: Example
    $web Name of web Current web
    $topic Topic name Current topic
    $rev Revision number. Prefix r1. to get the usual r1.5 format 5
    $username Login username of revision jsmith
    $wikiname WikiName of revision JohnSmith
    $wikiusername WikiName with Main web prefix Main.JohnSmith
    $date Revision date. Actual date format defined as {DefaultDateFormat} in configure 21 Sep 2006
    $time Revision time 23:24:25
    $iso Revision date in ISO date format 2006-09-22T06:24:25Z
    $min, $sec, etc. Same date format qualifiers as GMTIME{"format"}  
  • Example: %REVINFO{"$date - $wikiusername" rev="1.1"}% returns revision info of first revision
  • Related: GMTIME{"format"}, REVINFO
spacer
This site is managed by the Center for Climate Systems Modeling (C2SM).
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding C2SM Wiki? Send feedback