(file) Return to TWikiVariables.txt CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / twiki / data / TWiki

  1 rizwank 1.1 %META:TOPICINFO{author="PeterThoeny" date="1092470123" format="1.0" version="1.78"}%
  2             %META:TOPICPARENT{name="WebHome"}%
  3             %TOC%
  4             %STARTINCLUDE%
  5             ---# TWiki Variables
  6             
  7             _Special text strings expand on the fly to display user data or system info_
  8             
  9             <nop>TWikiVariables are text strings - =%<nop>VARIABLE%= - that expand into content whenever a page is rendered for viewing. =VARIABLES= are replaced by data, either user-entered or automatically generated by TWiki (like the date, or the current username). There are predefined variables, and Preference variables that you can configure. You can also define custom variables, with new names and values.
 10             
 11             __Notes:__
 12             	* To leave a variable unexpanded, precede it with an exclamation point, e.g. type =!%<nop>TOPIC%= to get !%TOPIC%.
 13             	* Variables are expanded relative to the topic they are _used_ in, not the topic they are _defined_ in.
 14             
 15             ---++ Predefined Variables
 16             
 17             Most predefined variables return values that were either set in the ==lib/twiki.cfg== file, when TWiki was installed, or taken from server info (like current username, or date and time). Many of the variables let you format the appearance of the display results.
 18             
 19             	* %T% *Take the time to thoroughly read through ALL preference variables.* If you actively configure your site, review variables periodically. They cover a wide range of functions, and it can be easy to miss the one perfect variable for something you have in mind. For example, see ==%<nop>INCLUDINGTOPIC%==, ==%<nop>INCLUDE%==, and the mighty ==%<nop>SEARCH%==.
 20             
 21             This version of TWiki - %WIKIVERSION% - expands the following variables (enclosed in ==%== percent signs):
 22 rizwank 1.1 
 23             %INCLUDE{"TWikiVariablesAtoM"}%
 24             %INCLUDE{"TWikiVariablesNtoZ"}%
 25             
 26             __Note:__ Above text is included from TWikiVariablesAtoM and TWikiVariablesNtoZ
 27             
 28             
 29             #PreferencesVariables
 30             ---++ Preferences Variables
 31             
 32             Additional variables are defined in the preferences topics:
 33             	* site-level ( __SL__ ) in %TWIKIWEB%.%WIKIPREFSTOPIC%
 34             	* web-level ( __WL__ ) in %WEBPREFSTOPIC% of each web
 35             	* user level ( __UL__ ) in individual user topics
 36             
 37             <table cellspacing="0" cellpadding="2" border="1" align="center" style="background-color:#f5f5f5">
 38             <tr>
 39               <th width="160"> Variable: </th><th> Level: </th><th> What: </th><th>Expands to:</th>
 40             </tr>
 41             <tr>
 42               <td> =%<nop>ALLOWTOPICCHANGE%= </td>
 43 rizwank 1.1   <td> __(any topic)__ </td>
 44               <td> List of users and groups who are *allowed* to change the current topic. (More in TWikiAccessControl) </td>
 45               <td> %ALLOWTOPICCHANGE% &nbsp;</td>
 46             </tr>
 47             <tr>
 48               <td> =%<nop>ALLOWTOPICRENAME%= </td>
 49               <td> __(any topic)__ </td>
 50               <td> List of users and groups who are *allowed* to rename the current topic. (More in TWikiAccessControl) </td>
 51               <td> %ALLOWTOPICRENAME% &nbsp;</td>
 52             </tr>
 53             <tr>
 54               <td> =%<nop>ALLOWWEBCHANGE%= </td>
 55               <td> __WL__ </td>
 56               <td> List of users and groups who are *allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
 57               <td> %ALLOWWEBCHANGE% &nbsp;</td>
 58             </tr>
 59             <tr>
 60               <td> =%<nop>ALLOWWEBRENAME%= </td>
 61               <td> __WL__ </td>
 62               <td> List of users and groups who are *allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
 63               <td> %ALLOWWEBRENAME% &nbsp;</td>
 64 rizwank 1.1 </tr>
 65             <tr>
 66               <td> =%<nop>ATTACHLINKBOX%= </td>
 67               <td> __SL__ , __UL__ </td>
 68               <td> Default state of the link check box in the attach file page. Check box is initially checked if value is set to =CHECKED= , 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>
 69               <td> %ATTACHLINKBOX% &nbsp;</td>
 70             </tr>
 71             <tr>
 72               <td> =%<nop>DENYTOPICCHANGE%= </td>
 73               <td> __(any topic)__ </td>
 74               <td> List of users and groups who are *not allowed* to change the current topic. (More in TWikiAccessControl) </td>
 75               <td> %DENYTOPICCHANGE% &nbsp;</td>
 76             </tr>
 77             <tr>
 78               <td> =%<nop>DENYTOPICRENAME%= </td>
 79               <td> __(any topic)__ </td>
 80               <td> List of users and groups who are *not allowed* to rename the current topic. (More in TWikiAccessControl) </td>
 81               <td> %DENYTOPICRENAME% &nbsp;</td>
 82             </tr>
 83             <tr>
 84               <td> =%<nop>DENYWEBCHANGE%= </td>
 85 rizwank 1.1   <td> __WL__ </td>
 86               <td> List of users and groups who are *not allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
 87               <td> %DENYWEBCHANGE% &nbsp;</td>
 88             </tr>
 89             <tr>
 90               <td> =%<nop>DENYWEBRENAME%= </td>
 91               <td> __WL__ </td>
 92               <td> List of users and groups who are *not allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
 93               <td> %DENYWEBRENAME% &nbsp;</td>
 94             </tr>
 95             <tr>
 96               <td> =%<nop>DONTNOTIFYCHECKBOX%= </td>
 97               <td> __SL__ , __UL__ </td>
 98               <td> Default state of the "Minor Changes, Don't Notify" (DontNotify) check box in preview. Check box is initially checked if =Set DONTNOTIFYCHECKBOX = checked="checked"=, or unchecked if empty. Value is: <b><code>%DONTNOTIFYCHECKBOX%</code></b> </td>
 99               <td> %DONTNOTIFYCHECKBOX% &nbsp;</td>
