wiki-archive/twiki/data/TWiki/VarREVINFO2.txt,v

75 lines
2.1 KiB
Plaintext
Raw Normal View History

head 1.2;
access;
symbols;
locks; strict;
comment @# @;
1.2
date 2007.01.16.04.12.04; author TWikiContributor; state Exp;
branches;
next 1.1;
1.1
date 2006.06.25.16.26.29; author TWikiContributor; state Exp;
branches;
next ;
desc
@buildrelease
@
1.2
log
@buildrelease
@
text
@%META:TOPICINFO{author="TWikiContributor" date="1158898025" format="1.2" version="2"}%
%META:TOPICPARENT{name="TWikiVariables"}%
#VarREVINFO2
---+++ REVINFO{"format"} -- formatted revision information of topic
* Syntax: =%<nop>REVINFO{"format"}%=
* Supported parameters:
| *Parameter:* | *Description:* | *Default:* |
| ="format"= | Format of revision information, see supported variables below | ="r1.$rev - $date - $wikiusername"= |
| =web="..."= | Name of web | Current web |
| =topic="..."= | Topic name | Current topic |
| =rev="1.5"= | Specific revison number | Latest revision |
* Supported variables in format:
| *Variable:* | *Unit:* | *Example* |
| =$web= | Name of web | Current web |
| =$topic= | Topic name | Current topic |
| =$rev= | Revison number. Prefix =r1.= to get the usual =r1.5= format | =5= |
| =$username= | Login username of revision | =jsmith= |
| =$wikiname= | WikiName of revision | =JohnSmith= |
| =$wikiusername= | <nop>WikiName with %MAINWEB% web prefix | =%MAINWEB%.JohnSmith= |
| =$date= | Revision date | =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 [[#VarGMTIME2][GMTIME{"format"}]] | |
* Example: =%<nop>REVINFO{"$date - $wikiusername" rev="1.1"}%= returns revision info of first revision
* Related: [[#VarGMTIME2][GMTIME{"format"}]], [[#VarREVINFO][REVINFO]]
@
1.1
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
a17 2
| =$date= | Revision date | =11 Jul 2004= |
| =$time= | Revision time | =23:24:25= |
d21 4
d26 1
a26 2
* Related: [[#VarREVINFO][REVINFO]]
@