1 <a name="VarREVINFO2"></a>
3 ### <a name="REVINFO{"format"} -- formatted r"></a> REVINFO\{"format"\} -- formatted revision information of topic
5 - Syntax: `%REVINFO{"format"}%`
6 - Supported parameters: <table border="1" cellpadding="0" cellspacing="0">
8 <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
9 <th bgcolor="#99CCCC"><strong> Description: </strong></th>
10 <th bgcolor="#99CCCC"><strong> Default: </strong></th>
13 <td><code>"format"</code></td>
14 <td> Format of revision information, see supported variables below </td>
15 <td><code>"r1.$rev - $date - $wikiusername"</code></td>
18 <td><code>web="..."</code></td>
19 <td> Name of web </td>
20 <td> Current web </td>
23 <td><code>topic="..."</code></td>
25 <td> Current topic </td>
28 <td><code>rev="1.5"</code></td>
29 <td> Specific revison number </td>
30 <td> Latest revision </td>
33 - Supported variables in format: <table border="1" cellpadding="0" cellspacing="0">
35 <th bgcolor="#99CCCC"><strong> Variable: </strong></th>
36 <th bgcolor="#99CCCC"><strong> Unit: </strong></th>
37 <th bgcolor="#99CCCC"><strong> Example </strong></th>
40 <td><code>$web</code></td>
41 <td> Name of web </td>
42 <td> Current web </td>
45 <td><code>$topic</code></td>
47 <td> Current topic </td>
50 <td><code>$rev</code></td>
51 <td> Revison number. Prefix <code>r1.</code> to get the usual <code>r1.5</code> format </td>
52 <td><code>5</code></td>
55 <td><code>$username</code></td>
56 <td> Login username of revision </td>
57 <td><code>jsmith</code></td>
60 <td><code>$wikiname</code></td>
61 <td>[[Main/WikiName]] of revision </td>
62 <td><code>JohnSmith</code></td>
65 <td><code>$wikiusername</code></td>
66 <td> WikiName with %USERSWEB% web prefix </td>
67 <td><code>%USERSWEB%.JohnSmith</code></td>
70 <td><code>$date</code></td>
71 <td> Revision date. Actual date format defined as {DefaultDateFormat} in <a href="http://www.dementia.org/twiki/configure" target="_top">configure</a></td>
72 <td><code>21 Sep 2006</code></td>
75 <td><code>$time</code></td>
76 <td> Revision time </td>
77 <td><code>23:24:25</code></td>
80 <td><code>$iso</code></td>
81 <td> Revision date in ISO date format </td>
82 <td><code>2006-09-22T06:24:25Z</code></td>
85 <td><code>$min</code>, <code>$sec</code>, etc. </td>
86 <td> Same date format qualifiers as [[Main/VarGMTIME2]]</td>
90 - Example: `%REVINFO{"$date - $wikiusername" rev="1.1"}%` returns revision info of first revision
91 - Related: [[GMTIME{"format"}|Main/VarGMTIME2]], [[REVINFO|Main/VarREVINFO]]