Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Deleted: | ||||||||
< < | ||||||||
Changed: | ||||||||
< < | TWiki Variables | |||||||
> > | TWiki Variables | |||||||
Special text strings expand on the fly to display user data or system info | ||||||||
Line: 10 to 9 | ||||||||
| ||||||||
Added: | ||||||||
> > | ||||||||
Using VariablesTo use a variable type its name. For example, | ||||||||
Line: 35 to 36 | ||||||||
Setting Preferences VariablesYou can set variables in all the following places: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Settings at higher-numbered levels override settings of the same variable at lower numbered levels, unless the variable was included in the setting of FINALPREFERENCES at a lower-numbered level, in which case it is locked at the value it has at that level. | ||||||||
Added: | ||||||||
> > | If you are setting a variable and using it in the same topic, note that TWiki reads all the variable settings from the saved version of the topic before it displays anything. This means you can use a variable anywhere in the topic, even if you set it somewhere inconspicuous near the end. But beware: it also means that if you change the setting of a variable you are using in the same topic, Preview will show the wrong thing, and you must Save the topic to see it correctly. | |||||||
The syntax for setting Variables is the same anywhere in TWiki (on its own TWiki bullet line, including nested bullets): [multiple of 3 spaces] * [space] Set [space] VARIABLENAME [space] = [space] value
Examples: |