100             </tr>
101             <tr>
102               <td> =%<nop>EDITBOXHEIGHT%= </td>
103               <td> __SL__ , __UL__ </td>
104               <td> Vertical size of edit box, is <b> =%EDITBOXHEIGHT%= </b> </td>
105               <td> %EDITBOXHEIGHT% &nbsp;</td>
106 rizwank 1.1 </tr>
107             <tr>
108               <td> =%<nop>EDITBOXWIDTH%= </td>
109               <td> __SL__ , __UL__ </td>
110               <td> Horizontal size of edit box, is <b> =%EDITBOXWIDTH%= </b> </td>
111               <td> %EDITBOXWIDTH% &nbsp;</td>
112             </tr>
113             <tr>
114               <td> =%<nop>EDITBOXSTYLE%= </td>
115               <td> __SL__ , __UL__ </td>
116               <td> Style of text edit box. Set to =width: 99%= for full window width (default; overwrites the EDITBOXWIDTH setting), or =width: auto= to disable. Value is: <b><code>%EDITBOXSTYLE%</code></b> </td>
117               <td> %EDITBOXSTYLE% &nbsp;</td>
118             </tr>
119             <tr>
120               <td> =%<nop>FINALPREFERENCES%= </td>
121               <td> __SL__ , __WL__ </td>
122               <td> List of preferences that are not allowed to be overridden by next level preferences</td>
123               <td> %FINALPREFERENCES% &nbsp;</td>
124             </tr>
125             <tr>
126               <td> =%<nop>HTTP_EQUIV_ON_EDIT%= </td>
127 rizwank 1.1   <td> __SL__ , __UL__ </td>
128               <td> http-equiv meta tags for edit script. </td>
129               <td> %HTTP_EQUIV_ON_EDIT% &nbsp;</td>
130             </tr>
131             <tr>
132               <td> =%<nop>HTTP_EQUIV_ON_PREVIEW%= </td>
133               <td> __SL__ , __UL__ </td>
134               <td> http-equiv meta tags for preview script. </td>
135               <td> %HTTP_EQUIV_ON_PREVIEW% &nbsp;</td>
136             </tr>
137             <tr>
138               <td> =%<nop>HTTP_EQUIV_ON_VIEW%= </td>
139               <td> __SL__ </td>
140               <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
141               <td> %HTTP_EQUIV_ON_VIEW% &nbsp;</td>
142             </tr>
143             <tr>
144               <td> =%<nop>NEWTOPICBGCOLOR%= </td>
145               <td> __SL__ , _UL_ </td>
146               <td> Background color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
147               <td> %NEWTOPICBGCOLOR% &nbsp;</td>
148 rizwank 1.1 </tr>
149             <tr>
150               <td> =%<nop>NEWTOPICFONTCOLOR%= </td>
151               <td> __SL__ , _UL_ </td>
152               <td> Font color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
153               <td> %NEWTOPICFONTCOLOR% &nbsp;</td>
154             </tr>
155             <tr>
156               <td> =%<nop>NOSEARCHALL%= </td>
157               <td> __WL__ </td>
158               <td> Exclude web from a =web="all"= search (set variable to =on= for hidden webs) </td>
159               <td> %NOSEARCHALL% &nbsp;</td>
160             </tr>
161             <tr>
162               <td> =%<nop>RELEASEEDITLOCKCHECKBOX%= </td>
163               <td> __SL__ , __UL__ </td>
164               <td> Default state of the "Release edit lock" (UnlockTopic) check box in preview. Checkbox is initially checked if =Set RELEASEEDITLOCKCHECKBOX = checked="checked"=, or unchecked if empty. If checked, make sure to click on <u>Edit</u> to do more changes; do *not* 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>
165               <td> %RELEASEEDITLOCKCHECKBOX% &nbsp;</td>
166             </tr>
167             <tr>
168               <td> =%<nop>WEBBGCOLOR%= </td>
169 rizwank 1.1   <td> __WL__ </td>
170               <td> Background color of web </td>
171               <td> %WEBBGCOLOR% &nbsp;</td>
172             </tr>
173             <tr>
174               <td> =%<nop>WEBCOPYRIGHT%= </td>
175               <td> __SL__ , __WL__ </td>
176               <td> Copyright notice (bottom right corner of topics) </td>
177               <td> %WEBCOPYRIGHT% &nbsp;</td>
178             </tr>
179             <tr>
180               <td> =%<nop>WEBTOPICLIST%= </td>
181               <td> __WL__ </td>
182               <td> Common links of web (second line of topics) </td>
183               <td> %WEBTOPICLIST% &nbsp;</td>
184             </tr>
185             <tr>
186               <td> =%<nop>WIKIWEBLIST%= </td>
187               <td> __SL__ </td>
188               <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
189               <td> %WIKIWEBLIST% &nbsp;</td>
190 rizwank 1.1 </tr>
191             <tr>
192               <td> =%<nop>WIKIWEBMASTER%= </td>
193               <td> __SL__ </td>
194               <td> Webmaster email address (sender of email notifications) , is <b>%WIKIWEBMASTER%</b> </td>
195               <td> %WIKIWEBMASTER% &nbsp;</td>
196             </tr>
197             </table>
198             
199             __Note:__ There are some more useful variables defined in the TWikiPreferences like =%<nop>BR%= for line break, colors like =%<nop>RED%= for colored text and small icons like =%<nop>H%= for a %H% Help icon.
200             
201             #SettingPrefs
202             ---++ Setting Preferences
203             
204             	* The syntax for Preferences Variables is the same anywhere in TWiki (on its own TWiki bullet line, including nested bullets): <br />[multiple of 3 spaces] * [space] Set [space] VARIABLENAME [space] = [value]<br /> __Examples:__ 
205             	* ==<nop>Set VARIABLENAME = value==
206             		* ==<nop>Set VARIABLENAME = value==
207             
208             ---++ Creating Custom Variables
209             
210             	* You can add your own Preference Variables for us across an entire site or a single web, using the standard [[#SettingPrefs][Preferences syntax]]. Whatever you include in your Variable will be expanded on display, exactly as if it had been entered directly. You can place formatted text, page links, image paths.
211 rizwank 1.1 
212             <blockquote style="background-color:#ffffff">
213             *Example: Create a custom logo variable the <nop>%WEB% web* <br />
214             	* To place a logo anywhere in a web by typing ==%<nop>MYLOGO%==, define the Variable on the web's WebPreferences page, and upload a logo file, ex: =mylogo.gif=. You can upload by [[FileAttachment][attaching the file]] to WebPreferences, or, to avoid clutter, to any other topic in the same web, ex: =LogoTopic=:
215             		* ==<nop>Set MYLOGO = %<nop>PUBURL%/<nop>TWiki/LogoTopic/mylogo.gif== 
216             </blockquote>
217             
218             -- TWiki:Main.PeterThoeny - 14 Aug 2004 <br />
219             -- TWiki:Main.MikeMannix - 12 May 2002
220             %STOPINCLUDE%
221             
222             Crawford split up this topic into included TWikiVariablesAtoM and TWikiVariablesNtoZ.
223             
224             -- Main.PeterThoeny - 26 Jul 2004
225             

Rizwan Kassim
Powered by
ViewCVS 0.9.2