none
authorPeterThoeny <PeterThoeny>
Mon, 28 Feb 2000 08:45:06 +0000 (08:45 +0000)
committerPeterThoeny <PeterThoeny>
Mon, 28 Feb 2000 08:45:06 +0000 (08:45 +0000)
TWiki/TWikiVariables.mdwn
TWiki/TextFormattingRules.mdwn

index 1c75e5a..4d2b587 100644 (file)
@@ -22,10 +22,6 @@ TWiki expands the following variables enclosed in % percent signs:
     <td> The attachment URL of the current topic, is <b>http://www.dementia.org/twiki//view</b><br /> Example: If you attach a file you can refer to it as <code><b>%ATTACHURL%/image.gif</b></code></td>
   </tr>
   <tr>
-    <td><code>%WIKIWEBMASTER%</code></td>
-    <td> The email address of the Wiki webmaster, is <b></b></td>
-  </tr>
-  <tr>
     <td><code>%WIKITOOLNAME%</code></td>
     <td> Name of wiki tool, is <b>%WIKITOOLNAME%</b></td>
   </tr>
@@ -103,3 +99,48 @@ TWiki expands the following variables enclosed in % percent signs:
       </table> Example: <code><b>%SEARCH{"wiki" web="Main" scope="topic"}%</b></code></td>
   </tr>
 </table>
+
+Additional variables are defined in the preferences ( site-level ( **_SL_** ) in [[TWikiPreferences]], web-level ( **_WL_** ) in [[WebPreferences]] of each web, and user level ( **_UL_** ) preferences in individual user topics):
+
+<table border="1">
+  <tr>
+    <th> Variable: </th>
+    <th> Level: </th>
+    <th> What: </th>
+  </tr>
+  <tr>
+    <td><code>%WIKIWEBMASTER%</code></td>
+    <td><strong><em>SL</em></strong></td>
+    <td> Webmaster email address (sender of email notifications) , is <b></b></td>
+  </tr>
+  <tr>
+    <td><code>%WIKIWEBLIST%</code></td>
+    <td><strong><em>SL</em></strong></td>
+    <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
+  </tr>
+  <tr>
+    <td><code>%WEBTOPICLIST%</code></td>
+    <td><strong><em>WL</em></strong></td>
+    <td> Common links of web (second line of topics) </td>
+  </tr>
+  <tr>
+    <td><code>%WEBCOPYRIGHT%</code></td>
+    <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
+    <td> Copyright notice (bottom right corner of topics) </td>
+  </tr>
+  <tr>
+    <td><code>%WEBBGCOLOR%</code></td>
+    <td><strong><em>WL</em></strong></td>
+    <td> Background color of web </td>
+  </tr>
+  <tr>
+    <td><code>%EDITBOXWIDTH%</code></td>
+    <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+    <td> Horizontal size of edit box, is <b> <code>%EDITBOXWIDTH%</code> </b></td>
+  </tr>
+  <tr>
+    <td><code>%EDITBOXHEIGHT%</code></td>
+    <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+    <td> Vertical size of edit box, is <b> <code>%EDITBOXHEIGHT%</code> </b></td>
+  </tr>
+</table>
index 2adbf16..1ce9790 100644 (file)
@@ -45,3 +45,11 @@ External links:
   - HTML 3.2 Reference Specification at <http://www.w3.org/TR/REC-html32.html>
 
 **WIKI VARIABLES**
+
+Variables are names enclosed in percent signs that gets expanded on the fly.
+
+- `%WEB%` : The current web, is **%WEB%** .
+- `%TOPIC%` : The current topic name, is **%TOPIC%** .
+- `%ATTACHURL%` : The attachment URL of the current topic. Example usage: If you attach a file to a topic you can refer to it as <code>**%ATTACHURL%/image.gif**</code> to show the URL of the file or the image in your text.
+- `%INCLUDE{"file.ext"}%` : Server side include, includes the text of a file. The default directory is the current Wiki web. Example: <code>**%INCLUDE\{"Know/TopicName.txt"\}%**</code>
+- There are many more variables, see [[TWikiVariables]].