diff options
-rw-r--r-- | TWiki/TextFormattingRules.mdwn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/TWiki/TextFormattingRules.mdwn b/TWiki/TextFormattingRules.mdwn index b083d632..afe56cff 100644 --- a/TWiki/TextFormattingRules.mdwn +++ b/TWiki/TextFormattingRules.mdwn @@ -46,4 +46,10 @@ External links: **WIKI VARIABLES** -%INCLUDE\{"TWikiVariables.txt"\}% +Variables are names enclosed in percent signs that gets expanded on the fly. + +* <code>%WEB%</code> : The current web, is **%WEB%** . +* <code>%TOPIC%</code> : The current topic name, is **%TOPIC%** . +* <code>%ATTACHURL%</code> : 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. +* <code>%INCLUDE\{"file.ext"\}%</code> : 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]]. |