<li><a href="#About Variables"> About Variables</a></li>
<li><a href="#Predefined Variables"> Predefined Variables</a></li>
<li><a href="#Preferences Variables"> Preferences Variables</a></li>
- <li><a href="#Setting and Creating New Prefere"> Setting and Creating New Preferences</a></li>
+ <li><a href="#Setting Variable Preferences"> Setting Variable Preferences</a></li>
+ <li><a href="#Creating Custom Variables"> Creating Custom Variables</a></li>
</ul>
</li>
</ul>
### <a name="About Variables"></a> About Variables
-**_Include/write if not found elsewhere._**
+TWikiVariables are text strings enclosed in percentage signs: <code>**%VARIABLE%**</code> that represent stored data. When a topic is rendered for viewing, defined variables replaced by their actual values. TWiki has two types of variable, predefined, and Preference-based, where you can change settings. Through Preference variables, you can even define custom variables. Clearly, they are a power TWiki feature.
### <a name="Predefined Variables"></a> Predefined Variables
</tr>
<tr>
<td><code>%SCRIPTSUFFIX%</code></td>
- <td> The script suffix, i.e. <code>.pl</code>, is <b></b></td>
+ <td> The script suffix, ex: <code>.pl</code>, <code>.cgi</code> is <b></b></td>
</tr>
<tr>
<td><code>%PUBURL%</code></td>
</tr>
<tr>
<td><code>%URLPARAM{"name"}%</code></td>
- <td> Returns the value of a URL parameter. I.e. <code>%URLPARAM{"skin"}%</code> returns <b>print</b> for a <code>.../view/%WEB%/%TOPIC%?skin=print</code> URL. Is <b></b></td>
+ <td> Returns the value of a URL parameter. Ex: <code>%URLPARAM{"skin"}%</code> returns <b>print</b> for a <code>.../view/%WEB%/%TOPIC%?skin=print</code> URL. Is <b></b></td>
</tr>
<tr>
<td><code>%WIKITOOLNAME%</code></td>
</tr>
<tr>
<td><code>%WIKIVERSION%</code></td>
- <td> Wiki tool version, is <b>TWiki-4.1.2, Sat, 03 Mar 2007, build 13046</b></td>
+ <td> Wiki tool version is <b>TWiki-4.1.2, Sat, 03 Mar 2007, build 13046</b></td>
</tr>
<tr>
<td><code>%USERNAME%</code></td>
- <td> Your login username, is <b>admin</b></td>
+ <td> Your login username is <b>admin</b></td>
</tr>
<tr>
<td><code>%WIKINAME%</code></td>
</tr>
<tr>
<td><code>%TWIKIWEB%</code></td>
- <td> The web containing all documentation and configuration of %WIKITOOLNAME%. Is <b>TWiki</b></td>
+ <td> The web containing all documentation and configuration of %WIKITOOLNAME% is <b>TWiki</b></td>
</tr>
<tr>
<td><code>%WEB%</code></td>
- <td> The current web, is <b>%WEB%</b></td>
+ <td> The current web is <b>%WEB%</b></td>
</tr>
<tr>
<td><code>%BASEWEB%</code></td>
<td> 2 digit year </td>
<td> 99 </td>
</tr>
- </table> Variables can be shortened to 3 characters. Example: <br /><code>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</code> is <br /><b>29 Jun, 2010 - 15:27:56</b></td>
+ </table> Variables can be shortened to 3 characters. Example: <br /><code>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</code> is <br /><b>29 Jun, 2010 - 15:27:59</b></td>
</tr>
<tr>
<td><code>%SERVERTIME%</code></td>
</tr>
</table>
-### <a name="Setting and Creating New Prefere"></a> Setting and Creating New Preferences
+### <a name="Setting Variable Preferences"></a> Setting Variable Preferences
- The syntax for Preferences variables is the same anywhere in TWiki. In Edit mode, from the start of a new line: <br />[6 spaces] \* [space] Set [space] VARIABLENAME [space] = [value] <br />**_Example:_**
- <code>**Set VARIABLENAME = value**</code>
-- 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, images.<br />**_Example:_** To place a logo anywhere in a web by typing <code>**%MYLOGO%**</code>, define the variable in the web's [[WebPreferences]] topic, like this (in this case, you also have to upload <code>**logo.gif**</code> to the same directory):
+
+### <a name="Creating Custom Variables"></a> 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.<br />**_Example:_** To place a logo anywhere in a web by typing <code>**%MYLOGO%**</code>, define the variable in the web's [[WebPreferences]] topic, like this (in this case, you also have to upload <code>**logo.gif**</code> to the same directory):
- <code>**Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif**</code>
--- [[MikeMannix]] - 26 Aug 2001 <br />
+-- [[MikeMannix]] - 30 Aug 2001 <br />
3. [[TWikiUpgradeGuide|Main/TWikiUpgradeNotes]]
4. [[TWikiUserAuthentication|Main/TWikiAuthentication]]
5. [[TWikiAccessControl]]
- 6. [[TWikiVariables]]
- 7. [[TWikiTemplates]]
- 8. [[TWikiFormTemplate]]
- 9. [[TWikiSkins]]
- 10. [[TWikiPlugins]]
- 11. [[MetaDataDefinition]]
- 12. [[MetaDataRendering]]
- 13. [[MonitorSiteActivity|Main/TWikiNotificationOfChanges]]
- 14. [[ModifyTopics|Main/RenameTopic]]
- 15. [[ModifyWebs|Main/TWikiAdministration]]
+ 6. [[TWikiTemplates]]
+ 7. [[TWikiSkins]]
+ 8. [[TWikiVariables]]
+ 9. [[TWikiMetaData]]
+ 10. [[TWikiFormTemplate]]
+ 11. [[TWikiPlugins]]
+ 12. [[MonitorSiteActivity|Main/TWikiNotificationOfChanges]]
+ 13. [[ModifyTopics|Main/RenameTopic]]
+ 14. [[ModifyWebs|Main/TWikiAdministration]]
<form action="http://www.dementia.org/twiki//search/%WEB%/">
<ul>