Changeset 1284
- Timestamp:
- 12/12/08 05:52:54 (3 years ago)
- Location:
- trunk/core
- Files:
-
- 1 deleted
- 3 edited
-
data/System/VarGMTIME2.txt (modified) (1 diff)
-
data/System/VarREVINFO.txt (modified) (1 diff)
-
data/System/VarREVINFO2.txt (deleted)
-
lib/Foswiki/Contrib/core/MANIFEST (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/System/VarGMTIME2.txt
r688 r1284 26 26 * Example: =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= expands to =%GMTIME{"$day $month, $year - $hour:$min:$sec"}%= 27 27 * __%X% Note:__ When used in a template topic, this macro will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 28 * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarREVINFO2][REVINFO]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSERVERTIME][SERVERTIME]] 29 28 * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarREVINFO][REVINFO]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarSERVERTIME][SERVERTIME]] -
trunk/core/data/System/VarREVINFO.txt
r683 r1284 3 3 #VarREVINFO 4 4 ---+++ REVINFO -- revision information of current topic 5 * Syntax: =%<nop>REVINFO%= 6 * Expands to: <code>%REVINFO%</code> 7 * Date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] 8 * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarREVINFO2][REVINFO{"format"}]] 9 5 * Syntax: 6 * Date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] 7 ---+++ REVINFO{"format"} -- formatted revision information of topic 8 * Syntax: =%<nop>REVINFO%= OR =%<nop>REVINFO{"format"}%= 9 * =%<nop>REVINFO%= is equivalent to =%<nop>REVINFO{format="r1.$rev - $date - $wikiusername"}%= 10 * Expands to: <code>%REVINFO%</code> 11 * Supported parameters: 12 | *Parameter:* | *Description:* | *Default:* | 13 | ="format"= | Format of revision information, see supported formatting tokens below | ="r1.$rev - $date - $wikiusername"= | 14 | =web="..."= | Name of web | Current web | 15 | =topic="..."= | Topic name | Current topic | 16 | =rev="1.5"= | Specific revision number | Latest revision | 17 * Supported formatting tokens: 18 | *Token:* | *Unit:* | *Example* | 19 | =$web= | Name of web | Current web | 20 | =$topic= | Topic name | Current topic | 21 | =$rev= | Revision number. Prefix =r1.= to get the usual =r1.5= format | =5= | 22 | =$username= | Login username of revision | =jsmith= | 23 | =$wikiname= | WikiName of revision | =JohnSmith= | 24 | =$wikiusername= | <nop>WikiName with %USERSWEB% web prefix | =%USERSWEB%.JohnSmith= | 25 | =$date= | Revision date. Actual date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] | =21 Sep 2006= | 26 | =$time= | Revision time | =23:24:25= | 27 | =$iso= | Revision date in ISO date format | =2006-09-22T06:24:25Z= | 28 | =$min=, =$sec=, etc. | Same date format qualifiers as [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGMTIME2][GMTIME{"format"}]] | | 29 * Example: =%<nop>REVINFO{"$date - $wikiusername" rev="1.1"}%= returns revision info of first revision 30 * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGMTIME2][GMTIME{"format"}]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarREVINFO][REVINFO]] -
trunk/core/lib/Foswiki/Contrib/core/MANIFEST
r1163 r1284 249 249 data/System/VarREMOTEUSER.txt 0644 250 250 data/System/VarREVINFO.txt 0644 251 data/System/VarREVINFO2.txt 0644252 251 data/System/VarS.txt 0644 253 252 data/System/VarSCRIPTNAME.txt 0644
Note: See TracChangeset
for help on using the changeset viewer.
