none
[openafs-wiki.git] / TWiki / TWikiVariables.mdwn
1 <div>
2   <ul>
3     <li><a href="#TWiki Variables"> TWiki Variables</a><ul>
4         <li><a href="#Overview"> Overview</a></li>
5         <li><a href="#Predefined Variables"> Predefined Variables</a></li>
6         <li><a href="#Preferences Variables"> Preferences Variables</a></li>
7         <li><a href="#Setting Preferences"> Setting Preferences</a></li>
8         <li><a href="#Creating Custom Variables"> Creating Custom Variables</a></li>
9       </ul>
10     </li>
11   </ul>
12 </div>
13
14 # <a name="TWiki Variables"></a> TWiki Variables
15
16 _Text strings expanded on the fly include predefined, preference-driven and custom-defined data_
17
18 ## <a name="Overview"></a> Overview
19
20 TWikiVariables are text strings enclosed in percentage signs: <code>**%VARIABLE%**</code> that represent stored data. When a topic is rendered for viewing, defined variables are replaced by their actual values. TWiki has two types of variable, predefined and Preference-based, where usually you determine the content. Through Preference variables, you can also define custom variables, creating new variable name and value. TWiki variables are as simple to use as they are powerful, and vice versa!
21
22 ## <a name="Predefined Variables"></a> Predefined Variables
23
24 With a couple of notable exceptions, predefined variables return set values that are defined one-time on installation and left alone. Most are directory names and file paths, customized for your server, and only have to be updated once in the main configuration file if your server set-up changes.
25
26 %WIKITOOLNAME% expands the following variables enclosed in % percent signs:
27
28 <table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #fafafa" width="90%"><font size="13px"><font face="sans-serif"><tr>
29         <th width="160"> Variable: </th>
30         <th> Expanded to: </th>
31       </tr>
32       <tr>
33         <td><code>%WIKIHOMEURL%</code></td>
34         <td> The base script URL of %WIKITOOLNAME%, is the link of the Home icon in the upper left corner, is <b>%WIKIHOMEURL%</b></td>
35       </tr>
36       <tr>
37         <td><code>%SCRIPTURL%</code></td>
38         <td> The script URL of %WIKITOOLNAME%, is <b>http://www.dementia.org/twiki/</b></td>
39       </tr>
40       <tr>
41         <td><code>%SCRIPTURLPATH%</code></td>
42         <td> The path of the script URL of %WIKITOOLNAME%, is <b>http://www.dementia.org/twiki/</b></td>
43       </tr>
44       <tr>
45         <td><code>%SCRIPTSUFFIX%</code></td>
46         <td> The script suffix, ex: <code>.pl</code>, <code>.cgi</code> is <b></b></td>
47       </tr>
48       <tr>
49         <td><code>%PUBURL%</code></td>
50         <td> The public URL of TWiki, is <b>http://www.dementia.org/twiki//view</b></td>
51       </tr>
52       <tr>
53         <td><code>%PUBURLPATH%</code></td>
54         <td> The path of the public URL of %WIKITOOLNAME%, is <b>http://www.dementia.org/twiki//view</b></td>
55       </tr>
56       <tr>
57         <td><code>%ATTACHURL%</code></td>
58         <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>
59       </tr>
60       <tr>
61         <td><code>%ATTACHURLPATH%</code></td>
62         <td> The path of the attachment URL of the current topic, is <b>http://www.dementia.org/twiki//view</b></td>
63       </tr>
64       <tr>
65         <td><code>%URLPARAM{"name"}%</code></td>
66         <td> Returns the value of a URL parameter. Ex: <code>%URLPARAM{"skin"}%</code> returns <b>print</b> for a <code>.../view/%WEB%/%TOPIC%?skin=print</code> URL. Is <b></b></td>
67       </tr>
68       <tr>
69         <td><code>%WIKITOOLNAME%</code></td>
70         <td> Name of wiki tool, is <b>%WIKITOOLNAME%</b></td>
71       </tr>
72       <tr>
73         <td><code>%WIKIVERSION%</code></td>
74         <td> Wiki tool version is <b>TWiki-4.1.2, Sat, 03 Mar 2007, build 13046</b></td>
75       </tr>
76       <tr>
77         <td><code>%USERNAME%</code></td>
78         <td> Your login username is <b>admin</b></td>
79       </tr>
80       <tr>
81         <td><code>%WIKINAME%</code></td>
82         <td> Your Wiki username. Same as %USERNAME% if not defined in the [[Main/TWikiUsers]] topic. Is <b>admin</b></td>
83       </tr>
84       <tr>
85         <td><code>%WIKIUSERNAME%</code></td>
86         <td> Your %WIKINAME% including the Main web name. Usefull for signatures. Is <b>Main.admin</b></td>
87       </tr>
88       <tr>
89         <td><code>%MAINWEB%</code></td>
90         <td> The Main web containing [[Main/TWikiUsers]], [[Main/OfficeLocations]] and [[Main/TWikiGroups]]. Is <b>Main</b></td>
91       </tr>
92       <tr>
93         <td><code>%TWIKIWEB%</code></td>
94         <td> The web containing all documentation and configuration of %WIKITOOLNAME% is <b>TWiki</b></td>
95       </tr>
96       <tr>
97         <td><code>%WEB%</code></td>
98         <td> The current web is <b>%WEB%</b></td>
99       </tr>
100       <tr>
101         <td><code>%BASEWEB%</code></td>
102         <td> The web name where the includes started, e.g. the web of the first topic of nested includes. Same as <code>%WEB%</code> in case there is no include. </td>
103       </tr>
104       <tr>
105         <td><code>%INCLUDINGWEB%</code></td>
106         <td> The web name of the topic that includes the current topic. Same as <code>%WEB%</code> in case there is no include. </td>
107       </tr>
108       <tr>
109         <td><code>%HOMETOPIC%</code></td>
110         <td> The home topic in each web. Is <b>[[Main/WebHome]]</b></td>
111       </tr>
112       <tr>
113         <td><code>%NOTIFYTOPIC%</code></td>
114         <td> The notify topic in each web. Is <b>[[Main/WebNotify]]</b></td>
115       </tr>
116       <tr>
117         <td><code>%WIKIUSERSTOPIC%</code></td>
118         <td> The index topic of all registered users. Is <b>TWikiUsers</b></td>
119       </tr>
120       <tr>
121         <td><code>%WEBPREFSTOPIC%</code></td>
122         <td> The web preferences topic. Is <b>WebPreferences</b></td>
123       </tr>
124       <tr>
125         <td><code>%STATISTICSTOPIC%</code></td>
126         <td> The web statistics topic. Is <b>WebStatistics</b></td>
127       </tr>
128       <tr>
129         <td><code>%TOPIC%</code></td>
130         <td> The current topic name, is <b>%TOPIC%</b></td>
131       </tr>
132       <tr>
133         <td><code>%BASETOPIC%</code></td>
134         <td> The name of the topic where the includes started, e.g. the first topic of nested includes. Same as <code>%TOPIC%</code> in case there is no include. </td>
135       </tr>
136       <tr>
137         <td><code>%INCLUDINGTOPIC%</code></td>
138         <td> The name of the topic that includes the current topic. Same as <code>%TOPIC%</code> in case there is no include. </td>
139       </tr>
140       <tr>
141         <td><code>%SPACEDTOPIC%</code></td>
142         <td> The current topic name with added spaces, for regular expression search of Ref-By, is <b></b></td>
143       </tr>
144       <tr>
145         <td><code>%TOPICLIST{"format"}%</code></td>
146         <td> Topic index of a web. The "format" defines the format of one topic item. It may include variables: The <code>$name</code> variable gets expanded to the topic name; the <code>$web</code> variable gets expanded to the name of the web. Parameters are format, separator and web: <table border="1" cellpadding="0" cellspacing="0">
147             <tr>
148               <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
149               <th bgcolor="#99CCCC"><strong> Description: </strong></th>
150               <th bgcolor="#99CCCC"><strong> Default: </strong></th>
151             </tr>
152             <tr>
153               <td><code>"format"</code></td>
154               <td> Format of one line, may include <code>$name</code> and <code>$web</code> variables </td>
155               <td><code>"$name"</code></td>
156             </tr>
157             <tr>
158               <td><code>format="format"</code></td>
159               <td> (Alternative to above) </td>
160               <td><code>"$name"</code></td>
161             </tr>
162             <tr>
163               <td><code>separator=", "</code></td>
164               <td> line separator </td>
165               <td><code>"\n"</code> (new line) </td>
166             </tr>
167             <tr>
168               <td><code>web="Name"</code></td>
169               <td> Name of web </td>
170               <td> Current web </td>
171             </tr>
172           </table> Examples: <br /><code>%TOPICLIST{"   * $web.$name"}%</code> creates a bullet list of all topics. <br /><code>%TOPICLIST{separator=", "}%</code> creates a comma separated list of all topics. <br /><code>%TOPICLIST{" &lt;option&gt;$name&lt;/option&gt;"}%</code> creates an option list (for drop down menus). </td>
173       </tr>
174       <tr>
175         <td><code>%WEBLIST{"format"}%</code></td>
176         <td> Web index, e.g. list of all webs. Hidden webs are excluded, e.g. webs with a <code>NOSEARCHALL=on</code> preference variable. The <code>"format"</code> defines the format of one web item. The <code>$name</code> variable gets expanded to the name of the web, <code>$qname</code> gets expanded to double quoted name, <code>$marker</code> to <code>marker</code> where web matches <code>selection</code>. Parameters are format, separator and web: <table border="1" cellpadding="0" cellspacing="0">
177             <tr>
178               <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
179               <th bgcolor="#99CCCC"><strong> Description: </strong></th>
180               <th bgcolor="#99CCCC"><strong> Default: </strong></th>
181             </tr>
182             <tr>
183               <td><code>"format"</code></td>
184               <td> Format of one line, may include <code>$name</code> variable </td>
185               <td><code>"$name"</code></td>
186             </tr>
187             <tr>
188               <td><code>format="format"</code></td>
189               <td> (Alternative to above) </td>
190               <td><code>"$name"</code></td>
191             </tr>
192             <tr>
193               <td><code>separator=", "</code></td>
194               <td> line separator </td>
195               <td><code>"\n"</code> (new line) </td>
196             </tr>
197             <tr>
198               <td><code>webs="public"</code></td>
199               <td> comma sep list of Web, public expands to all non-hidden </td>
200               <td><code>"public"</code></td>
201             </tr>
202             <tr>
203               <td><code>marker="selected"</code></td>
204               <td> Text for <code>$marker</code> where item matches <code>selection</code>, otherwise equals <code>""</code></td>
205               <td><code>"selected"</code></td>
206             </tr>
207             <tr>
208               <td><code>selection</code></td>
209               <td> Current value e.g. current for current Web, =section="%WEB%" </td>
210             </tr>
211           </table> Examples: <br /><code>%WEBLIST{"   * [[$name.WebHome]]"}%</code> creates a bullet list of all webs. <br /><code>%WEBLIST{"<select><option $marker="$marker" value="$qname">$name</option>" webs="Trash,public" selection="%WEB%" separator=" "}%</select></code> Dropdown of all public Webs + Trash Web, current Web highlighted. </td>
212       </tr>
213       <tr>
214         <td><code>%GMTIME%</code></td>
215         <td> GM time, is <b>29 Jun 2010 - 15:30</b></td>
216       </tr>
217       <tr>
218         <td><code>%GMTIME{"format"}%</code></td>
219         <td> Formatted GM time based on time variables. <table border="1" cellpadding="0" cellspacing="0">
220             <tr>
221               <th bgcolor="#99CCCC"><strong> Variable: </strong></th>
222               <th bgcolor="#99CCCC"><strong> Unit: </strong></th>
223               <th bgcolor="#99CCCC"><strong> Example </strong></th>
224             </tr>
225             <tr>
226               <td> $seconds </td>
227               <td> seconds </td>
228               <td> 59 </td>
229             </tr>
230             <tr>
231               <td> $minutes </td>
232               <td> minutes </td>
233               <td> 59 </td>
234             </tr>
235             <tr>
236               <td> $hours </td>
237               <td> hours </td>
238               <td> 23 </td>
239             </tr>
240             <tr>
241               <td> $day </td>
242               <td> day of month </td>
243               <td> 31 </td>
244             </tr>
245             <tr>
246               <td> $month </td>
247               <td> month in ISO format </td>
248               <td> Dec </td>
249             </tr>
250             <tr>
251               <td> $mo </td>
252               <td> 2 digit month </td>
253               <td> 12 </td>
254             </tr>
255             <tr>
256               <td> $year </td>
257               <td> 4 digit year </td>
258               <td> 1999 </td>
259             </tr>
260             <tr>
261               <td> $ye </td>
262               <td> 2 digit year </td>
263               <td> 99 </td>
264             </tr>
265           </table> Variables can be shortened to 3 characters. Example: <br /><code>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</code> is <br /><b>29 Jun, 2010 - 15:30:10</b></td>
266       </tr>
267       <tr>
268         <td><code>%SERVERTIME%</code></td>
269         <td> Server time, is <b>29 Jun 2010 - 11:30</b></td>
270       </tr>
271       <tr>
272         <td><code>%SERVERTIME{"format"}%</code></td>
273         <td> Formatted server time. <br /> Example: <code>%SERVERTIME{"$hou:$min"}%</code> is <b>11:30</b></td>
274       </tr>
275       <tr>
276         <td><code>%HTTP_HOST%</code></td>
277         <td> HTTP_HOST environment variable, is <b></b></td>
278       </tr>
279       <tr>
280         <td><code>%REMOTE_ADDR%</code></td>
281         <td> REMOTE_ADDR environment variable, is <b></b></td>
282       </tr>
283       <tr>
284         <td><code>%REMOTE_PORT%</code></td>
285         <td> REMOTE_PORT environment variable, is <b></b></td>
286       </tr>
287       <tr>
288         <td><code>%REMOTE_USER%</code></td>
289         <td> REMOTE_USER environment variable, is <b></b></td>
290       </tr>
291       <tr>
292         <td><code>%INCLUDE{"page" ...}%</code></td>
293         <td> Server side include to [[Main/IncludeTopicsAndWebPages]]. Parameters are page name, and an optional <code>pattern="(reg-exp)"</code>. The page name is: <table border="1" cellpadding="0" cellspacing="0">
294             <tr>
295               <td><code>"SomeTopic"</code></td>
296               <td> The name of a topic located in the current web, i.e. <code>%INCLUDE{"WebNotify"}%</code></td>
297             </tr>
298             <tr>
299               <td><code>"Web.Topic"</code></td>
300               <td> A topic in another web, i.e. <code>%INCLUDE{"TWiki.TWikiWebsTable"}%</code></td>
301             </tr>
302             <tr>
303               <td><code>"http://..."</code></td>
304               <td> A full qualified URL, i.e. <code>%INCLUDE{"http://twiki.org/"}%</code></td>
305             </tr>
306           </table>
307         </td>
308       </tr>
309       <tr>
310         <td><code>%STARTINCLUDE%</code></td>
311         <td> If present in included topic, start to include text from this location up to the end, or up to the location of the <code>%STOPINCLUDE%</code> variable. A normal view of the topic shows everyting exept the <code>%STARTINCLUDE%</code> variable itself. </td>
312       </tr>
313       <tr>
314         <td><code>%STOPINCLUDE%</code></td>
315         <td> 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 <code>%STOPINCLUDE%</code> variable itself. </td>
316       </tr>
317       <tr>
318         <td><code>%TOC%</code></td>
319         <td> Table of Contents of current topic. </td>
320       </tr>
321       <tr>
322         <td><code>%TOC{"SomeTopic" ...}%</code></td>
323         <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in [[Main/WikiSyntax]] (<code>"---++ text"</code>) and HTML (<code>"&lt;h2&gt;text&lt;h2&gt;"</code>) are taken into account. (But not <code>"&lt;H2&gt;text&lt;/H2&gt;"</code>, which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth: <table border="1" cellpadding="0" cellspacing="0">
324             <tr>
325               <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
326               <th bgcolor="#99CCCC"><strong> Description: </strong></th>
327               <th bgcolor="#99CCCC"><strong> Default: </strong></th>
328             </tr>
329             <tr>
330               <td><code>"TopicName"</code></td>
331               <td> topic name </td>
332               <td> Current topic </td>
333             </tr>
334             <tr>
335               <td><code>web="Name"</code></td>
336               <td> Name of web </td>
337               <td> Current web </td>
338             </tr>
339             <tr>
340               <td><code>depth="2"</code></td>
341               <td> Limit depth of headings shown in TOC </td>
342               <td> 6 </td>
343             </tr>
344           </table> Examples: <code><b>%TOC{depth="2"}%</b></code>, <code><b>%TOC{"TWikiDocumentation" web="TWiki"}%</b></code></td>
345       </tr>
346       <tr>
347         <td><code>%SEARCH{"text" ...}%</code></td>
348         <td> Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1] <table border="1" cellpadding="0" cellspacing="0">
349             <tr>
350               <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
351               <th bgcolor="#99CCCC"><strong> Description: </strong></th>
352               <th bgcolor="#99CCCC"><strong> Default: </strong></th>
353             </tr>
354             <tr>
355               <td><code>"text"</code></td>
356               <td> Search term. (Is a regular expression or literal, depending on the <code>regex</code> parameter) </td>
357               <td> required </td>
358             </tr>
359             <tr>
360               <td><code>search="text"</code></td>
361               <td> (Alternative to above) </td>
362               <td> N/A </td>
363             </tr>
364             <tr>
365               <td><code>web="Name"</code><br /><code>web="Main Know"</code><br /><code>web="all"</code></td>
366               <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. [2] </td>
367               <td> Current web </td>
368             </tr>
369             <tr>
370               <td><code>scope="topic"</code><br /><code>scope="text"</code></td>
371               <td> Search topic name (title) or in the text (body) of the topic </td>
372               <td> Topic text (body) </td>
373             </tr>
374             <tr>
375               <td><code>order="topic"</code><br /><code>order="modified"</code><br /><code>order="editby"</code></td>
376               <td> Sort the results of search by the topic names, last modified time, or last editor </td>
377               <td> Sort by topic name </td>
378             </tr>
379             <tr>
380               <td><code>limit="all"</code><br /><code>limit="16"</code></td>
381               <td> Limit the number of results returned </td>
382               <td> All results </td>
383             </tr>
384             <tr>
385               <td><code>regex="on"</code></td>
386               <td>[[Main/RegularExpression]] search </td>
387               <td> Literal search </td>
388             </tr>
389             <tr>
390               <td><code>reverse="on"</code></td>
391               <td> Reverse the direction of the search </td>
392               <td> Ascending search </td>
393             </tr>
394             <tr>
395               <td><code>casesensitive="on"</code></td>
396               <td> Case sensitive search </td>
397               <td> Ignore case </td>
398             </tr>
399             <tr>
400               <td><code>nosummary="on"</code></td>
401               <td> Show topic title only </td>
402               <td> Show topic summary </td>
403             </tr>
404             <tr>
405               <td><code>bookview="on"</code></td>
406               <td>[[Main/BookView]] search, e.g. show complete topic text </td>
407               <td> Show topic summary </td>
408             </tr>
409             <tr>
410               <td><code>nosearch="on"</code></td>
411               <td> Suppress search string </td>
412               <td> Show search string </td>
413             </tr>
414             <tr>
415               <td><code>noheader="on"</code></td>
416               <td> Suppress search header <br /><span style="background: #FFB0B0"> <strong>Topics: Changed: By:</strong> </span></td>
417               <td> Show search header </td>
418             </tr>
419             <tr>
420               <td><code>nototal="on"</code></td>
421               <td> Do not show number of topics found </td>
422               <td> Show number </td>
423             </tr>
424           </table> Example: <code><b>%SEARCH{"wiki" web="Main" scope="topic"}%</b></code></td>
425       </tr>
426       <tr>
427         <td><code>%VAR{"NAME" web="Web"}%</code></td>
428         <td> Get a preference value from a web other then the current one. Example: To get <code>%WEBBGCOLOR%</code> of the Main web write <code>%VAR{"WEBBGCOLOR" web="Main"}%</code>, is <code><b></b></code></td>
429       </tr></font></font></table>
430
431 > [1]
432 >
433 > **_Note_**
434 >
435 > : The search form uses identical names for input fields.
436 >
437 > [2] **_Note_**: A web can be excluded from a `web="all"` search if you define a `NOSEARCHALL=on` variable in its [[WebPreferences]].
438
439 ## <a name="Preferences Variables"></a> Preferences Variables
440
441 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):
442
443 <table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #fafafa" width="90%"><font size="13px"><font face="sans-serif"><tr>
444         <th width="160"> Variable: </th>
445         <th> Level: </th>
446         <th> What: </th>
447       </tr>
448       <tr>
449         <td><code>%WIKIWEBMASTER%</code></td>
450         <td><strong><em>SL</em></strong></td>
451         <td> Webmaster email address (sender of email notifications) , is <b></b></td>
452       </tr>
453       <tr>
454         <td><code>%WIKIWEBLIST%</code></td>
455         <td><strong><em>SL</em></strong></td>
456         <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
457       </tr>
458       <tr>
459         <td><code>%WEBTOPICLIST%</code></td>
460         <td><strong><em>WL</em></strong></td>
461         <td> Common links of web (second line of topics) </td>
462       </tr>
463       <tr>
464         <td><code>%WEBCOPYRIGHT%</code></td>
465         <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
466         <td> Copyright notice (bottom right corner of topics) </td>
467       </tr>
468       <tr>
469         <td><code>%WEBBGCOLOR%</code></td>
470         <td><strong><em>WL</em></strong></td>
471         <td> Background color of web </td>
472       </tr>
473       <tr>
474         <td><code>%NOSEARCHALL%</code></td>
475         <td><strong><em>WL</em></strong></td>
476         <td> Exclude web from a <code>web="all"</code> search (set variable to <code>on</code> for hidden webs) </td>
477       </tr>
478       <tr>
479         <td><code>%NEWTOPICBGCOLOR%</code></td>
480         <td><strong><em>SL</em></strong> , <em>UL</em></td>
481         <td> Background color of non existing topic. ( <strong><em>UL</em></strong> needs authentication for topic views ) </td>
482       </tr>
483       <tr>
484         <td><code>%NEWTOPICFONTCOLOR%</code></td>
485         <td><strong><em>SL</em></strong> , <em>UL</em></td>
486         <td> Font color of non existing topic. ( <strong><em>UL</em></strong> needs authentication for topic views ) </td>
487       </tr>
488       <tr>
489         <td><code>%EDITBOXWIDTH%</code></td>
490         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
491         <td> Horizontal size of edit box, is <b> <code>%EDITBOXWIDTH%</code> </b></td>
492       </tr>
493       <tr>
494         <td><code>%EDITBOXHEIGHT%</code></td>
495         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
496         <td> Vertical size of edit box, is <b> <code>%EDITBOXHEIGHT%</code> </b></td>
497       </tr>
498       <tr>
499         <td><code>%RELEASEEDITLOCKCHECKBOX%</code></td>
500         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
501         <td> Default state of the "Release edit lock" ([[Main/UnlockTopic]]) check box in preview. Checkbox is initially checked if <code>Set RELEASEEDITLOCKCHECKBOX = checked="checked"</code>, or unchecked if empty. If checked, make sure to click on <u>Edit</u> to do more changes; do <strong>not</strong> go back in your browser to the edit page, or you risk that someone else will edit the topic at the same time! Value is: <b><code>%RELEASEEDITLOCKCHECKBOX%</code></b></td>
502       </tr>
503       <tr>
504         <td><code>%DONTNOTIFYCHECKBOX%</code></td>
505         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
506         <td> Default state of the "Minor Changes, Don't Notify" ([[Main/DontNotify]]) check box in preview. Check box is initially checked if <code>Set DONTNOTIFYCHECKBOX = checked="checked"</code>, or unchecked if empty. Value is: <b><code>%DONTNOTIFYCHECKBOX%</code></b></td>
507       </tr>
508       <tr>
509         <td><code>%ATTACHLINKBOX%</code></td>
510         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
511         <td> Default state of the link check box in the attach file page. Check box is initially checked if value is set to <code>CHECKED</code> , unchecked if empty. If checked, a link is created to the attached file at the end of the topic. Value is: <b><code>%ATTACHLINKBOX%</code></b></td>
512       </tr>
513       <tr>
514         <td><code>%HTTP_EQUIV_ON_VIEW%</code></td>
515         <td><strong><em>SL</em></strong></td>
516         <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
517       </tr>
518       <tr>
519         <td><code>%HTTP_EQUIV_ON_EDIT%</code></td>
520         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
521         <td> http-equiv meta tags for edit script. </td>
522       </tr>
523       <tr>
524         <td><code>%HTTP_EQUIV_ON_PREVIEW%</code></td>
525         <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
526         <td> http-equiv meta tags for preview script. </td>
527       </tr>
528       <tr>
529         <td><code>%DENYWEBCHANGE%</code></td>
530         <td><strong><em>WL</em></strong></td>
531         <td> List of users and groups who are <strong>not allowed</strong> to change topics in the %WIKITOOLNAME% web. (More in [[Main/TWikiAccessControl]]) </td>
532       </tr>
533       <tr>
534         <td><code>%ALLOWWEBCHANGE%</code></td>
535         <td><strong><em>WL</em></strong></td>
536         <td> List of users and groups who are <strong>allowed</strong> to change topics in the %WIKITOOLNAME% web. (More in [[Main/TWikiAccessControl]]) </td>
537       </tr>
538       <tr>
539         <td><code>%DENYTOPICCHANGE%</code></td>
540         <td><strong><em>(any topic)</em></strong></td>
541         <td> List of users and groups who are <strong>not allowed</strong> to change the current topic. (More in [[Main/TWikiAccessControl]]) </td>
542       </tr>
543       <tr>
544         <td><code>%ALLOWTOPICCHANGE%</code></td>
545         <td><strong><em>(any topic)</em></strong></td>
546         <td> List of users and groups who are <strong>allowed</strong> to change the current topic. (More in [[Main/TWikiAccessControl]]) </td>
547       </tr>
548       <tr>
549         <td><code>%DENYWEBRENAME%</code></td>
550         <td><strong><em>WL</em></strong></td>
551         <td> List of users and groups who are <strong>not allowed</strong> to rename topics in the %WIKITOOLNAME% web. (More in [[Main/TWikiAccessControl]]) </td>
552       </tr>
553       <tr>
554         <td><code>%ALLOWWEBRENAME%</code></td>
555         <td><strong><em>WL</em></strong></td>
556         <td> List of users and groups who are <strong>allowed</strong> to rename topics in the %WIKITOOLNAME% web. (More in [[Main/TWikiAccessControl]]) </td>
557       </tr>
558       <tr>
559         <td><code>%DENYTOPICRENAME%</code></td>
560         <td><strong><em>(any topic)</em></strong></td>
561         <td> List of users and groups who are <strong>not allowed</strong> to rename the current topic. (More in [[Main/TWikiAccessControl]]) </td>
562       </tr>
563       <tr>
564         <td><code>%ALLOWTOPICRENAME%</code></td>
565         <td><strong><em>(any topic)</em></strong></td>
566         <td> List of users and groups who are <strong>allowed</strong> to rename the current topic. (More in [[Main/TWikiAccessControl]]) </td>
567       </tr>
568       <tr>
569         <td>
570           <p>
571           </p>
572         </td>
573         <td><code>%FINALPREFERENCES%</code></td>
574         <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
575         <td> List of preferences that are not allowed to be overridden by next level preferences</td>
576       </tr></font></font></table>
577
578 ## <a name="Setting Preferences"></a> Setting Preferences
579
580 - The syntax for Preferences variables is the same anywhere in TWiki. In Edit mode, from the start of a new line: <br />[6 spaces] \* [space] Set [space] VARIABLENAME [space] = [value] <br />**_Example:_**
581   - <code>**Set VARIABLENAME = value**</code>
582
583 ## <a name="Creating Custom Variables"></a> Creating Custom Variables
584
585 - 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, image paths.
586
587 > **Example: Create a custom logo variable**
588 >
589 > <br />
590 >
591 > - To place a logo anywhere in a web by typing <code>**%MYLOGO%**</code>, simply define the variable on the web's [[WebPreferences]] page. You also have to upload `logo.gif` - this can be done by [[attaching a file|Main/FileAttachment]] to `LogoTopic` (any topic name you choose):
592 >   - <code>**Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif**</code>
593
594 -- [[MikeMannix]] - 30 Aug 2001 <br />