X-Git-Url: https://git.openafs.org/?p=openafs-wiki.git;a=blobdiff_plain;f=TWiki%2FTWikiVariables.mdwn;h=7a1216bf894349a3b2100e37dff56afead950c5c;hp=b0e6bed4aaab554d191056e587ab6f0ba678544e;hb=04be9bae478dd860b91bd383ac1d838e0ea91e95;hpb=98e5b82a176f1746b9e91e8117e9a30383ef9ef9 diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn index b0e6bed..7a1216b 100644 --- a/TWiki/TWikiVariables.mdwn +++ b/TWiki/TWikiVariables.mdwn @@ -1,6 +1,7 @@
**%VARIABLE%**
that represent stored data. When a topic is rendered for viewing, defined variables are replaced by their actual values. TWiki has two types of variable, predefined and Preference-based, where usually you determine the content. Through Preference variables, you can also define custom variables, creating new variable name and value. TWiki variables are as simple to use as they are powerful, and vice versa!
-### Predefined Variables
+## Predefined Variables
With a couple of notable exceptions, predefined variables return set values that are defined one-time on installation and left alone. Most are directory names and file paths, customized for your server, and only have to be updated once in the main configuration file if your server set-up changes.
@@ -257,7 +262,7 @@ With a couple of notable exceptions, predefined variables return set values that
%GMTIME{"$day $month, $year - $hour:$min:$sec"}%
is %GMTIME{"$day $month, $year - $hour:$min:$sec"}%
is %SERVERTIME%
**Set VARIABLENAME = value**
-### Creating Custom Variables
+## Creating Custom Variables
- You can add your own preference variables for an entire site, a single web, or a single topic, using the standard syntax. Whatever you include in your variable will be expanded on display, and treated exactly as if it had been written out. So you can place formatted text, page links, image paths.