| |
TWikiVariables 33 - 2001-08-29 - MikeMannix
|
|
TWiki Variables | |
> > | About Variables
Include/write if not found elsewhere. | | Predefined Variables
TWiki expands the following variables enclosed in % percent signs: | | List of preferences that are not allowed to be overridden by next level preferences |
| |
< < | Notes: | > > | Setting and Creating New Preferences | | | |
< < |
- Preferences variables ( on site-level, web-level and user level ) are defined by bullet lines with this syntax:
- Additional preferences variables can be defined on all three level as needed. Example:
-
Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif
| > > |
- The syntax for Preferences variables is the same anywhere in TWiki. In Edit mode, from the start of a new line:
[6 spaces] * [space] Set [space] VARIABLENAME [space] = [value] Example:
- 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.
Example: To place a logo anywhere in a web by typing %MYLOGO% , define the variable in the web's WebPreferences topic, like this (in this case, you also have to upload logo.gif to the same directory):
-
Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif
| | | |
< < | -- PeterThoeny - 23 Jul 2001
| | -- MikeMannix - 26 Aug 2001 |
|
TWikiVariables 31 - 2001-08-26 - MikeMannix
|
|
> > | | | TWiki Variables
Predefined Variables | | If present in included topic, stop to include text at this location and ignore the remaining text. A normal view of the topic shows everyting exept the %STOPINCLUDE% variable itself. |
%TOC% | | |
< < | Table of Content of current topic. | | > > | Table of Contents of current topic. | | | | |
< < | Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax ("---++ text" ) and HTML ("<h2>text<h2>" ) are taken into account. (But not "<H2>text<H2>" , which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth: | | > > | Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax ("---++ text" ) and HTML ("<h2>text<h2>" ) are taken into account. (But not "<H2>text</H2>" , which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth: | | |
| |
-
-
Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif
-- PeterThoeny - 23 Jul 2001
| |
> > | -- MikeMannix - 26 Aug 2001 |
|
TWikiVariables 30 - 2001-08-15 - PeterThoeny
|
| TWiki Variables
Predefined Variables | | Table of Content of current topic. |
%TOC{"SomeTopic" ...}% | | |
< < | Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax ("---++ text" ) and HTML ("<h2>text<h2>" ) are taken into account. Parameters are topic name, web and depth: | | > > | Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax ("---++ text" ) and HTML ("<h2>text<h2>" ) are taken into account. (But not "<H2>text<H2>" , which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth: | | |
|
|
|
|
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiVariables
|
|
| |