Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TWikiVariables?rev1=33&rev2=29
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 22:51:48 2014
Кодировка:
%TOPICTITLE% (29 vs. 33) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r33  >  r32  >  r31  >  r30  >  r29  ...
TWikiVariables 33 - 2001-08-29 - MikeMannix
Line: 1 to 1
 
On this page:

TWiki Variables

Added:
>
>

About Variables

Include/write if not found elsewhere.

 

Predefined Variables

TWiki expands the following variables enclosed in % percent signs:

Line: 317 to 321
 
List of preferences that are not allowed to be overridden by next level preferences
Changed:
<
<
Notes:
>
>

Setting and Creating New Preferences

 
Changed:
<
<
  • Preferences variables ( on site-level, web-level and user level ) are defined by bullet lines with this syntax:
    • Set VARIABLENAME = value
  • 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:
    • Set VARIABLENAME = value
  • 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
 
Deleted:
<
<
-- PeterThoeny - 23 Jul 2001
 -- MikeMannix - 26 Aug 2001

TWikiVariables 32 - 2001-08-27 - MikeMannix
Line: 1 to 1
 
On this page:

TWiki Variables

Line: 325 to 325
 
    • Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif

-- PeterThoeny - 23 Jul 2001

Changed:
<
<
-- MikeMannix - 26 Aug 2001
>
>
-- MikeMannix - 26 Aug 2001

TWikiVariables 31 - 2001-08-26 - MikeMannix
Line: 1 to 1
Added:
>
>
 

TWiki Variables

Predefined Variables

Line: 168 to 170
 
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%
Changed:
<
<
Table of Content of current topic.
>
>
Table of Contents of current topic.
 
%TOC{"SomeTopic" ...}%
Changed:
<
<
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:
 
Parameter: Description: Default:
"TopicName" topic name Current topic
web="Name" Name of web Current web
Line: 323 to 325
 
    • Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif

-- PeterThoeny - 23 Jul 2001

Added:
>
>
-- MikeMannix - 26 Aug 2001

TWikiVariables 30 - 2001-08-15 - PeterThoeny
Line: 1 to 1
 

TWiki Variables

Predefined Variables

Line: 171 to 171
 
Table of Content of current topic.
%TOC{"SomeTopic" ...}%
Changed:
<
<
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:
 
Parameter: Description: Default:
"TopicName" topic name Current topic
web="Name" Name of web Current web

Revision 33r33 - 2001-08-29 - 00:16:01 - MikeMannix
Revision 32r32 - 2001-08-27 - 04:31:10 - MikeMannix
Revision 31r31 - 2001-08-26 - 22:08:29 - MikeMannix
Revision 30r30 - 2001-08-15 - 14:29:41 - PeterThoeny
Revision 29r29 - 2001-08-07 - 15:25:16 - JohnTalintyre
This site is powered by the TWiki collaboration platformCopyright © 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
Syndicate this site RSSATOM