summaryrefslogtreecommitdiff
path: root/TWiki/TWikiVariables.mdwn
diff options
context:
space:
mode:
authorMikeMannix <MikeMannix>2001-09-15 09:52:20 +0000
committerMikeMannix <MikeMannix>2001-09-15 09:52:20 +0000
commit25fee0fa3526746767128160d17daaf948550147 (patch)
tree76f6cbe369d5ba452eb24ea575076ed2757cca20 /TWiki/TWikiVariables.mdwn
parent51eebbb219c1fd2798b5939539e033e2c7f1ee41 (diff)
none
Diffstat (limited to 'TWiki/TWikiVariables.mdwn')
-rw-r--r--TWiki/TWikiVariables.mdwn18
1 files changed, 10 insertions, 8 deletions
diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn
index 370cf584..f1e8ad5d 100644
--- a/TWiki/TWikiVariables.mdwn
+++ b/TWiki/TWikiVariables.mdwn
@@ -1,22 +1,20 @@
-%INCLUDE\{"UtilTempDocNote"\}%
-
%TOC% %STARTINCLUDE%
# <a name="TWiki_Variables"> TWiki Variables </a>
-_Text strings expanded on the fly include predefined, preference-driven and custom-defined data_
+_Text strings expanded on the fly to display data or system info_
## <a name="Overview"> Overview </a>
-TWikiVariables are text strings enclosed in percentage signs: <code>**%VARIABLE%**</code> 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!
+TWikiVariables are text strings - <code>%VARIABLE%</code> - that expand into content whenever a page is opened. Variables are replaced by their actual values: stored data, or system info (like the date, or the current user). There are predefined variables, and Preference variables that you set. You can also define custom variables, with new names and values.
## <a name="Predefined_Variables"> Predefined Variables </a>
-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.
+With a couple of notable exceptions, predefined variables return set values that are defined 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.
-%WIKITOOLNAME% expands the following variables enclosed in % percent signs:
+%WIKITOOLNAME% expands the following variables (enclosed in <code>**%**</code> percent signs):
-<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #fafafa" width="90%"><font size="13px"><font face="sans-serif"><tr>
+<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #f5f5f5" width="90%"><font size="13px"><font face="sans-serif"><tr>
<th width="160"> Variable: </th>
<th> Expanded to: </th>
</tr>
@@ -109,6 +107,10 @@ With a couple of notable exceptions, predefined variables return set values that
<td> The index topic of all registered users. Is <b>%WIKIUSERSTOPIC%</b></td>
</tr>
<tr>
+ <td><code>%<nop>WIKIPREFSTOPIC%</nop></code></td>
+ <td> The web preferences topic. Is <b>%WIKIPREFSTOPIC%</b></td>
+ </tr>
+ <tr>
<td><code>%<nop>WEBPREFSTOPIC%</nop></code></td>
<td> The web preferences topic. Is <b>%WEBPREFSTOPIC%</b></td>
</tr>
@@ -462,7 +464,7 @@ With a couple of notable exceptions, predefined variables return set values that
Additional variables are defined in the preferences ( site-level ( **_SL_** ) in %TWIKIWEB%.%WIKIPREFSTOPIC%, web-level ( **_WL_** ) in %WEBPREFSTOPIC% of each web, and user level ( **_UL_** ) preferences in individual user topics):
-<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #fafafa" width="90%"><font size="13px"><font face="sans-serif"><tr>
+<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #f5f5f5" width="90%"><font size="13px"><font face="sans-serif"><tr>
<th width="160"> Variable: </th>
<th> Level: </th>
<th> What: </th>