From ac8fe7ba6cea33bb3ea9d33b9d6437010a2ae36e Mon Sep 17 00:00:00 2001 From: Peter Thoeny Date: Sat, 20 Jan 2001 08:58:55 +0000 Subject: none --- TWiki/TWikiVariables.mdwn | 66 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-) diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn index 493d2eff..5f988f90 100644 --- a/TWiki/TWikiVariables.mdwn +++ b/TWiki/TWikiVariables.mdwn @@ -57,10 +57,26 @@ %WEB% The current web, is %WEB% + + %BASEWEB% + The web name where the includes started, e.g. the web of the first topic of nested includes. Same as %WEB% in case there is no include. + + + %INCLUDINGWEB% + The web name of the topic that includes the current topic. Same as %WEB% in case there is no include. + %TOPIC% The current topic name, is %TOPIC% + + %BASETOPIC% + The name of the topic where the includes started, e.g. the first topic of nested includes. Same as %TOPIC% in case there is no include. + + + %INCLUDINGTOPIC% + The name of the topic that includes the current topic. Same as %TOPIC% in case there is no include. + %SPACEDTOPIC% The current topic name with added spaces, for regular expression search of Ref-By, is %SPACEDTOPIC% @@ -71,7 +87,53 @@ %GMTIME{"format"}% - Formatted GM time based on keywords (first three characters needed.)
Example: %GMTIME{"day month, year - hour:min:sec"}% is %GMTIME{"day month, year - hour:min:sec"}% + Formatted GM time based on time variables. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Variable:Unit:Example
$seconds seconds 59
$minutes minutes 59
$hours hours 23
$day day of month 31
$month month in ISO format Dec
$mo 2 digit month 12
$year 4 digit year 1999
$ye 2 digit year 99
Variables can be shortened to 3 characters. Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}% is
%GMTIME{"$day $month, $year - $hour:$min:$sec"}% %SERVERTIME% @@ -79,7 +141,7 @@ %SERVERTIME{"format"}% - Formatted server time. Example: %SERVERTIME{"hou:min"}% is %SERVERTIME{"hou:min"}% + Formatted server time.
Example: %SERVERTIME{"$hou:$min"}% is %SERVERTIME{"$hou:$min"}% %HTTP_HOST% -- cgit v1.2.3