data/TWiki/TWikiVariables.txt,v
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/TWikiVariables.txt,v	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,3710 @@
     1.4 +head	1.83;
     1.5 +access;
     1.6 +symbols;
     1.7 +locks; strict;
     1.8 +comment	@# @;
     1.9 +
    1.10 +
    1.11 +1.83
    1.12 +date	2008.01.22.03.21.24;	author TWikiContributor;	state Exp;
    1.13 +branches;
    1.14 +next	1.82;
    1.15 +
    1.16 +1.82
    1.17 +date	2007.01.16.04.12.02;	author TWikiContributor;	state Exp;
    1.18 +branches;
    1.19 +next	1.81;
    1.20 +
    1.21 +1.81
    1.22 +date	2006.10.25.00.21.59;	author TWikiContributor;	state Exp;
    1.23 +branches;
    1.24 +next	1.80;
    1.25 +
    1.26 +1.80
    1.27 +date	2006.04.01.05.55.17;	author TWikiContributor;	state Exp;
    1.28 +branches;
    1.29 +next	1.79;
    1.30 +
    1.31 +1.79
    1.32 +date	2006.02.01.12.01.20;	author TWikiContributor;	state Exp;
    1.33 +branches;
    1.34 +next	1.78;
    1.35 +
    1.36 +1.78
    1.37 +date	2004.08.14.07.55.23;	author PeterThoeny;	state Exp;
    1.38 +branches;
    1.39 +next	1.77;
    1.40 +
    1.41 +1.77
    1.42 +date	2004.05.09.07.41.10;	author PeterThoeny;	state Exp;
    1.43 +branches;
    1.44 +next	1.76;
    1.45 +
    1.46 +1.76
    1.47 +date	2004.04.01.07.50.58;	author PeterThoeny;	state Exp;
    1.48 +branches;
    1.49 +next	1.75;
    1.50 +
    1.51 +1.75
    1.52 +date	2004.03.17.06.31.00;	author PeterThoeny;	state Exp;
    1.53 +branches;
    1.54 +next	1.74;
    1.55 +
    1.56 +1.74
    1.57 +date	2004.01.19.00.29.54;	author PeterThoeny;	state Exp;
    1.58 +branches;
    1.59 +next	1.73;
    1.60 +
    1.61 +1.73
    1.62 +date	2004.01.18.09.11.57;	author PeterThoeny;	state Exp;
    1.63 +branches;
    1.64 +next	1.72;
    1.65 +
    1.66 +1.72
    1.67 +date	2004.01.16.07.25.29;	author PeterThoeny;	state Exp;
    1.68 +branches;
    1.69 +next	1.71;
    1.70 +
    1.71 +1.71
    1.72 +date	2004.01.10.07.25.51;	author PeterThoeny;	state Exp;
    1.73 +branches;
    1.74 +next	1.70;
    1.75 +
    1.76 +1.70
    1.77 +date	2003.11.01.11.08.04;	author PeterThoeny;	state Exp;
    1.78 +branches;
    1.79 +next	1.69;
    1.80 +
    1.81 +1.69
    1.82 +date	2003.09.29.00.28.27;	author PeterThoeny;	state Exp;
    1.83 +branches;
    1.84 +next	1.68;
    1.85 +
    1.86 +1.68
    1.87 +date	2003.08.29.06.49.35;	author PeterThoeny;	state Exp;
    1.88 +branches;
    1.89 +next	1.67;
    1.90 +
    1.91 +1.67
    1.92 +date	2003.08.23.07.51.41;	author PeterThoeny;	state Exp;
    1.93 +branches;
    1.94 +next	1.66;
    1.95 +
    1.96 +1.66
    1.97 +date	2003.08.23.05.39.00;	author PeterThoeny;	state Exp;
    1.98 +branches;
    1.99 +next	1.65;
   1.100 +
   1.101 +1.65
   1.102 +date	2003.06.30.23.40.04;	author PeterThoeny;	state Exp;
   1.103 +branches;
   1.104 +next	1.64;
   1.105 +
   1.106 +1.64
   1.107 +date	2003.03.22.06.35.17;	author PeterThoeny;	state Exp;
   1.108 +branches;
   1.109 +next	1.63;
   1.110 +
   1.111 +1.63
   1.112 +date	2003.02.09.00.46.08;	author PeterThoeny;	state Exp;
   1.113 +branches;
   1.114 +next	1.62;
   1.115 +
   1.116 +1.62
   1.117 +date	2003.01.27.08.22.18;	author PeterThoeny;	state Exp;
   1.118 +branches;
   1.119 +next	1.61;
   1.120 +
   1.121 +1.61
   1.122 +date	2003.01.19.08.21.09;	author PeterThoeny;	state Exp;
   1.123 +branches;
   1.124 +next	1.60;
   1.125 +
   1.126 +1.60
   1.127 +date	2002.12.11.08.10.00;	author PeterThoeny;	state Exp;
   1.128 +branches;
   1.129 +next	1.59;
   1.130 +
   1.131 +1.59
   1.132 +date	2002.11.23.04.42.00;	author PeterThoeny;	state Exp;
   1.133 +branches;
   1.134 +next	1.58;
   1.135 +
   1.136 +1.58
   1.137 +date	2002.10.06.01.21.00;	author PeterThoeny;	state Exp;
   1.138 +branches;
   1.139 +next	1.57;
   1.140 +
   1.141 +1.57
   1.142 +date	2002.08.25.07.18.17;	author PeterThoeny;	state Exp;
   1.143 +branches;
   1.144 +next	1.56;
   1.145 +
   1.146 +1.56
   1.147 +date	2002.06.05.01.20.35;	author PeterThoeny;	state Exp;
   1.148 +branches;
   1.149 +next	1.55;
   1.150 +
   1.151 +1.55
   1.152 +date	2002.05.24.16.04.04;	author PeterThoeny;	state Exp;
   1.153 +branches;
   1.154 +next	1.54;
   1.155 +
   1.156 +1.54
   1.157 +date	2002.05.17.23.48.00;	author PeterThoeny;	state Exp;
   1.158 +branches;
   1.159 +next	1.53;
   1.160 +
   1.161 +1.53
   1.162 +date	2002.05.15.06.59.32;	author PeterThoeny;	state Exp;
   1.163 +branches;
   1.164 +next	1.52;
   1.165 +
   1.166 +1.52
   1.167 +date	2002.05.12.11.07.14;	author MikeMannix;	state Exp;
   1.168 +branches;
   1.169 +next	1.51;
   1.170 +
   1.171 +1.51
   1.172 +date	2002.04.07.10.30.00;	author PeterThoeny;	state Exp;
   1.173 +branches;
   1.174 +next	1.50;
   1.175 +
   1.176 +1.50
   1.177 +date	2002.03.08.03.52.00;	author MikeMannix;	state Exp;
   1.178 +branches;
   1.179 +next	1.49;
   1.180 +
   1.181 +1.49
   1.182 +date	2002.02.16.10.37.10;	author PeterThoeny;	state Exp;
   1.183 +branches;
   1.184 +next	1.48;
   1.185 +
   1.186 +1.48
   1.187 +date	2002.01.23.10.22.00;	author MikeMannix;	state Exp;
   1.188 +branches;
   1.189 +next	1.47;
   1.190 +
   1.191 +1.47
   1.192 +date	2002.01.06.03.45.00;	author MikeMannix;	state Exp;
   1.193 +branches;
   1.194 +next	1.46;
   1.195 +
   1.196 +1.46
   1.197 +date	2001.12.02.11.58.00;	author MikeMannix;	state Exp;
   1.198 +branches;
   1.199 +next	1.45;
   1.200 +
   1.201 +1.45
   1.202 +date	2001.11.30.10.14.00;	author MikeMannix;	state Exp;
   1.203 +branches;
   1.204 +next	1.44;
   1.205 +
   1.206 +1.44
   1.207 +date	2001.10.25.02.10.24;	author PeterThoeny;	state Exp;
   1.208 +branches;
   1.209 +next	1.43;
   1.210 +
   1.211 +1.43
   1.212 +date	2001.09.15.09.52.20;	author MikeMannix;	state Exp;
   1.213 +branches;
   1.214 +next	1.42;
   1.215 +
   1.216 +1.42
   1.217 +date	2001.09.14.06.07.40;	author PeterThoeny;	state Exp;
   1.218 +branches;
   1.219 +next	1.41;
   1.220 +
   1.221 +1.41
   1.222 +date	2001.09.13.07.49.26;	author JohnTalintyre;	state Exp;
   1.223 +branches;
   1.224 +next	1.40;
   1.225 +
   1.226 +1.40
   1.227 +date	2001.09.12.07.37.54;	author MikeMannix;	state Exp;
   1.228 +branches;
   1.229 +next	1.39;
   1.230 +
   1.231 +1.39
   1.232 +date	2001.09.07.10.08.32;	author MikeMannix;	state Exp;
   1.233 +branches;
   1.234 +next	1.38;
   1.235 +
   1.236 +1.38
   1.237 +date	2001.09.07.05.10.55;	author MikeMannix;	state Exp;
   1.238 +branches;
   1.239 +next	1.37;
   1.240 +
   1.241 +1.37
   1.242 +date	2001.09.01.03.18.20;	author MikeMannix;	state Exp;
   1.243 +branches;
   1.244 +next	1.36;
   1.245 +
   1.246 +1.36
   1.247 +date	2001.08.31.06.06.23;	author MikeMannix;	state Exp;
   1.248 +branches;
   1.249 +next	1.35;
   1.250 +
   1.251 +1.35
   1.252 +date	2001.08.30.16.06.31;	author MikeMannix;	state Exp;
   1.253 +branches;
   1.254 +next	1.34;
   1.255 +
   1.256 +1.34
   1.257 +date	2001.08.30.14.48.51;	author MikeMannix;	state Exp;
   1.258 +branches;
   1.259 +next	1.33;
   1.260 +
   1.261 +1.33
   1.262 +date	2001.08.29.00.16.01;	author MikeMannix;	state Exp;
   1.263 +branches;
   1.264 +next	1.32;
   1.265 +
   1.266 +1.32
   1.267 +date	2001.08.27.04.31.10;	author MikeMannix;	state Exp;
   1.268 +branches;
   1.269 +next	1.31;
   1.270 +
   1.271 +1.31
   1.272 +date	2001.08.26.22.08.29;	author MikeMannix;	state Exp;
   1.273 +branches;
   1.274 +next	1.30;
   1.275 +
   1.276 +1.30
   1.277 +date	2001.08.15.14.29.41;	author PeterThoeny;	state Exp;
   1.278 +branches;
   1.279 +next	1.29;
   1.280 +
   1.281 +1.29
   1.282 +date	2001.08.07.15.11.42;	author JohnTalintyre;	state Exp;
   1.283 +branches;
   1.284 +next	1.28;
   1.285 +
   1.286 +1.28
   1.287 +date	2001.07.23.07.30.52;	author PeterThoeny;	state Exp;
   1.288 +branches;
   1.289 +next	1.27;
   1.290 +
   1.291 +1.27
   1.292 +date	2001.07.15.02.04.44;	author PeterThoeny;	state Exp;
   1.293 +branches;
   1.294 +next	1.26;
   1.295 +
   1.296 +1.26
   1.297 +date	2001.07.11.16.56.50;	author PeterThoeny;	state Exp;
   1.298 +branches;
   1.299 +next	1.25;
   1.300 +
   1.301 +1.25
   1.302 +date	2001.06.26.00.40.16;	author PeterThoeny;	state Exp;
   1.303 +branches;
   1.304 +next	1.24;
   1.305 +
   1.306 +1.24
   1.307 +date	2001.06.08.01.59.58;	author PeterThoeny;	state Exp;
   1.308 +branches;
   1.309 +next	1.23;
   1.310 +
   1.311 +1.23
   1.312 +date	2001.06.02.00.27.07;	author PeterThoeny;	state Exp;
   1.313 +branches;
   1.314 +next	1.22;
   1.315 +
   1.316 +1.22
   1.317 +date	2001.03.25.07.32.59;	author PeterThoeny;	state Exp;
   1.318 +branches;
   1.319 +next	1.21;
   1.320 +
   1.321 +1.21
   1.322 +date	2001.03.16.08.32.38;	author PeterThoeny;	state Exp;
   1.323 +branches;
   1.324 +next	1.20;
   1.325 +
   1.326 +1.20
   1.327 +date	2001.03.02.02.05.13;	author PeterThoeny;	state Exp;
   1.328 +branches;
   1.329 +next	1.19;
   1.330 +
   1.331 +1.19
   1.332 +date	2001.01.20.08.58.55;	author PeterThoeny;	state Exp;
   1.333 +branches;
   1.334 +next	1.18;
   1.335 +
   1.336 +1.18
   1.337 +date	2001.01.20.02.25.23;	author PeterThoeny;	state Exp;
   1.338 +branches;
   1.339 +next	1.17;
   1.340 +
   1.341 +1.17
   1.342 +date	2001.01.16.03.45.49;	author PeterThoeny;	state Exp;
   1.343 +branches;
   1.344 +next	1.16;
   1.345 +
   1.346 +1.16
   1.347 +date	2000.12.18.21.14.46;	author PeterThoeny;	state Exp;
   1.348 +branches;
   1.349 +next	1.15;
   1.350 +
   1.351 +1.15
   1.352 +date	2000.12.15.17.59.47;	author PeterThoeny;	state Exp;
   1.353 +branches;
   1.354 +next	1.14;
   1.355 +
   1.356 +1.14
   1.357 +date	2000.12.14.02.40.48;	author PeterThoeny;	state Exp;
   1.358 +branches;
   1.359 +next	1.13;
   1.360 +
   1.361 +1.13
   1.362 +date	2000.11.11.00.39.03;	author PeterThoeny;	state Exp;
   1.363 +branches;
   1.364 +next	1.12;
   1.365 +
   1.366 +1.12
   1.367 +date	2000.11.02.06.41.55;	author PeterThoeny;	state Exp;
   1.368 +branches;
   1.369 +next	1.11;
   1.370 +
   1.371 +1.11
   1.372 +date	2000.09.20.01.00.47;	author PeterThoeny;	state Exp;
   1.373 +branches;
   1.374 +next	1.10;
   1.375 +
   1.376 +1.10
   1.377 +date	2000.09.19.07.19.18;	author PeterThoeny;	state Exp;
   1.378 +branches;
   1.379 +next	1.9;
   1.380 +
   1.381 +1.9
   1.382 +date	2000.08.18.07.12.18;	author PeterThoeny;	state Exp;
   1.383 +branches;
   1.384 +next	1.8;
   1.385 +
   1.386 +1.8
   1.387 +date	2000.07.28.23.24.51;	author PeterThoeny;	state Exp;
   1.388 +branches;
   1.389 +next	1.7;
   1.390 +
   1.391 +1.7
   1.392 +date	2000.05.29.09.01.12;	author PeterThoeny;	state Exp;
   1.393 +branches;
   1.394 +next	1.6;
   1.395 +
   1.396 +1.6
   1.397 +date	2000.04.22.05.03.14;	author PeterThoeny;	state Exp;
   1.398 +branches;
   1.399 +next	1.5;
   1.400 +
   1.401 +1.5
   1.402 +date	2000.03.21.23.20.32;	author PeterThoeny;	state Exp;
   1.403 +branches;
   1.404 +next	1.4;
   1.405 +
   1.406 +1.4
   1.407 +date	2000.03.01.03.12.47;	author PeterThoeny;	state Exp;
   1.408 +branches;
   1.409 +next	1.3;
   1.410 +
   1.411 +1.3
   1.412 +date	2000.02.28.08.23.43;	author PeterThoeny;	state Exp;
   1.413 +branches;
   1.414 +next	1.2;
   1.415 +
   1.416 +1.2
   1.417 +date	2000.01.30.08.45.31;	author PeterThoeny;	state Exp;
   1.418 +branches;
   1.419 +next	1.1;
   1.420 +
   1.421 +1.1
   1.422 +date	99.06.13.07.45.37;	author thoeny;	state Exp;
   1.423 +branches;
   1.424 +next	;
   1.425 +
   1.426 +
   1.427 +desc
   1.428 +@none
   1.429 +@
   1.430 +
   1.431 +
   1.432 +1.83
   1.433 +log
   1.434 +@buildrelease
   1.435 +@
   1.436 +text
   1.437 +@%META:TOPICINFO{author="TWikiContributor" date="1173217738" format="1.0" version="83"}%
   1.438 +%META:TOPICPARENT{name="WebHome"}%
   1.439 +%STARTSECTION{type="include"}%
   1.440 +---+ TWiki Variables
   1.441 +
   1.442 +_Special text strings expand on the fly to display user data or system info_
   1.443 +
   1.444 +<nop>TWikiVariables are text strings - =%<nop>VARIABLE%= or =%<nop>VARIABLE{ parameter="value" }%= - that expand into content whenever a topic is rendered for viewing. There are two types of variables:
   1.445 +   1 Preferences variables: Can be defined and changed by the user
   1.446 +   1 Predefined variables: Defined by the TWiki system or by Plugins (for example, the SpreadSheetPlugin introduces a =%<nop>CALC{}%= variable)
   1.447 +
   1.448 +%TOC%
   1.449 +
   1.450 +---++ Using Variables
   1.451 +
   1.452 +To use a variable type its name. For example,
   1.453 +   * type =%<nop>T%= to get %T% (a preferences variable)
   1.454 +   * type =%<nop>TOPIC%= to get =%TOPIC%= (a predefined variable)
   1.455 +   * type =%<nop>CALC{ "$UPPER(Text)" }%= to get =TEXT= (a variable defined by Plugin)
   1.456 +
   1.457 +__Note:__
   1.458 +   * To leave a variable unexpanded, precede it with an exclamation point, e.g. type =!%<nop>TOPIC%= to get =%<nop>TOPIC%=
   1.459 +   * Variables are expanded relative to the topic they are _used_ in, not the topic they are _defined_ in
   1.460 +   * Type =%<nop>ALLVARIABLES%= to get a full listing of all variables defined for a particular topic
   1.461 +
   1.462 +---++ Variable Names
   1.463 +Variable names must start with a letter. The following characters can be letters, numbers and the underscore '_'. You can use both upper-case and lower-case letters and you can mix the characteres. E.g. =%<nop>MYVAR%=, =%<nop>MyVar%=, =%<nop>My2ndVar%=, and =%<nop>My_Var%= are all valid variable names. Variables are case sensitive. =%<nop>MyVAR%= and =%<nop>MYVAR%= are not the same variable.
   1.464 +
   1.465 +By convention all settings, predefined variables and variables used by plugins are always UPPER-CASE.
   1.466 +
   1.467 +#SettingPrefs
   1.468 +#PreferencesVariables
   1.469 +---++ Preferences Variables
   1.470 +
   1.471 +Unlike predefined variables, preferences variables can be defined by the user in various places.
   1.472 +
   1.473 +---+++ Setting Preferences Variables
   1.474 +You can set variables in all the following places:
   1.475 +   1 local site level in [[%SYSTEMWEB%.TWikiPreferences][%SYSTEMWEB%.TWikiPreferences]]
   1.476 +   1 plugin topics (see TWikiPlugins)
   1.477 +   1 local site level in [[%LOCALSITEPREFS%][%LOCALSITEPREFS%]]
   1.478 +   1 user level in individual user topics in %USERSWEB% web
   1.479 +   1 web level in %WEBPREFSTOPIC% of each web
   1.480 +   1 topic level in topics in webs
   1.481 +   1 session variables (if sessions are enabled)
   1.482 +
   1.483 +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.
   1.484 +
   1.485 +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.
   1.486 +
   1.487 +The syntax for setting 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] = [space] value=
   1.488 +<blockquote>
   1.489 +*Examples:*
   1.490 +   * ==<nop>Set VARIABLENAME = value==
   1.491 +      * ==<nop>Set VARIABLENAME = value==
   1.492 +</blockquote>
   1.493 +Spaces between the = sign and the value will be ignored. You can split a value over several lines by indenting following lines with spaces - as long as you don't try to use * as the first character on the following line.
   1.494 +<blockquote>
   1.495 +*Example:*
   1.496 +<pre>
   1.497 +   * <nop>Set VARIABLENAME = value starts here
   1.498 +     and continues here
   1.499 +</pre>
   1.500 +</blockquote>
   1.501 +
   1.502 +Whatever you include in your Variable will be expanded on display, exactly as if it had been entered directly.
   1.503 +
   1.504 +<blockquote>
   1.505 +*Example: Create a custom logo variable* <br />
   1.506 +   * To place a logo anywhere in a web by typing ==%<nop>MYLOGO%==, define the Variable on the web's WebPreferences topic, 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, e.g. =LogoTopic=. Sample variable setting in WebPreferences:
   1.507 +      * ==<nop>Set MYLOGO = %<nop>PUBURL%/%<nop>WEB%/LogoTopic/mylogo.gif==
   1.508 +</blockquote>
   1.509 +
   1.510 +You can also set preferences variables on a topic by clicking the link =Edit topic preference settings= under =More topic actions=. Preferences set in this manner are not visible in the topic text, but take effect nevertheless.
   1.511 +
   1.512 +---+++ Access Control Variables
   1.513 +
   1.514 +These are special types of preferences variables to control access to content. TWikiAccessControl explains these security settings in detail.
   1.515 +
   1.516 +---+++ Local values for variables
   1.517 +Certain topics (a users home topic, web site and default preferences topics) have a problem; variables defined in those topics can have two meanings. For example, consider a user topic. A user may want to use a double-height edit box when they are editing their home topic - but *only* when editing their home topic. The rest of the time, they want to have a normal edit box. This separation is achieved using =Local= in place of =Set= in the variable definition. For example, if the user sets the following in their home topic:
   1.518 +<verbatim>
   1.519 +   * Set EDITBOXHEIGHT = 10
   1.520 +   * Local EDITBOXHEIGHT = 20
   1.521 +</verbatim>
   1.522 +Then when they are editing any other topic, they will get a 10 high edit box. However when they are editing their home topic, they will get a 20 high edit box.
   1.523 +=Local= can be used wherever a preference needs to take a different value depending on where the current operation is being performed.
   1.524 +
   1.525 +Use this powerful feature with great care! =%<nop>ALLVARIABLES%= can be used to get a listing of the values of all variables in their evaluation order, so you can see variable scope if you get confused.
   1.526 +
   1.527 +---+++ Frequently Used Preferences Variables
   1.528 +
   1.529 +The following preferences variables are frequently used. They are defined in TWikiPreferences#Miscellaneous_Settings:
   1.530 +   * =%<nop>BR%= - line break
   1.531 +   * =%<nop>BULLET%= - bullet sign
   1.532 +   * =%<nop>BB%= - line break and bullet combined
   1.533 +   * =%<nop>BB2%= - indented line break and bullet
   1.534 +   * =%<nop>RED% text %<nop>ENDCOLOR%= - colored text (also =%<nop>YELLOW%=, =%<nop>ORANGE%=, =%<nop>PINK%=, =%<nop>PURPLE%=, =%<nop>TEAL%=, =%<nop>NAVY%=, =%<nop>BLUE%=, =%<nop>AQUA%=, =%<nop>LIME%=, =%<nop>GREEN%=, =%<nop>OLIVE%=, =%<nop>MAROON%=, =%<nop>BROWN%=, =%<nop>BLACK%=, =%<nop>GRAY%=, =%<nop>SILVER%=, =%<nop>WHITE%=)
   1.535 +   * =%<nop>H%= - %H% Help icon
   1.536 +   * =%<nop>I%= - %I% Idea icon
   1.537 +   * =%<nop>M%= - %M% Moved to icon
   1.538 +   * =%<nop>N%= - %N% New icon
   1.539 +   * =%<nop>P%= - %P% Refactor icon
   1.540 +   * =%<nop>Q%= - %Q% Question icon
   1.541 +   * =%<nop>S%= - %S% Pick icon
   1.542 +   * =%<nop>T%= - %T% Tip icon
   1.543 +   * =%<nop>U%= - %U% Updated icon
   1.544 +   * =%<nop>X%= - %X% Alert icon
   1.545 +   * =%<nop>Y%= - %Y% Done icon
   1.546 +
   1.547 +There are additional useful preferences variables defined in TWikiPreferences, in [[%LOCALSITEPREFS%]], and in WebPreferences of every web.
   1.548 +
   1.549 +#PreDef
   1.550 +---++ Predefined Variables
   1.551 +
   1.552 +Most predefined variables return values that were either set in the configuration when TWiki was installed, or taken from server info (such as current username, or date and time). Some, like =%<nop>SEARCH%=, are powerful and general tools.
   1.553 +
   1.554 +   * %X% Predefined variables can be overridden by [[#PreferencesVariables][preferences variables]]
   1.555 +   * %X% Plugins may extend the set of predefined variables (see individual Plugins topics for details)
   1.556 +   * %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%=.
   1.557 +
   1.558 +This version of TWiki - %WIKIVERSION% - predefines the following variables:
   1.559 +
   1.560 +%SEARCH{
   1.561 +    "^Var[A-Z_0-9]+$"
   1.562 +    casesensitive="on"
   1.563 +    type="regex"
   1.564 +    scope="topic"
   1.565 +    format="$percntINCLUDE{$web.$topic}$percnt"
   1.566 +    nonoise="on"
   1.567 +}%
   1.568 +
   1.569 +%ENDSECTION{type="include"}%
   1.570 +
   1.571 +__Related Topics:__ UserDocumentationCategory
   1.572 +
   1.573 +@
   1.574 +
   1.575 +
   1.576 +1.82
   1.577 +log
   1.578 +@buildrelease
   1.579 +@
   1.580 +text
   1.581 +@d1 1
   1.582 +a1 1
   1.583 +%META:TOPICINFO{author="TWikiContributor" date="1142799790" format="1.0" version="82"}%
   1.584 +a2 1
   1.585 +%TOC%
   1.586 +d4 1
   1.587 +a4 1
   1.588 +---# TWiki Variables
   1.589 +d12 2
   1.590 +d39 1
   1.591 +a39 1
   1.592 +   1 local site level in [[%TWIKIWEB%.TWikiPreferences][%TWIKIWEB%.TWikiPreferences]]
   1.593 +d42 1
   1.594 +a42 1
   1.595 +   1 user level in individual user topics in %MAINWEB% web
   1.596 +d49 2
   1.597 +@
   1.598 +
   1.599 +
   1.600 +1.81
   1.601 +log
   1.602 +@buildrelease
   1.603 +@
   1.604 +text
   1.605 +@d1 1
   1.606 +a1 1
   1.607 +%META:TOPICINFO{author="TWikiContributor" date="1142799790" format="1.0" version="81"}%
   1.608 +d39 1
   1.609 +a43 1
   1.610 +   1 plugin topics (see TWikiPlugins)
   1.611 +d49 1
   1.612 +a49 1
   1.613 +<blockquote style="background-color:#f9f9f9">
   1.614 +d55 1
   1.615 +a55 1
   1.616 +<blockquote style="background-color:#f9f9f9">
   1.617 +d65 1
   1.618 +a65 1
   1.619 +<blockquote style="background-color:#f9f9f9">
   1.620 +@
   1.621 +
   1.622 +
   1.623 +1.80
   1.624 +log
   1.625 +@buildrelease
   1.626 +@
   1.627 +text
   1.628 +@d1 1
   1.629 +a1 1
   1.630 +%META:TOPICINFO{author="TWikiContributor" date="1142799790" format="1.0" version="80"}%
   1.631 +d38 2
   1.632 +a39 1
   1.633 +   1 local site level in %LOCALSITEPREFS%
   1.634 +@
   1.635 +
   1.636 +
   1.637 +1.79
   1.638 +log
   1.639 +@buildrelease
   1.640 +@
   1.641 +text
   1.642 +@d1 1
   1.643 +a1 1
   1.644 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="79"}%
   1.645 +d4 1
   1.646 +a4 1
   1.647 +%STARTINCLUDE%
   1.648 +d10 2
   1.649 +a11 2
   1.650 +	1 Preferences variables: Can be defined and changed by the user
   1.651 +	1 Predefined variables: Defined by the TWiki system or by Plugins (for example, the SpreadSheetPlugin introduces a =%<nop>CALC{}%= variable)
   1.652 +d16 3
   1.653 +a18 3
   1.654 +	* type =%<nop>T%= to get %T% (a preferences variable)
   1.655 +	* type =%<nop>TOPIC%= to get =%TOPIC%= (a predefined variable)
   1.656 +	* type =%<nop>CALC{ "$UPPER(Text)" }%= to get =TEXT= (a variable defined by Plugin)
   1.657 +d21 3
   1.658 +a23 3
   1.659 +	* To leave a variable unexpanded, precede it with an exclamation point, e.g. type =!%<nop>TOPIC%= to get =%<nop>TOPIC%=
   1.660 +	* Variables are expanded relative to the topic they are _used_ in, not the topic they are _defined_ in
   1.661 +	* Type =%<nop>ALLVARIABLES%= to get a full listing of all variables defined for a particular topic
   1.662 +d25 4
   1.663 +d38 6
   1.664 +a43 6
   1.665 +	1 local site level in %LOCALSITEPREFS%
   1.666 +	1 user level in individual user topics in %MAINWEB% web
   1.667 +	1 web level in %WEBPREFSTOPIC% of each web
   1.668 +	1 topic level in topics in webs
   1.669 +	1 plugin topics (see TWikiPlugins)
   1.670 +	1 session variables (if sessions are enabled)
   1.671 +d50 2
   1.672 +a51 2
   1.673 +	* ==<nop>Set VARIABLENAME = value==
   1.674 +		* ==<nop>Set VARIABLENAME = value==
   1.675 +d57 2
   1.676 +a58 2
   1.677 +	* <nop>Set VARIABLENAME = value starts here
   1.678 +	  and continues here
   1.679 +d66 2
   1.680 +a67 2
   1.681 +	* To place a logo anywhere in a web by typing ==%<nop>MYLOGO%==, define the Variable on the web's WebPreferences topic, 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, e.g. =LogoTopic=. Sample variable setting in WebPreferences:
   1.682 +		* ==<nop>Set MYLOGO = %<nop>PUBURL%/%<nop>WEB%/LogoTopic/mylogo.gif==
   1.683 +d79 2
   1.684 +a80 2
   1.685 +	* Set EDITBOXHEIGHT = 10
   1.686 +	* Local EDITBOXHEIGHT = 20
   1.687 +d90 16
   1.688 +a105 16
   1.689 +	* =%<nop>BR%= - line break
   1.690 +	* =%<nop>BULLET%= - bullet sign
   1.691 +	* =%<nop>BB%= - line break and bullet combined
   1.692 +	* =%<nop>BB2%= - indented line break and bullet
   1.693 +	* =%<nop>RED% text %<nop>ENDCOLOR%= - colored text (also =%<nop>YELLOW%=, =%<nop>ORANGE%=, =%<nop>PINK%=, =%<nop>PURPLE%=, =%<nop>TEAL%=, =%<nop>NAVY%=, =%<nop>BLUE%=, =%<nop>AQUA%=, =%<nop>LIME%=, =%<nop>GREEN%=, =%<nop>OLIVE%=, =%<nop>MAROON%=, =%<nop>BROWN%=, =%<nop>BLACK%=, =%<nop>GRAY%=, =%<nop>SILVER%=, =%<nop>WHITE%=)
   1.694 +	* =%<nop>H%= - %H% Help icon
   1.695 +	* =%<nop>I%= - %I% Idea icon
   1.696 +	* =%<nop>M%= - %M% Moved to icon
   1.697 +	* =%<nop>N%= - %N% New icon
   1.698 +	* =%<nop>P%= - %P% Refactor icon
   1.699 +	* =%<nop>Q%= - %Q% Question icon
   1.700 +	* =%<nop>S%= - %S% Pick icon
   1.701 +	* =%<nop>T%= - %T% Tip icon
   1.702 +	* =%<nop>U%= - %U% Updated icon
   1.703 +	* =%<nop>X%= - %X% Alert icon
   1.704 +	* =%<nop>Y%= - %Y% Done icon
   1.705 +d114 3
   1.706 +a116 3
   1.707 +	* %X% Predefined variables can be overridden by [[#PreferencesVariables][preferences variables]]
   1.708 +	* %X% Plugins may extend the set of predefined variables (see individual Plugins topics for details)
   1.709 +	* %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%=.
   1.710 +d120 8
   1.711 +a127 2
   1.712 +%INCLUDE{"TWikiVariablesAtoM"}%
   1.713 +%INCLUDE{"TWikiVariablesNtoZ"}%
   1.714 +d129 1
   1.715 +a129 1
   1.716 +%STOPINCLUDE%
   1.717 +@
   1.718 +
   1.719 +
   1.720 +1.78
   1.721 +log
   1.722 +@none
   1.723 +@
   1.724 +text
   1.725 +@d1 1
   1.726 +a1 1
   1.727 +%META:TOPICINFO{author="PeterThoeny" date="1092470123" format="1.0" version="1.78"}%
   1.728 +d9 15
   1.729 +a23 1
   1.730 +<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.
   1.731 +a24 3
   1.732 +__Notes:__
   1.733 +	* To leave a variable unexpanded, precede it with an exclamation point, e.g. type =!%<nop>TOPIC%= to get !%TOPIC%.
   1.734 +	* Variables are expanded relative to the topic they are _used_ in, not the topic they are _defined_ in.
   1.735 +d26 3
   1.736 +a28 1
   1.737 +---++ Predefined Variables
   1.738 +d30 1
   1.739 +a30 1
   1.740 +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.
   1.741 +d32 25
   1.742 +a56 1
   1.743 +	* %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%==.
   1.744 +d58 1
   1.745 +a58 1
   1.746 +This version of TWiki - %WIKIVERSION% - expands the following variables (enclosed in ==%== percent signs):
   1.747 +d60 5
   1.748 +a64 2
   1.749 +%INCLUDE{"TWikiVariablesAtoM"}%
   1.750 +%INCLUDE{"TWikiVariablesNtoZ"}%
   1.751 +d66 1
   1.752 +a66 1
   1.753 +__Note:__ Above text is included from TWikiVariablesAtoM and TWikiVariablesNtoZ
   1.754 +d68 1
   1.755 +d70 1
   1.756 +a70 2
   1.757 +#PreferencesVariables
   1.758 +---++ Preferences Variables
   1.759 +d72 30
   1.760 +a101 166
   1.761 +Additional variables are defined in the preferences topics:
   1.762 +	* site-level ( __SL__ ) in %TWIKIWEB%.%WIKIPREFSTOPIC%
   1.763 +	* web-level ( __WL__ ) in %WEBPREFSTOPIC% of each web
   1.764 +	* user level ( __UL__ ) in individual user topics
   1.765 +
   1.766 +<table cellspacing="0" cellpadding="2" border="1" align="center" style="background-color:#f5f5f5">
   1.767 +<tr>
   1.768 +  <th width="160"> Variable: </th><th> Level: </th><th> What: </th><th>Expands to:</th>
   1.769 +</tr>
   1.770 +<tr>
   1.771 +  <td> =%<nop>ALLOWTOPICCHANGE%= </td>
   1.772 +  <td> __(any topic)__ </td>
   1.773 +  <td> List of users and groups who are *allowed* to change the current topic. (More in TWikiAccessControl) </td>
   1.774 +  <td> %ALLOWTOPICCHANGE% &nbsp;</td>
   1.775 +</tr>
   1.776 +<tr>
   1.777 +  <td> =%<nop>ALLOWTOPICRENAME%= </td>
   1.778 +  <td> __(any topic)__ </td>
   1.779 +  <td> List of users and groups who are *allowed* to rename the current topic. (More in TWikiAccessControl) </td>
   1.780 +  <td> %ALLOWTOPICRENAME% &nbsp;</td>
   1.781 +</tr>
   1.782 +<tr>
   1.783 +  <td> =%<nop>ALLOWWEBCHANGE%= </td>
   1.784 +  <td> __WL__ </td>
   1.785 +  <td> List of users and groups who are *allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
   1.786 +  <td> %ALLOWWEBCHANGE% &nbsp;</td>
   1.787 +</tr>
   1.788 +<tr>
   1.789 +  <td> =%<nop>ALLOWWEBRENAME%= </td>
   1.790 +  <td> __WL__ </td>
   1.791 +  <td> List of users and groups who are *allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
   1.792 +  <td> %ALLOWWEBRENAME% &nbsp;</td>
   1.793 +</tr>
   1.794 +<tr>
   1.795 +  <td> =%<nop>ATTACHLINKBOX%= </td>
   1.796 +  <td> __SL__ , __UL__ </td>
   1.797 +  <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>
   1.798 +  <td> %ATTACHLINKBOX% &nbsp;</td>
   1.799 +</tr>
   1.800 +<tr>
   1.801 +  <td> =%<nop>DENYTOPICCHANGE%= </td>
   1.802 +  <td> __(any topic)__ </td>
   1.803 +  <td> List of users and groups who are *not allowed* to change the current topic. (More in TWikiAccessControl) </td>
   1.804 +  <td> %DENYTOPICCHANGE% &nbsp;</td>
   1.805 +</tr>
   1.806 +<tr>
   1.807 +  <td> =%<nop>DENYTOPICRENAME%= </td>
   1.808 +  <td> __(any topic)__ </td>
   1.809 +  <td> List of users and groups who are *not allowed* to rename the current topic. (More in TWikiAccessControl) </td>
   1.810 +  <td> %DENYTOPICRENAME% &nbsp;</td>
   1.811 +</tr>
   1.812 +<tr>
   1.813 +  <td> =%<nop>DENYWEBCHANGE%= </td>
   1.814 +  <td> __WL__ </td>
   1.815 +  <td> List of users and groups who are *not allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
   1.816 +  <td> %DENYWEBCHANGE% &nbsp;</td>
   1.817 +</tr>
   1.818 +<tr>
   1.819 +  <td> =%<nop>DENYWEBRENAME%= </td>
   1.820 +  <td> __WL__ </td>
   1.821 +  <td> List of users and groups who are *not allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
   1.822 +  <td> %DENYWEBRENAME% &nbsp;</td>
   1.823 +</tr>
   1.824 +<tr>
   1.825 +  <td> =%<nop>DONTNOTIFYCHECKBOX%= </td>
   1.826 +  <td> __SL__ , __UL__ </td>
   1.827 +  <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>
   1.828 +  <td> %DONTNOTIFYCHECKBOX% &nbsp;</td>
   1.829 +</tr>
   1.830 +<tr>
   1.831 +  <td> =%<nop>EDITBOXHEIGHT%= </td>
   1.832 +  <td> __SL__ , __UL__ </td>
   1.833 +  <td> Vertical size of edit box, is <b> =%EDITBOXHEIGHT%= </b> </td>
   1.834 +  <td> %EDITBOXHEIGHT% &nbsp;</td>
   1.835 +</tr>
   1.836 +<tr>
   1.837 +  <td> =%<nop>EDITBOXWIDTH%= </td>
   1.838 +  <td> __SL__ , __UL__ </td>
   1.839 +  <td> Horizontal size of edit box, is <b> =%EDITBOXWIDTH%= </b> </td>
   1.840 +  <td> %EDITBOXWIDTH% &nbsp;</td>
   1.841 +</tr>
   1.842 +<tr>
   1.843 +  <td> =%<nop>EDITBOXSTYLE%= </td>
   1.844 +  <td> __SL__ , __UL__ </td>
   1.845 +  <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>
   1.846 +  <td> %EDITBOXSTYLE% &nbsp;</td>
   1.847 +</tr>
   1.848 +<tr>
   1.849 +  <td> =%<nop>FINALPREFERENCES%= </td>
   1.850 +  <td> __SL__ , __WL__ </td>
   1.851 +  <td> List of preferences that are not allowed to be overridden by next level preferences</td>
   1.852 +  <td> %FINALPREFERENCES% &nbsp;</td>
   1.853 +</tr>
   1.854 +<tr>
   1.855 +  <td> =%<nop>HTTP_EQUIV_ON_EDIT%= </td>
   1.856 +  <td> __SL__ , __UL__ </td>
   1.857 +  <td> http-equiv meta tags for edit script. </td>
   1.858 +  <td> %HTTP_EQUIV_ON_EDIT% &nbsp;</td>
   1.859 +</tr>
   1.860 +<tr>
   1.861 +  <td> =%<nop>HTTP_EQUIV_ON_PREVIEW%= </td>
   1.862 +  <td> __SL__ , __UL__ </td>
   1.863 +  <td> http-equiv meta tags for preview script. </td>
   1.864 +  <td> %HTTP_EQUIV_ON_PREVIEW% &nbsp;</td>
   1.865 +</tr>
   1.866 +<tr>
   1.867 +  <td> =%<nop>HTTP_EQUIV_ON_VIEW%= </td>
   1.868 +  <td> __SL__ </td>
   1.869 +  <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
   1.870 +  <td> %HTTP_EQUIV_ON_VIEW% &nbsp;</td>
   1.871 +</tr>
   1.872 +<tr>
   1.873 +  <td> =%<nop>NEWTOPICBGCOLOR%= </td>
   1.874 +  <td> __SL__ , _UL_ </td>
   1.875 +  <td> Background color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
   1.876 +  <td> %NEWTOPICBGCOLOR% &nbsp;</td>
   1.877 +</tr>
   1.878 +<tr>
   1.879 +  <td> =%<nop>NEWTOPICFONTCOLOR%= </td>
   1.880 +  <td> __SL__ , _UL_ </td>
   1.881 +  <td> Font color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
   1.882 +  <td> %NEWTOPICFONTCOLOR% &nbsp;</td>
   1.883 +</tr>
   1.884 +<tr>
   1.885 +  <td> =%<nop>NOSEARCHALL%= </td>
   1.886 +  <td> __WL__ </td>
   1.887 +  <td> Exclude web from a =web="all"= search (set variable to =on= for hidden webs) </td>
   1.888 +  <td> %NOSEARCHALL% &nbsp;</td>
   1.889 +</tr>
   1.890 +<tr>
   1.891 +  <td> =%<nop>RELEASEEDITLOCKCHECKBOX%= </td>
   1.892 +  <td> __SL__ , __UL__ </td>
   1.893 +  <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>
   1.894 +  <td> %RELEASEEDITLOCKCHECKBOX% &nbsp;</td>
   1.895 +</tr>
   1.896 +<tr>
   1.897 +  <td> =%<nop>WEBBGCOLOR%= </td>
   1.898 +  <td> __WL__ </td>
   1.899 +  <td> Background color of web </td>
   1.900 +  <td> %WEBBGCOLOR% &nbsp;</td>
   1.901 +</tr>
   1.902 +<tr>
   1.903 +  <td> =%<nop>WEBCOPYRIGHT%= </td>
   1.904 +  <td> __SL__ , __WL__ </td>
   1.905 +  <td> Copyright notice (bottom right corner of topics) </td>
   1.906 +  <td> %WEBCOPYRIGHT% &nbsp;</td>
   1.907 +</tr>
   1.908 +<tr>
   1.909 +  <td> =%<nop>WEBTOPICLIST%= </td>
   1.910 +  <td> __WL__ </td>
   1.911 +  <td> Common links of web (second line of topics) </td>
   1.912 +  <td> %WEBTOPICLIST% &nbsp;</td>
   1.913 +</tr>
   1.914 +<tr>
   1.915 +  <td> =%<nop>WIKIWEBLIST%= </td>
   1.916 +  <td> __SL__ </td>
   1.917 +  <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
   1.918 +  <td> %WIKIWEBLIST% &nbsp;</td>
   1.919 +</tr>
   1.920 +<tr>
   1.921 +  <td> =%<nop>WIKIWEBMASTER%= </td>
   1.922 +  <td> __SL__ </td>
   1.923 +  <td> Webmaster email address (sender of email notifications) , is <b>%WIKIWEBMASTER%</b> </td>
   1.924 +  <td> %WIKIWEBMASTER% &nbsp;</td>
   1.925 +</tr>
   1.926 +</table>
   1.927 +d103 1
   1.928 +a103 1
   1.929 +__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.
   1.930 +d105 2
   1.931 +a106 2
   1.932 +#SettingPrefs
   1.933 +---++ Setting Preferences
   1.934 +d108 1
   1.935 +a108 3
   1.936 +	* 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:__ 
   1.937 +	* ==<nop>Set VARIABLENAME = value==
   1.938 +		* ==<nop>Set VARIABLENAME = value==
   1.939 +d110 3
   1.940 +a112 1
   1.941 +---++ Creating Custom Variables
   1.942 +d114 1
   1.943 +a114 1
   1.944 +	* 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.
   1.945 +d116 2
   1.946 +a117 5
   1.947 +<blockquote style="background-color:#ffffff">
   1.948 +*Example: Create a custom logo variable the <nop>%WEB% web* <br />
   1.949 +	* 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=:
   1.950 +		* ==<nop>Set MYLOGO = %<nop>PUBURL%/<nop>TWiki/LogoTopic/mylogo.gif== 
   1.951 +</blockquote>
   1.952 +a118 2
   1.953 +-- TWiki:Main.PeterThoeny - 14 Aug 2004 <br />
   1.954 +-- TWiki:Main.MikeMannix - 12 May 2002
   1.955 +d121 1
   1.956 +a121 3
   1.957 +Crawford split up this topic into included TWikiVariablesAtoM and TWikiVariablesNtoZ.
   1.958 +
   1.959 +-- Main.PeterThoeny - 26 Jul 2004
   1.960 +@
   1.961 +
   1.962 +
   1.963 +1.77
   1.964 +log
   1.965 +@none
   1.966 +@
   1.967 +text
   1.968 +@d1 1
   1.969 +a1 1
   1.970 +%META:TOPICINFO{author="PeterThoeny" date="1084088470" format="1.0" version="1.77"}%
   1.971 +d9 1
   1.972 +a9 1
   1.973 +<nop>TWikiVariables are text strings - =%<nop>VARIABLE%= - that expand into content whenever a page is opened. When a topic is rendered for viewing, =VARIABLES= are replaced by data, either user-entered, or info automatically generated by TWiki (like the date, or the current username). There are predefined variables, and Preference variables that you configure. You can also define custom variables, with new names and values.
   1.974 +d11 3
   1.975 +a13 1
   1.976 +__Note:__ To leave a variable unexpanded, preceed it with an exclamation point, e.g. type =!%<nop>TOPIC%= to get !%TOPIC%.
   1.977 +d23 4
   1.978 +a26 420
   1.979 +#VarATTACHURL
   1.980 +---+++ ATTACHURL -- attachment URL of the current topic
   1.981 +	* Syntax: =%<nop>ATTACHURL%=
   1.982 +	* Expands to: =%ATTACHURL%=
   1.983 +	* Example: If you attach a file you can refer to it as =%<nop>ATTACHURL%/image.gif=
   1.984 +	* Related: [[#VarATTACHURLPATH][ATTACHURLPATH]], [[#VarPUBURLPATH][PUBURLPATH]], [[#VarSCRIPTURL][SCRIPTURL]], FileAttachments
   1.985 +
   1.986 +#VarATTACHURLPATH
   1.987 +---+++ ATTACHURLPATH -- path of the attachment URL of the current topic
   1.988 +	* Syntax: =%<nop>ATTACHURLPATH%=
   1.989 +	* Expands to: =%ATTACHURLPATH%=
   1.990 +	* Related: [[#VarATTACHURL][ATTACHURL]], [[#VarPUBURL][PUBURL]], FileAttachments
   1.991 +
   1.992 +#VarBASETOPIC
   1.993 +---+++ BASETOPIC -- base topic where an INCLUDE started
   1.994 +	* The name of the topic where a single or nested INCLUDE started - same as =%<nop>TOPIC%= if there is no INCLUDE
   1.995 +	* Syntax: =%<nop>BASETOPIC%=
   1.996 +	* Related: [[#VarBASEWEB][BASEWEB]], [[#VarINCLUDINGTOPIC][INCLUDINGTOPIC]], [[#VarINCLUDE][INCLUDE]], [[#VarTOPIC][TOPIC]]
   1.997 +
   1.998 +#VarBASEWEB
   1.999 +---+++ BASEWEB -- base web where an INCLUDE started
  1.1000 +	* The web name where the includes started, e.g. the web of the first topic of nested includes. Same as =%<nop>WEB%= in case there is no include.
  1.1001 +	* Syntax: =%<nop>BASEWEB%=
  1.1002 +	* Related: [[#VarBASETOPIC][BASETOPIC]], [[#VarINCLUDINGWEB][INCLUDINGWEB]], [[#VarINCLUDE][INCLUDE]], [[#VarWEB][WEB]]
  1.1003 +
  1.1004 +#VarDISPLAYTIME
  1.1005 +---+++ DISPLAYTIME -- display time
  1.1006 +	* Syntax: =%<nop>DISPLAYTIME%=
  1.1007 +	* Expands to: =%DISPLAYTIME%=
  1.1008 +	* Related: [[#VarDISPLAYTIME2][DISPLAYTIME{"format"}]], [[#VarGMTIME][GMTIME]], [[#VarSERVERTIME][SERVERTIME]]
  1.1009 +
  1.1010 +#VarDISPLAYTIME2
  1.1011 +---+++ DISPLAYTIME{"format"} -- formatted display time
  1.1012 +	* Formatted time - either GMT or Local server time, depending on setting in TWiki.cfg. Same format qualifiers as =%<nop>GMTIME%=
  1.1013 +	* Syntax: =%<nop>DISPLAYTIME{"format"}%=
  1.1014 +	* Example: =%<nop>DISPLAYTIME{"$hou:$min"}%= expands to =%DISPLAYTIME{"$hou:$min"}%=
  1.1015 +	* Related: [[#VarDISPLAYTIME][DISPLAYTIME]], [[#VarGMTIME][GMTIME]], [[#VarSERVERTIME][SERVERTIME]]
  1.1016 +
  1.1017 +#VarENCODE
  1.1018 +---+++ ENCODE{"string"} -- encodes a string
  1.1019 +	* Syntax: =%<nop>ENCODE{"string"}%=
  1.1020 +	* Supported parameters:
  1.1021 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1022 +	 | ="string"= | String to encode | required (can be empty) |
  1.1023 +	 | =type="entity"= | Encode special characters into HTML entities, like a double quote into =&amp;#034;= | URL encoding |
  1.1024 +	 | =type="url"= | Encode special characters for URL parameter use, like a double quote into =%22= | (this is the default) |
  1.1025 +	* Example: =%<nop>ENCODE{"spaced name"}%= expands to =%ENCODE{"spaced name"}%=
  1.1026 +	* Related: [[#VarURLPARAM][URLPARAM]]
  1.1027 +
  1.1028 +#VarGMTIME
  1.1029 +---+++ GMTIME -- GM time
  1.1030 +	* Syntax: =%<nop>GMTIME%=
  1.1031 +	* Expands to: =%GMTIME%=
  1.1032 +	* Related: [[#VarDISPLAYTIME][DISPLAYTIME]], [[#VarGMTIME2][GMTIME{"format"}]], [[#VarSERVERTIME][SERVERTIME]]
  1.1033 +
  1.1034 +#VarGMTIME2
  1.1035 +---+++ GMTIME{"format"} -- formatted GM time
  1.1036 +	* Syntax: =%<nop>GMTIME{"format"}%=
  1.1037 +	* Supported variables:
  1.1038 +	  | *Variable:* | *Unit:* | *Example* |
  1.1039 +	  | =$seconds= | seconds | 59 |
  1.1040 +	  | =$minutes= | minutes | 59 |
  1.1041 +	  | =$hours= | hours | 23 |
  1.1042 +	  | =$day= | day of month | 31 |
  1.1043 +	  | =$wday= | day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) | Thu |
  1.1044 +	  | =$month= | month in ISO format | Dec |
  1.1045 +	  | =$mo= | 2 digit month | 12 |
  1.1046 +	  | =$year= | 4 digit year | 1999 |
  1.1047 +	  | =$ye= | 2 digit year | 99 |
  1.1048 +	  | =$tz= | either "GMT" (if set to gmtime), or "Local" (if set to servertime) | GMT |
  1.1049 +	  | =$iso= | ISO format timestamp | %GMTIME{"$iso"}% |
  1.1050 +	  | =$rcs= | RCS format timestamp | %GMTIME{"$rcs"}% |
  1.1051 +	  | =$http= | E-mail & http format timestamp | %GMTIME{"$http"}% |
  1.1052 +	* Variables can be shortened to 3 characters
  1.1053 +	* Example: =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= expands to =%GMTIME{"$day $month, $year - $hour:$min:$sec"}%=
  1.1054 +	* Related: [[#VarDISPLAYTIME][DISPLAYTIME]], [[#VarGMTIME][GMTIME]], [[#VarSERVERTIME][SERVERTIME]]
  1.1055 +
  1.1056 +#VarHOMETOPIC
  1.1057 +---+++ HOMETOPIC -- home topic in each web
  1.1058 +	* Syntax: =%<nop>HOMETOPIC%=
  1.1059 +	* Expands to: =%HOMETOPIC%=, renders as [[%HOMETOPIC%]]
  1.1060 +	* Related: [[#VarNOTIFYTOPIC][NOTIFYTOPIC]], [[#VarSTATISTICSTOPIC][STATISTICSTOPIC]], [[#VarTOPIC][TOPIC]]
  1.1061 +
  1.1062 +#VarHTTPHOST
  1.1063 +---+++ HTTP_HOST -- environment variable
  1.1064 +	* Syntax: =%<nop>HTTP_HOST%=
  1.1065 +	* Expands to: =%HTTP_HOST%=
  1.1066 +	* Related: [[#VarREMOTEADDR][REMOTE_ADDR]], [[#VarREMOTEPORT][REMOTE_PORT]], [[#VarREMOTEUSER][REMOTE_USER]]
  1.1067 +
  1.1068 +#VarICON
  1.1069 +---+++ ICON{"type"} -- small icon of common attachment types
  1.1070 +	* Small 16x16 pixel icon of common attachment types. Specify file type only, file name, or full path name
  1.1071 +	* Syntax: =%<nop>ICON{"type"}%=
  1.1072 +	* Samples: %ICON{"bmp"}% =bmp=, %ICON{"doc"}% =doc=, %ICON{"gif"}% =gif=, %ICON{"hlp"}% =hlp=, %ICON{"html"}% =html=, %ICON{"mp3"}% =mp3=, %ICON{"pdf"}% =pdf=, %ICON{"ppt"}% =ppt=, %ICON{"txt"}% =txt=, %ICON{"xls"}% =xls=, %ICON{"xml"}% =xml=, %ICON{"zip"}% =zip=
  1.1073 +	* Example: =%<nop>ICON{"pdf"}%= expands to %ICON{"pdf"}%
  1.1074 +	* Related: %WIKIPREFSTOPIC%, FileAttachments, TWikiDocGraphics
  1.1075 +
  1.1076 +#VarINCLUDE
  1.1077 +---+++ INCLUDE{"page"} -- include other topics or web pages
  1.1078 +	* Syntax: =%<nop>INCLUDE{"page" ...}%=
  1.1079 +	* Supported parameters:
  1.1080 +	| *Parameter:* | *Description:* | *Default:* |
  1.1081 +	| ="SomeTopic"= | The name of a topic located in the current web, i.e. =%<nop>INCLUDE{"WebNotify"}%= | |
  1.1082 +	| ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.SiteMap"}%= | |
  1.1083 +	| ="http://..."= | A full qualified URL, i.e. =%<nop>INCLUDE{"http://twiki.org/"}%= | |
  1.1084 +	| =pattern="..."= | A RegularExpression pattern to include a subset of a topic or page | none |
  1.1085 +	| =rev="1.2"= | Include a previous topic revision; N/A for URLs | top revision |
  1.1086 +	| =warn="off"= | Warn if topic include fails: Fail silently (if =off=); output default warning (if set to =on=); else, output specific text (use =$topic= for topic name) | =%INCLUDE- WARNING%= [[TWikiPreferences][preferences]] setting |
  1.1087 +	* Related: [[#VarBASETOPIC][BASETOPIC]], [[#VarBASEWEB][BASEWEB]], [[#VarINCLUDINGTOPIC][INCLUDINGTOPIC]], [[#VarINCLUDINGWEB][INCLUDINGWEB]], IncludeTopicsAndWebPages
  1.1088 +
  1.1089 +#VarINCLUDINGTOPIC
  1.1090 +---+++ INCLUDINGTOPIC -- name of topic that includes current topic
  1.1091 +	* The name of the topic that includes the current topic - same as =%<nop>TOPIC%= in case there is no include
  1.1092 +	* Syntax: =%<nop>INCLUDINGTOPIC%=
  1.1093 +	* Related: [[#VarBASETOPIC][BASETOPIC]], [[#VarINCLUDINGWEB][INCLUDINGWEB]], [[#VarINCLUDE][INCLUDE]], [[#VarTOPIC][TOPIC]]
  1.1094 +
  1.1095 +
  1.1096 +#VarINCLUDINGWEB
  1.1097 +---+++ INCLUDINGWEB -- web that includes current topic
  1.1098 +	* The web name of the topic that includes the current topic - same as =%<nop>WEB%= if there is no INCLUDE.
  1.1099 +	* Syntax: =%<nop>INCLUDINGWEB%=
  1.1100 +	* Related: [[#VarBASEWEB][BASEWEB]], [[#VarINCLUDINGTOPIC][INCLUDINGTOPIC]], [[#VarINCLUDE][INCLUDE]], [[#VarWEB][WEB]]
  1.1101 +
  1.1102 +#VarMAINWEB
  1.1103 +---+++ MAINWEB -- name of Main web
  1.1104 +	* The web containing %MAINWEB%.%WIKIUSERSTOPIC%, %MAINWEB%.OfficeLocations and %MAINWEB%.TWikiGroups
  1.1105 +	* Syntax: =%<nop>MAINWEB%=
  1.1106 +	* Expands to: =%MAINWEB%=
  1.1107 +	* Related: [[#VarTWIKIWEB][TWIKIWEB]]
  1.1108 +
  1.1109 +#VarMETASEARCH
  1.1110 +---+++ METASEARCH -- special search of meta data
  1.1111 +	* Syntax: =%<nop>METASEARCH{...}%=
  1.1112 +	* Supported parameters:
  1.1113 +	  | *Parameter:* | *Description:* | *Default:* |
  1.1114 +	  | =type="topicmoved"= | What sort of search is required? <br /> ="topicmoved"= if search for a topic that may have been moved <br /> ="parent"= if searching for topics that have a specific parent i.e. its children | required |
  1.1115 +	  | =web="%<nop>WEB%"= | Wiki web to search: A web, a list of webs separated by whitespace, or =all= webs. | required |
  1.1116 +	  | =topic="%<nop>TOPIC%"= | The topic the search relates to | required |
  1.1117 +	  | =title="Title"= | Text that is prepended to any search results | required |
  1.1118 +	* Example: =%<nop>METASEARCH{type="topicmoved" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="This topic used to exist and was moved to: "}%=
  1.1119 +	* Example: You may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate:<br /> =%<nop>METASEARCH{type="parent" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="Children: "}%=
  1.1120 +	* Related: [[#VarSEARCH][SEARCH]]
  1.1121 +
  1.1122 +#VarNOTIFYTOPIC
  1.1123 +---+++ NOTIFYTOPIC -- name of the notify topic
  1.1124 +	* Syntax: =%<nop>NOTIFYTOPIC%=
  1.1125 +	* Expands to: =%NOTIFYTOPIC%=, renders as [[%NOTIFYTOPIC%]]
  1.1126 +	* Related: [[#VarHOMETOPIC][HOMETOPIC]], [[#VarSTATISTICSTOPIC][STATISTICSTOPIC]], [[#VarTOPIC][TOPIC]]
  1.1127 +
  1.1128 +#VarPUBURL
  1.1129 +---+++ PUBURL -- the base URL of attachments
  1.1130 +	* Syntax: =%<nop>PUBURL%=
  1.1131 +	* Expands to: =%PUBURL%=
  1.1132 +	* Example: You can refer to a file attached to another topic with =%<nop>PUBURL%/%<nop>WEB%/OtherTopic/image.gif=
  1.1133 +	* Related: [[#VarATTACHURL][ATTACHURL]], [[#VarPUBURLPATH][PUBURLPATH]], [[#VarSCRIPTURL][SCRIPTURL]], FileAttachments
  1.1134 +
  1.1135 +#VarPUBURLPATH
  1.1136 +---+++ PUBURLPATH -- the base URL path of attachments
  1.1137 +	* Syntax: =%<nop>PUBURLPATH%=
  1.1138 +	* Expands to: =%PUBURLPATH%=
  1.1139 +	* Related: [[#VarATTACHURL][ATTACHURL]], [[#VarPUBURL][PUBURL]], FileAttachments
  1.1140 +
  1.1141 +#VarREMOTEADDR
  1.1142 +---+++ REMOTE_ADDR -- environment variable
  1.1143 +	* Syntax: =%<nop>REMOTE_ADDR%=
  1.1144 +	* Expands to: =%REMOTE_ADDR%=
  1.1145 +	* Related: [[#VarHTTPHOST][HTTP_HOST]], [[#VarREMOTEPORT][REMOTE_PORT]], [[#VarREMOTEUSER][REMOTE_USER]]
  1.1146 +
  1.1147 +#VarREMOTEPORT
  1.1148 +---+++ REMOTE_PORT -- environment variable
  1.1149 +	* Syntax: =%<nop>REMOTE_PORT%=
  1.1150 +	* Expands to: <code>%REMOTE_PORT%</code>
  1.1151 +	* Related: [[#VarHTTPHOST][HTTP_HOST]], [[#VarREMOTEADDR][REMOTE_ADDR]], [[#VarREMOTEUSER][REMOTE_USER]]
  1.1152 +
  1.1153 +#VarREMOTEUSER
  1.1154 +---+++ REMOTE_USER -- environment variable
  1.1155 +	* Syntax: =%<nop>REMOTE_USER%=
  1.1156 +	* Expands to: <code>%REMOTE_USER%</code>
  1.1157 +	* Related: [[#VarHTTPHOST][HTTP_HOST]], [[#VarREMOTEADDR][REMOTE_ADDR]], [[#VarREMOTEPORT][REMOTE_PORT]], [[#VarUSERNAME][USERNAME]], [[#VarWIKINAME][WIKINAME]], [[#VarWIKIUSERNAME][WIKIUSERNAME]]
  1.1158 +
  1.1159 +#VarSCRIPTURL
  1.1160 +---+++ SCRIPTURL -- script URL of %WIKITOOLNAME%
  1.1161 +	* Syntax: =%<nop>SCRIPTURL%=
  1.1162 +	* Expands to: =%SCRIPTURL%=
  1.1163 +	* Example: To get the authenticated version of current topic write =%<nop>SCRIPTURL%/viewauth%<nop>SCRIPTSUFFIX%/%<nop>WEB%/%<nop>TOPIC%= which expands to =%SCRIPTURL%/viewauth%SCRIPTSUFFIX%/%WEB%/%TOPIC%=
  1.1164 +	* Related: [[#VarPUBURL][PUBURL]], [[#VarSCRIPTSUFFIX][SCRIPTSUFFIX]], [[#VarSCRIPTURLPATH][SCRIPTURLPATH]]
  1.1165 +
  1.1166 +#VarSCRIPTURLPATH
  1.1167 +---+++ SCRIPTURLPATH -- script URL path of %WIKITOOLNAME%
  1.1168 +	* Syntax: =%<nop>SCRIPTURLPATH%=
  1.1169 +	* Expands to: =%SCRIPTURLPATH%=
  1.1170 +	* Related: [[#VarPUBURLPATH][PUBURLPATH]], [[#VarSCRIPTURL][SCRIPTURL]]
  1.1171 +
  1.1172 +#VarSCRIPTSUFFIX
  1.1173 +---+++ SCRIPTSUFFIX -- script suffix
  1.1174 +	* Some %WIKITOOLNAME% installations require a file extension for CGI scripts like =.pl= or =.cgi=
  1.1175 +	* Syntax: =%<nop>SCRIPTSUFFIX%=
  1.1176 +	* Expands to: <code>%SCRIPTSUFFIX%</code>
  1.1177 +	* Related: [[#VarSCRIPTURL][SCRIPTURL]]
  1.1178 +
  1.1179 +#VarSEARCH
  1.1180 +---+++ SEARCH{"text"} -- search content
  1.1181 +	* Inline search, shows a search result embedded in a topic
  1.1182 +	* Syntax: =%<nop>SEARCH{"text" ...}%=
  1.1183 +	* Supported parameters: [1]
  1.1184 +	  | *Parameter:* | *Description:* | *Default:* |
  1.1185 +	  | ="text"= | Search term. Is a keyword search, literal search or regular expression search, depending on the =type= parameter. SearchHelp has more | required |
  1.1186 +	  | =search="text"= | (Alternative to above) | N/A |
  1.1187 +	  | =web="Name"= <br /> =web="%MAINWEB%, Know"= <br /> =web="all"= | Wiki web to search: A web, a list of webs separated by comma, or =all= webs. [2] | Current web |
  1.1188 +	  | =topic="%WEBPREFSTOPIC%"= <br /> =topic="*Bug"= | Limit search to topics: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | All topics in a web |
  1.1189 +	  | =excludetopic="Web*"= <br /> =excludetopic="%HOMETOPIC%, <nop>WebChanges"= | Exclude topics from search: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | None |
  1.1190 +	  | =type="keyword"= <br /> =type="literal"= <br /> =type="regex"= | Do a keyword search like =soap "web service" -shampoo=; a literal search like =web service=; or RegularExpression search like =soap;web service;!shampoo= | =%<nop>SEARCHVAR- DEFAULTTYPE%= [[TWikiPreferences][preferences]] setting (%SEARCHVARDEFAULTTYPE%) |
  1.1191 +	  | =scope="topic"= <br /> =scope="text"= <br /> =scope="all"= | Search topic name (title); the text (body) of topic; or all (both) | ="text"= |
  1.1192 +	  | =order="topic"= <br /> =order="created"= <br />  =order="modified"= <br /> =order="editby"= <br /> =order=<br />&nbsp;"formfield(name)"= | Sort the results of search by the topic names, topic creation time, last modified time, last editor, or named field of TWikiForms. The sorting is done web by web; in case you want to sort across webs, create a [[FormattedSearch][formatted]] table and sort it with TablePlugin's initsort | Sort by topic name |
  1.1193 +	  | =limit="all"= <br /> =limit="16"= | Limit the number of results returned. This is done after sorting in case =order= is specified | All results |
  1.1194 +	  | =reverse="on"= | Reverse the direction of the search | Ascending search |
  1.1195 +	  | =casesensitive="on"= | Case sensitive search | Ignore case |
  1.1196 +	  | =nosummary="on"= | Show topic title only | Show topic summary |
  1.1197 +	  | =bookview="on"= | BookView search, e.g. show complete topic text | Show topic summary |
  1.1198 +	  | =nosearch="on"= | Suppress search string | Show search string |
  1.1199 +	  | =noheader="on"= | Suppress search header <br /> <span style='background: #FFB0B0;'> *Topics: Changed: By:* </span> | Show search header |
  1.1200 +	  | =nototal="on"= | Do not show number of topics found | Show number |
  1.1201 +	  | =header="..."= <br /> =format="..."= | Custom format results: see *[[FormattedSearch]]* for usage, variables &amp; examples | Results in table |
  1.1202 +	  | =expandvariables="on"= | Expand variables before applying a FormattedSearch on a search hit. Useful to show the expanded text, e.g. to show the result of a SpreadSheetPlugin =%<nop>CALC{}%= instead of the formula | Raw text |
  1.1203 +	  | =multiple="on"= | Multiple hits per topic. Each hit can be [[FormattedSearch][formatted]]. The last token is used in case of a regular expression ";" _and_ search | Only one hit per topic |
  1.1204 +	  | =separator=", "= | Line separator between hits | Newline ="$n"= |
  1.1205 +	* Example: =%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%=
  1.1206 +	* Example with format: =%<nop>SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="<nop>| $topic | $summary |"%= _(displays results in a table with header - [[FormattedSearch][details]])_
  1.1207 +	* %H% If the TWiki:Plugins.TablePlugin is installed, you may set a =%<nop>TABLE{}%= variable just before the =%<nop>SEARCH{}%= to alter the output of a search.  Example: =%<nop>TABLE{ tablewidth="90%" }%=
  1.1208 +	* Related: [[#VarMETASEARCH][METASEARCH]], [[#VarTOPICLIST][TOPICLIST]], [[#VarWEBLIST][WEBLIST]], FormattedSearch
  1.1209 +
  1.1210 +	* [1] __Note__: The search form uses identical names for input fields.
  1.1211 +	* [2] __Note__: A web can be excluded from a =web="all"= search if you define a =NOSEARCHALL=on= variable in its %WEBPREFSTOPIC%
  1.1212 +
  1.1213 +#VarSERVERTIME
  1.1214 +---+++ SERVERTIME -- server time
  1.1215 +	* Syntax: =%<nop>SERVERTIME%=
  1.1216 +	* Expands to: =%SERVERTIME%=
  1.1217 +	* Related: [[#VarDISPLAYTIME][DISPLAYTIME]], [[#VarGMTIME][GMTIME]], [[#VarSERVERTIME2][SERVERTIME{"format"}]]
  1.1218 +
  1.1219 +#VarSERVERTIME2
  1.1220 +---+++ SERVERTIME{"format"} -- formatted server time
  1.1221 +	* Same format qualifiers as =%<nop>GMTIME%=
  1.1222 +	* Syntax: =%<nop>SERVERTIME{"format"}%=
  1.1223 +	* Example: =%<nop>SERVERTIME{"$hou:$min"}%= expands to =%SERVERTIME{"$hou:$min"}%=
  1.1224 +	* Related: [[#VarDISPLAYTIME][DISPLAYTIME]], [[#VarGMTIME][GMTIME]], [[#VarSERVERTIME][SERVERTIME]]
  1.1225 +
  1.1226 +#VarSPACEDTOPIC
  1.1227 +---+++ SPACEDTOPIC -- topic name, spaced and encoded
  1.1228 +	* The current topic name with added spaces, for regular expression search of Ref-By
  1.1229 +	* Syntax: =%<nop>SPACEDTOPIC%=
  1.1230 +	* Expands to: =%SPACEDTOPIC%=
  1.1231 +	* Related: [[#VarTOPIC][TOPIC]]
  1.1232 +
  1.1233 +#VarSTARTINCLUDE
  1.1234 +---+++ STARTINCLUDE -- start position of topic text if included
  1.1235 +	* If present in included topic, start to include text from this location up to the end, or up to the location of the =%<nop>STOPINCLUDE%= variable. A normal view of the topic shows everyting exept the =%<nop>STARTINCLUDE%= variable itself.
  1.1236 +	* Syntax: =%<nop>STARTINCLUDE%=
  1.1237 +	* Related: [[#VarINCLUDE][INCLUDE]], [[#VarSTOPINCLUDE][STOPINCLUDE]]
  1.1238 +
  1.1239 +#VarSTATISTICSTOPIC
  1.1240 +---+++ STATISTICSTOPIC -- name of statistics topic
  1.1241 +	* Syntax: =%<nop>STATISTICSTOPIC%=
  1.1242 +	* Expands to: =%STATISTICSTOPIC%=, renders as [[%STATISTICSTOPIC%]]
  1.1243 +	* Related: [[#VarHOMETOPIC][HOMETOPIC]], [[#VarNOTIFYTOPIC][NOTIFYTOPIC]], [[#VarTOPIC][TOPIC]]
  1.1244 +
  1.1245 +#VarSTOPINCLUDE
  1.1246 +---+++ STOPINCLUDE -- end position of topic text if included
  1.1247 +	* 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 =%<nop>STOPINCLUDE%= variable itself.
  1.1248 +	* Syntax: =%<nop>STOPINCLUDE%=
  1.1249 +	* Related: [[#VarINCLUDE][INCLUDE]], [[#VarSTARTINCLUDE][STARTINCLUDE]]
  1.1250 +
  1.1251 +#VarTOC
  1.1252 +---+++ TOC -- table of contents of current topic
  1.1253 +	* Syntax: =%<nop>TOC%=
  1.1254 +	* Related: [[#VarTOC2][TOC{"SomeTopic"}]]
  1.1255 +
  1.1256 +#VarTOC2
  1.1257 +---+++ TOC{"Topic"} -- table of contents
  1.1258 +	* Syntax: =%<nop>TOC{"SomeTopic" ...}%=
  1.1259 +	* Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;/h2&gt;"=) are taken into account. Any heading text after ="!!"= is excluded from the TOC; for example, write ="---+!! text"= if you do not want to list a header in the TOC
  1.1260 +	* Supported parameters:
  1.1261 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1262 +	 | ="TopicName"= | topic name | Current topic |
  1.1263 +	 | =web="Name"= | Name of web | Current web |
  1.1264 +	 | =depth="2"= | Limit depth of headings shown in TOC | 6 |
  1.1265 +	 | =title="Some text"= | Title to appear at top of TOC | none |
  1.1266 +	* Example: =%<nop>TOC{depth="2"}%=
  1.1267 +	* Example: =%<nop>TOC{"TWikiDocumentation" web="%TWIKIWEB%" title="Contents:"}%=
  1.1268 +	* Related: [[#VarTOC][TOC]]
  1.1269 +
  1.1270 +#VarTOPIC
  1.1271 +---+++ TOPIC -- name of current topic
  1.1272 +	* Syntax: =%<nop>TOPIC%=
  1.1273 +	* Expands to: =%TOPIC%=, renders as [[%TOPIC%]]
  1.1274 +	* Related: [[#VarBASETOPIC][BASETOPIC]], [[#VarINCLUDINGTOPIC][INCLUDINGTOPIC]], [[#VarTOPICLIST][TOPICLIST]], [[#VarWEB][WEB]]
  1.1275 +
  1.1276 +#VarTOPICLIST
  1.1277 +---+++ TOPICLIST{"format"} -- topic index of a web
  1.1278 +	* The "format" defines the format of one topic item. It may include variables: The =$name= variable gets expanded to the topic name; the =$web= variable gets expanded to the name of the web.
  1.1279 +	* Syntax: =%<nop>TOPICLIST{"format" ...}%=
  1.1280 +	* Supported parameters:
  1.1281 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1282 +	 | ="format"= | Format of one line, may include =$name= and =$web= variables | ="$name"= |
  1.1283 +	 | =format="format"= | (Alternative to above) | ="$name"= |
  1.1284 +	 | =separator=", "= | line separator | ="\n"= (new line) |
  1.1285 +	 | =web="Name"= | Name of web | Current web |
  1.1286 +	* Example: =%<nop>TOPICLIST{"	* $web.$name"}%= creates a bullet list of all topics
  1.1287 +	* Example: =%<nop>TOPICLIST{separator=", "}%= creates a comma separated list of all topics
  1.1288 +	* Example: =%<nop>TOPICLIST{" &lt;option&gt;$name&lt;/option&gt;"}%= creates an option list (for drop down menus)
  1.1289 +	* Related: [[#VarSEARCH][SEARCH]], [[#VarWEBLIST][WEBLIST]]
  1.1290 +
  1.1291 +#VarTWIKIWEB
  1.1292 +---+++ TWIKIWEB -- name of TWiki documentation web
  1.1293 +	* The web containing all documentation and site-wide preference settings for %WIKITOOLNAME%
  1.1294 +	* Syntax: =%<nop>TWIKIWEB%=
  1.1295 +	* Expands to: =%TWIKIWEB%=
  1.1296 +	* Related: [[#VarMAINWEB][MAINWEB]]
  1.1297 +
  1.1298 +#VarURLPARAM
  1.1299 +---+++ URLPARAM{"name"} -- get value of a URL parameter
  1.1300 +	* Returns the value of a URL parameter. Note that there is a risk that this variable could be misused for cross-scripting
  1.1301 +	* Syntax: =%<nop>URLPARAM{"name"}%=
  1.1302 +	* Supported parameters:
  1.1303 +	  | *Parameter:* | *Description:* | *Default:* |
  1.1304 +	  | ="name"= | The name of a URL parameter | required |
  1.1305 +	  | =default="..."= | Default value in case parameter is empty or missing | empty string |
  1.1306 +	  | =newline="&lt;br /&gt;"= | Convert newlines in textarea to other delimiters | no conversion |
  1.1307 +	  | =encode="entity"= | Encode special characters into HTML entities, like a double quote into =&amp;#034;=. This is needed if text is put into an HTML form field | no encoding |
  1.1308 +	  | =encode="url"= | Encode special characters for URL parameter use, like a double quote into =%22= | no encoding |
  1.1309 +	  | =multiple="on"= %BR% =multiple="[<nop>[$item]]"= | If set, gets all selected elements of a =&lt;select multiple="multiple"&gt;= tag. A format can be specified, with =$item= indicating the element, e.g. =multiple="Option: $item"= | first element |
  1.1310 +	  | =separator=", "= | Separator between multiple selections. Only relevant if multiple is specified | ="\n"= (new line) |
  1.1311 +	* Example: =%<nop>URLPARAM{"skin"}%= returns =print= for a =.../view/%WEB%/%TOPIC%?skin=print= URL. [[%SCRIPTURL%/viewauth%SCRIPTSUFFIX%/%WEB%/%TOPIC%?skin=print#VarURLPARAM][Test this]]: %URLPARAM{"skin"}%
  1.1312 +	* Related: [[#VarSEARCH][SEARCH]], FormattedSearch
  1.1313 +
  1.1314 +#VarUSERNAME
  1.1315 +---+++ USERNAME -- your login username
  1.1316 +	* TWiki makes names available in three formats: USERNAME like =jsmith=, WIKINAME like =JohnSmith= and WIKIUSERNAME like =%MAINWEB%.JohnSmith=. A user is a %MAINWEB%.TWikiGuest in case the topic is not authenticated
  1.1317 +	* Syntax: =%<nop>USERNAME%=
  1.1318 +	* Expands to: =%USERNAME%=
  1.1319 +	* Related: [[#VarREMOTEUSER][REMOTE_USER]], [[#VarWIKINAME][WIKINAME]], [[#VarWIKIUSERNAME][WIKIUSERNAME]], TWikiUserAuthentication
  1.1320 +
  1.1321 +#VarVAR
  1.1322 +---+++ VAR{"NAME" web="Web"} -- get a preference value from another web 
  1.1323 +	* Syntax: =%<nop>VAR{"NAME" web="Web"}%=
  1.1324 +	* Example: To get =%<nop>WEBBGCOLOR%= of the %MAINWEB% web write =%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%=, which expands to =%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%=
  1.1325 +	* Related: [[#VarWEBPREFSTOPIC][WEBPREFSTOPIC]]
  1.1326 +
  1.1327 +#VarWEB
  1.1328 +---+++ WEB -- name of current web
  1.1329 +	* Syntax: =%<nop>WEB%=
  1.1330 +	* Expands to: =%WEB%=
  1.1331 +	* Related: [[#VarBASEWEB][BASEWEB]], [[#VarINCLUDINGWEB][INCLUDINGWEB]], [[#VarTOPIC][TOPIC]]
  1.1332 +
  1.1333 +#VarWEBLIST
  1.1334 +---+++ WEBLIST{"format"} -- index of all webs
  1.1335 +	* List of all webs. Hidden webs are excluded, e.g. webs with a =NOSEARCHALL=on= preference variable. The ="format"= defines the format of one web item. The =$name= variable gets expanded to the name of the web, =$qname= gets expanded to double quoted name, =$marker= to =marker= where web matches =selection=.
  1.1336 +	* Syntax: =%<nop>WEBLIST{"format" ...}%=
  1.1337 +	* Supported parameters:
  1.1338 +	  | *Parameter:* | *Description:* | *Default:* |
  1.1339 +	  | ="format"= | Format of one line, may include =$name= variable | ="$name"= |
  1.1340 +	  | =format="format"= | (Alternative to above) | ="$name"= |
  1.1341 +	  | =separator=", "= | line separator | ="\n"= (new line) |
  1.1342 +	  | =webs="public"=	| comma sep list of Web, public expands to all non-hidden | ="public"= |
  1.1343 +	  | =marker="selected"= | Text for =$marker= where item matches =selection=, otherwise equals =""= | ="selected"= |
  1.1344 +	  | =selection="%<nop>WEB%"= | Current value to be selected in list | =section="%<nop>WEB%"= |
  1.1345 +	* Example: =%<nop>WEBLIST{"	* [<nop>[$name.%HOMETOPIC%]]"}%= creates a bullet list of all webs.
  1.1346 +	* Example: =%<nop>WEBLIST{"&lt;option $marker value=$qname&gt;$name&lt;/option&gt;" webs="Trash,public" selection="%WEB%" separator=" "}%= Dropdown of all public Webs + Trash Web, current Web highlighted.
  1.1347 +	* Related: [[#VarTOPICLIST][TOPICLIST]], [[#VarSEARCH][SEARCH]]
  1.1348 +
  1.1349 +#VarWEBPREFSTOPIC
  1.1350 +---+++ WEBPREFSTOPIC -- name of web preferences topic
  1.1351 +	* Syntax: =%<nop>WEBPREFSTOPIC%=
  1.1352 +	* Expands to: =%WEBPREFSTOPIC%=, renders as [[%WEBPREFSTOPIC%]]
  1.1353 +	* Related: [[#VarHOMETOPIC][HOMETOPIC]], [[#VarWIKIPREFSTOPIC][WIKIPREFSTOPIC]], [[#VarVAR][VAR]]
  1.1354 +
  1.1355 +#VarWIKIHOMEURL
  1.1356 +---+++ WIKIHOMEURL -- site home URL
  1.1357 +	* The base URL of %WIKITOOLNAME%, is the link of the Home icon in the upper left corner, defined in TWiki.cfg
  1.1358 +	* Syntax: =%<nop>WIKIHOMEURL%=
  1.1359 +	* Expands to: =%WIKIHOMEURL%=
  1.1360 +	* Related: [[#VarWIKITOOLNAME][WIKITOOLNAME]]
  1.1361 +
  1.1362 +#VarWIKINAME
  1.1363 +---+++ WIKINAME -- your Wiki username
  1.1364 +	* The WikiName is the same as %<nop>USERNAME% if not defined in the %MAINWEB%.%WIKIUSERSTOPIC% topic
  1.1365 +	* Syntax: =%<nop>WIKINAME%=
  1.1366 +	* Expands to: =%WIKINAME%=
  1.1367 +	* Related: [[#VarREMOTEUSER][REMOTE_USER]], [[#VarUSERNAME][USERNAME]], [[#VarWIKIUSERNAME][WIKIUSERNAME]], [[#VarWIKIUSERSTOPIC][WIKIUSERSTOPIC]]
  1.1368 +
  1.1369 +#VarWIKIPREFSTOPIC
  1.1370 +---+++ WIKIPREFSTOPIC -- name of site-wide preferences topic
  1.1371 +	* Syntax: =%<nop>WIKIPREFSTOPIC%=
  1.1372 +	* Expands to: =%WIKIPREFSTOPIC%=, renders as [[%WIKIPREFSTOPIC%]]
  1.1373 +	* Related: [[#VarHOMETOPIC][HOMETOPIC]], [[#VarWEBPREFSTOPIC][WEBPREFSTOPIC]]
  1.1374 +
  1.1375 +#VarWIKITOOLNAME
  1.1376 +---+++ WIKITOOLNAME -- name of your TWiki site
  1.1377 +	* Syntax: =%<nop>WIKITOOLNAME%=
  1.1378 +	* Expands to: =%WIKITOOLNAME%=
  1.1379 +	* Related: [[#VarWIKIHOMEURL][WIKIHOMEURL]], [[#VarWIKIVERSION][WIKIVERSION]]
  1.1380 +
  1.1381 +#VarWIKIUSERNAME
  1.1382 +---+++ WIKIUSERNAME -- your Wiki username with web prefix
  1.1383 +	* Your %<nop>WIKINAME% with %MAINWEB% web prefix, useful to point to your %WIKITOOLNAME% home page
  1.1384 +	* Syntax: =%<nop>WIKIUSERNAME%=
  1.1385 +	* Expands to: =%WIKIUSERNAME%=, renders as %WIKIUSERNAME%
  1.1386 +	* Related: [[#VarREMOTEUSER][REMOTE_USER]], [[#VarUSERNAME][USERNAME]], [[#VarWIKINAME][WIKINAME]]
  1.1387 +
  1.1388 +#VarWIKIUSERSTOPIC
  1.1389 +---+++ WIKIUSERSTOPIC -- name of topic listing all registers users
  1.1390 +	* Syntax: =%<nop>WIKIUSERSTOPIC%=
  1.1391 +	* Expands to: =%WIKIUSERSTOPIC%=, with %MAINWEB% prefix renders as %MAINWEB%.%WIKIUSERSTOPIC%
  1.1392 +	* Related: [[#VarWIKIUSERNAME][WIKIUSERNAME]]
  1.1393 +
  1.1394 +#VarWIKIVERSION
  1.1395 +---+++ WIKIVERSION -- the version of the installed TWiki engine
  1.1396 +	* Syntax: =%<nop>WIKIVERSION%=
  1.1397 +	* Expands to: =%WIKIVERSION%=
  1.1398 +	* Related: [[#VarWIKITOOLNAME][WIKITOOLNAME]]
  1.1399 +d32 4
  1.1400 +a35 1
  1.1401 +Additional variables are defined in the preferences ( site-level ( __SL__ ) in %TWIKIWEB%.%WIKIPREFSTOPIC%, web-level ( __WL__ ) in %WEBPREFSTOPIC% of each web, and user level ( __UL__ ) preferences in individual user topics):
  1.1402 +d39 1
  1.1403 +a39 1
  1.1404 +  <th width="160"> Variable: </th><th> Level: </th><th> What: </th>
  1.1405 +d45 1
  1.1406 +d51 1
  1.1407 +d57 1
  1.1408 +d63 1
  1.1409 +d69 1
  1.1410 +d75 1
  1.1411 +d81 1
  1.1412 +d87 1
  1.1413 +d93 1
  1.1414 +d99 1
  1.1415 +d105 1
  1.1416 +d111 1
  1.1417 +d117 1
  1.1418 +d123 1
  1.1419 +d129 1
  1.1420 +d135 1
  1.1421 +d141 1
  1.1422 +d147 1
  1.1423 +d153 1
  1.1424 +d159 1
  1.1425 +d165 1
  1.1426 +d171 1
  1.1427 +d177 1
  1.1428 +d183 1
  1.1429 +d189 1
  1.1430 +d195 1
  1.1431 +d218 1
  1.1432 +a218 1
  1.1433 +-- TWiki:Main.PeterThoeny - 09 May 2004 %BR%
  1.1434 +d220 5
  1.1435 +@
  1.1436 +
  1.1437 +
  1.1438 +1.76
  1.1439 +log
  1.1440 +@none
  1.1441 +@
  1.1442 +text
  1.1443 +@d1 1
  1.1444 +a1 1
  1.1445 +%META:TOPICINFO{author="PeterThoeny" date="1080805858" format="1.0" version="1.76"}%
  1.1446 +d21 42
  1.1447 +a62 46
  1.1448 +<table cellspacing="0" cellpadding="2" border="1" align="center" style="background-color:#f5f5f5">
  1.1449 +<tr>
  1.1450 +  <th width="160"> Variable: </th><th> Expanded to: </th>
  1.1451 +</tr><tr>
  1.1452 +  <td> =%<nop>WIKIHOMEURL%= </td>
  1.1453 +  <td> The base script URL of %WIKITOOLNAME%, is the link of the Home icon in the upper left corner, is <b>%WIKIHOMEURL%</b> </td>
  1.1454 +</tr><tr>
  1.1455 +  <td> =%<nop>SCRIPTURL%= </td>
  1.1456 +  <td> The script URL of %WIKITOOLNAME%, is <b>%SCRIPTURL%</b></td>
  1.1457 +</tr><tr>
  1.1458 +  <td> =%<nop>SCRIPTURLPATH%= </td>
  1.1459 +  <td> The path of the script URL of %WIKITOOLNAME%, is <b>%SCRIPTURLPATH%</b></td>
  1.1460 +</tr><tr>
  1.1461 +  <td> =%<nop>SCRIPTSUFFIX%= </td>
  1.1462 +  <td> The script suffix, ex: =.pl=, =.cgi= is <b>%SCRIPTSUFFIX%</b></td>
  1.1463 +</tr><tr>
  1.1464 +  <td> =%<nop>PUBURL%= </td>
  1.1465 +  <td> The public URL of TWiki, is <b>%PUBURL%</b> <br /> Example: You can refer to a file attached to another topic as =<b>%<nop>PUBURL%/%<nop>WEB%/OtherTopic/image.gif</b>=  </td>
  1.1466 +</tr><tr>
  1.1467 +  <td> =%<nop>PUBURLPATH%= </td>
  1.1468 +  <td> The path of the public URL of %WIKITOOLNAME%, is <b>%PUBURLPATH%</b> </td>
  1.1469 +</tr><tr>
  1.1470 +  <td> =%<nop>ATTACHURL%= </td>
  1.1471 +  <td> The attachment URL of the current topic, is <b>%ATTACHURL%</b> <br /> Example: If you attach a file you can refer to it as =<b>%<nop>ATTACHURL%/image.gif</b>= </td>
  1.1472 +</tr><tr>
  1.1473 +  <td> =%<nop>ATTACHURLPATH%= </td>
  1.1474 +  <td> The path of the attachment URL of the current topic, is <b>%ATTACHURLPATH%</b> </td>
  1.1475 +</tr><tr>
  1.1476 +  <td> =%<nop>ICON{"type"}%= </td>
  1.1477 +  <td> Small 16x16 pixel icon of common attachment types, like %ICON{"bmp"}% =bmp=, %ICON{"doc"}% =doc=, %ICON{"gif"}% =gif=, %ICON{"hlp"}% =hlp=, %ICON{"html"}% =html=, %ICON{"mp3"}% =mp3=, %ICON{"pdf"}% =pdf=, %ICON{"ppt"}% =ppt=, %ICON{"txt"}% =txt=, %ICON{"xls"}% =xls=, %ICON{"xml"}% =xml=, %ICON{"zip"}% =zip=, etc. Specify file type only, file name, or full path name. Example: =%<nop>ICON{"pdf"}%= returns %ICON{"pdf"}% </td>
  1.1478 +</tr><tr>
  1.1479 +  <td> =%<nop>URLPARAM{"name"}%= </td>
  1.1480 +  <td> Returns the value of a URL parameter. Note that there is a risk that this variable could be misused for cross-scripting. Supported parameters:
  1.1481 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1482 +	 | ="name"= | The name of a URL parameter | required |
  1.1483 +	 | =default="..."= | Default value in case parameter is empty or missing | empty string |
  1.1484 +	 | =newline="&lt;br /&gt;"= | Convert newlines in textarea to other delimiters | no conversion |
  1.1485 +	 | =encode="entity"= | Encode special characters into HTML entities, like a double quote into =&amp;#034;=. This is needed if text is put into an HTML form field | no encoding |
  1.1486 +	 | =encode="url"= | Encode special characters for URL parameter use, like a double quote into =%22= | no encoding |
  1.1487 +	 | =multiple="on"= %BR% =multiple="[<nop>[$item]]"= | If set, gets all selected elements of a =&lt;select multiple="multiple"&gt;= tag. A format can be specified, with =$item= indicating the element, e.g. =multiple="Option: $item"= | first element |
  1.1488 +	 | =separator=", "= | Separator between multiple selections. Only relevant if multiple is specified | ="\n"= (new line) |
  1.1489 +	 Example: =%<nop>URLPARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%URLPARAM{"skin"}%</b>
  1.1490 +</td>
  1.1491 +</tr><tr>
  1.1492 +  <td> =%<nop>ENCODE{"string"}%= </td>
  1.1493 +  <td> Encodes a string. Supported parameters:
  1.1494 +d67 55
  1.1495 +a121 137
  1.1496 +	 Example: =%<nop>ENCODE{"spaced name"}%= returns <b>%ENCODE{"spaced name"}%</b> </td>
  1.1497 +</tr><tr>
  1.1498 +  <td> =%<nop>WIKITOOLNAME%= </td>
  1.1499 +  <td> The name of your TWiki site - <b>%WIKITOOLNAME%</b> </td>
  1.1500 +</tr><tr>
  1.1501 +  <td> =%<nop>WIKIVERSION%= </td>
  1.1502 +  <td> Your current TWiki version - <b>%WIKIVERSION%</b> </td>
  1.1503 +</tr><tr>
  1.1504 +  <td> =%<nop>USERNAME%= </td>
  1.1505 +  <td> Your login username - <b>%USERNAME%</b> </td>
  1.1506 +</tr><tr>
  1.1507 +  <td> =%<nop>WIKINAME%= </td>
  1.1508 +  <td> Your Wiki username. Same as %<nop>USERNAME% if not defined in the %MAINWEB%.%WIKIUSERSTOPIC% topic. Is <b>%WIKINAME%</b> </td>
  1.1509 +</tr><tr>
  1.1510 +  <td> =%<nop>WIKIUSERNAME%= </td>
  1.1511 +  <td> Your %<nop>WIKINAME% including the %MAINWEB% web name - always use full signatures - <b>%WIKIUSERNAME%</b> </td>
  1.1512 +</tr><tr>
  1.1513 +  <td> =%<nop>MAINWEB%= </td>
  1.1514 +  <td> The web containing %MAINWEB%.%WIKIUSERSTOPIC%, %MAINWEB%.OfficeLocations and %MAINWEB%.TWikiGroups is <b>%MAINWEB%</b> </td>
  1.1515 +</tr><tr>
  1.1516 +  <td> =%<nop>TWIKIWEB%= </td>
  1.1517 +  <td> The web containing all documentation and site-wide preference settings for %WIKITOOLNAME% - <b>%TWIKIWEB%</b> </td>
  1.1518 +</tr><tr>
  1.1519 +  <td> =%<nop>WEB%= </td>
  1.1520 +  <td> The current web is <b>%WEB%</b> </td>
  1.1521 +</tr><tr>
  1.1522 +  <td> =%<nop>BASEWEB%= </td>
  1.1523 +  <td> The web name where the includes started, e.g. the web of the first topic of nested includes. Same as =%<nop>WEB%= in case there is no include. </td>
  1.1524 +</tr><tr>
  1.1525 +  <td> =%<nop>INCLUDINGWEB%= </td>
  1.1526 +  <td> The web name of the topic that includes the current topic -  same as =%<nop>WEB%= if there is no INCLUDE. </td>
  1.1527 +</tr><tr>
  1.1528 +  <td> =%<nop>HOMETOPIC%= </td>
  1.1529 +  <td> The home topic in each web - <b>[[%HOMETOPIC%]]</b> </td>
  1.1530 +</tr><tr>
  1.1531 +  <td> =%<nop>NOTIFYTOPIC%= </td>
  1.1532 +  <td> The notify topic in each web - <b>[[%NOTIFYTOPIC%]]</b> </td>
  1.1533 +</tr><tr>
  1.1534 +  <td> =%<nop>WIKIUSERSTOPIC%= </td>
  1.1535 +  <td> The index topic of all registered users - <b>%WIKIUSERSTOPIC%</b></td>
  1.1536 +</tr><tr>
  1.1537 +  <td> =%<nop>WIKIPREFSTOPIC%= </td>
  1.1538 +  <td> The site-wide preferences topic - <b>%WIKIPREFSTOPIC%</b> </td>
  1.1539 +</tr><tr>
  1.1540 +  <td> =%<nop>WEBPREFSTOPIC%= </td>
  1.1541 +  <td> The local web preferences topic in each web - <b>%WEBPREFSTOPIC%</b> </td>
  1.1542 +</tr><tr>
  1.1543 +  <td> =%<nop>STATISTICSTOPIC%= </td>
  1.1544 +  <td> The web statistics topic <b>%STATISTICSTOPIC%</b> </td>
  1.1545 +</tr><tr>
  1.1546 +  <td> =%<nop>TOPIC%= </td>
  1.1547 +  <td> The current topic name - <b>%TOPIC%</b> </td>
  1.1548 +</tr><tr>
  1.1549 +  <td> =%<nop>BASETOPIC%= </td>
  1.1550 +  <td> The name of the topic where a single or nested INCLUDE started - same as =%<nop>TOPIC%= if there is no INCLUDE. </td>
  1.1551 +</tr><tr>
  1.1552 +  <td> =%<nop>INCLUDINGTOPIC%= </td>
  1.1553 +  <td> The name of the topic that includes the current topic. Same as =%<nop>TOPIC%= in case there is no include. </td>
  1.1554 +</tr><tr>
  1.1555 +  <td> =%<nop>SPACEDTOPIC%= </td>
  1.1556 +  <td> The current topic name with added spaces, for regular expression search of Ref-By, is <b>%SPACEDTOPIC%</b> </td>
  1.1557 +</tr><tr>
  1.1558 +  <td> =%<nop>TOPICLIST{"format"}%= </td>
  1.1559 +  <td> Topic index of a web. The "format" defines the format of one topic item. It may include variables: The =$name= variable gets expanded to the topic name; the =$web= variable gets expanded to the name of the web.
  1.1560 +	 Parameters are format, separator and web:
  1.1561 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1562 +	 | ="format"= | Format of one line, may include =$name= and =$web= variables | ="$name"= |
  1.1563 +	 | =format="format"= | (Alternative to above) | ="$name"= |
  1.1564 +	 | =separator=", "= | line separator | ="\n"= (new line) |
  1.1565 +	 | =web="Name"= | Name of web | Current web |
  1.1566 +	 Examples:
  1.1567 +	 <br /> =%<nop>TOPICLIST{"	* $web.$name"}%= creates a bullet list of all topics.
  1.1568 +	 <br /> =%<nop>TOPICLIST{separator=", "}%= creates a comma separated list of all topics.
  1.1569 +	 <br /> =%<nop>TOPICLIST{" &lt;option&gt;$name&lt;/option&gt;"}%= creates an option list (for drop down menus). </td>
  1.1570 +</tr><tr>
  1.1571 +  <td> =%<nop>WEBLIST{"format"}%= </td>
  1.1572 +  <td> Web index, ex: list of all webs. Hidden webs are excluded, e.g. webs with a =NOSEARCHALL=on= preference variable. The ="format"= defines the format of one web item. The =$name= variable gets expanded to the name of the web, =$qname= gets expanded to double quoted name, =$marker= to =marker= where web matches =selection=.
  1.1573 +	 Parameters are format, separator and web:
  1.1574 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1575 +	 | ="format"= | Format of one line, may include =$name= variable | ="$name"= |
  1.1576 +	 | =format="format"= | (Alternative to above) | ="$name"= |
  1.1577 +	 | =separator=", "= | line separator | ="\n"= (new line) |
  1.1578 +	 | =webs="public"=	| comma sep list of Web, public expands to all non-hidden | ="public"= |
  1.1579 +	 | =marker="selected"= | Text for =$marker= where item matches =selection=, otherwise equals =""= | ="selected"= |
  1.1580 +	 | =selection="%<nop>WEB%"= | Current value to be selected in list | =section="%<nop>WEB%"= |
  1.1581 +	 Examples: <br /> =%<nop>WEBLIST{"	* [<nop>[$name.%HOMETOPIC%]]"}%= creates a bullet list of all webs.
  1.1582 +<br />
  1.1583 +=%<nop>WEBLIST{"&lt;option $marker value=$qname&gt;$name&lt;/option&gt;" webs="Trash,public" selection="%WEB%" separator=" "}%= Dropdown of all public Webs + Trash Web, current Web highlighted.
  1.1584 +</td>
  1.1585 +</tr><tr>
  1.1586 +  <td> =%<nop>GMTIME%= </td>
  1.1587 +  <td> GM time, is <b>%GMTIME%</b> </td>
  1.1588 +</tr><tr>
  1.1589 +  <td> =%<nop>GMTIME{"format"}%= </td>
  1.1590 +  <td> Formatted GM time based on time variables.
  1.1591 +	 | *Variable:* | *Unit:* | *Example* |
  1.1592 +	 | =$seconds= | seconds | 59 |
  1.1593 +	 | =$minutes= | minutes | 59 |
  1.1594 +	 | =$hours= | hours | 23 |
  1.1595 +	 | =$day= | day of month | 31 |
  1.1596 +	 | =$wday= | day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) | Thu |
  1.1597 +	 | =$month= | month in ISO format | Dec |
  1.1598 +	 | =$mo= | 2 digit month | 12 |
  1.1599 +	 | =$year= | 4 digit year | 1999 |
  1.1600 +	 | =$ye= | 2 digit year | 99 |
  1.1601 +	 | =$tz= | either "GMT" (if set to gmtime), or "Local" (if set to servertime) | GMT |
  1.1602 +	 | =$iso= | ISO format timestamp | %GMTIME{"$iso"}% |
  1.1603 +	 | =$rcs= | RCS format timestamp | %GMTIME{"$rcs"}% |
  1.1604 +	 | =$http= | E-mail & http format timestamp | %GMTIME{"$http"}% |
  1.1605 +	 Variables can be shortened to 3 characters. Example: <br /> =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= is <br /> <b>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</b> </td>
  1.1606 +</tr><tr>
  1.1607 +  <td> =%<nop>SERVERTIME%= </td>
  1.1608 +  <td> Server time, is <b>%SERVERTIME%</b> </td>
  1.1609 +</tr><tr>
  1.1610 +  <td> =%<nop>SERVERTIME{"format"}%= </td>
  1.1611 +  <td> Formatted server time. Same format qualifiers as =%<nop>GMTIME%= <br /> Example: =%<nop>SERVERTIME{"$hou:$min"}%= is <b>%SERVERTIME{"$hou:$min"}%</b> </td>
  1.1612 +</tr><tr>
  1.1613 +  <td> =%<nop>DISPLAYTIME%= </td>
  1.1614 +  <td> Display time, is <b>%DISPLAYTIME%</b> </td>
  1.1615 +</tr><tr>
  1.1616 +  <td> =%<nop>DISPLAYTIME{"format"}%= </td>
  1.1617 +  <td> Formatted time - either GMT or Local server time, depending on setting in TWiki.cfg. Same format qualifiers as =%<nop>GMTIME%= <br /> Example: =%<nop>DISPLAYTIME{"$hou:$min"}%= is <b>%DISPLAYTIME{"$hou:$min"}%</b> </td>
  1.1618 +</tr><tr>
  1.1619 +  <td> =%<nop>HTTP_HOST%= </td>
  1.1620 +  <td> HTTP_HOST environment variable, is <b>%HTTP_HOST%</b> </td>
  1.1621 +</tr><tr>
  1.1622 +  <td> =%<nop>REMOTE_ADDR%= </td>
  1.1623 +  <td> REMOTE_ADDR environment variable, is <b>%REMOTE_ADDR%</b> </td>
  1.1624 +</tr><tr>
  1.1625 +  <td> =%<nop>REMOTE_PORT%= </td>
  1.1626 +  <td> REMOTE_PORT environment variable, is <b>%REMOTE_PORT%</b> </td>
  1.1627 +</tr><tr>
  1.1628 +  <td> =%<nop>REMOTE_USER%= </td>
  1.1629 +  <td> REMOTE_USER environment variable, is <b>%REMOTE_USER%</b> </td>
  1.1630 +</tr><tr>
  1.1631 +  <td> =%<nop>INCLUDE{"page" ...}%= </td>
  1.1632 +  <td> Server side include to IncludeTopicsAndWebPages:
  1.1633 +d129 1
  1.1634 +a129 65
  1.1635 +  </td>
  1.1636 +</tr><tr>
  1.1637 +  <td> =%<nop>STARTINCLUDE%= </td>
  1.1638 +  <td> If present in included topic, start to include text from this location up to the end, or up to the location of the =%<nop>STOPINCLUDE%= variable. A normal view of the topic shows everyting exept the =%<nop>STARTINCLUDE%= variable itself. </td>
  1.1639 +</tr><tr>
  1.1640 +  <td> =%<nop>STOPINCLUDE%= </td>
  1.1641 +  <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 =%<nop>STOPINCLUDE%= variable itself. </td>
  1.1642 +</tr><tr>
  1.1643 +  <td> =%<nop>TOC%= </td>
  1.1644 +  <td> Table of Contents of current topic. </td>
  1.1645 +</tr><tr>
  1.1646 +  <td> =%<nop>TOC{"SomeTopic" ...}%= </td>
  1.1647 +  <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;/h2&gt;"=) are taken into account. Any heading text after ="!!"= is excluded from the TOC; for example, write ="---+!! text"= if you do not want to list a header in the TOC. Supported parameters:
  1.1648 +| *Parameter:* | *Description:* | *Default:* |
  1.1649 +| ="TopicName"= | topic name | Current topic |
  1.1650 +| =web="Name"= | Name of web | Current web |
  1.1651 +| =depth="2"= | Limit depth of headings shown in TOC | 6 |
  1.1652 +| =title="Some text"= | Title to appear at top of TOC | none |
  1.1653 +Examples: =<b>%<nop>TOC{depth="2"}%</b>=, =<b>%<nop>TOC{"TWikiDocumentation" web="%TWIKIWEB%" title="Contents:"}%</b>=
  1.1654 +</tr><tr>
  1.1655 +  <td> =%<nop>SEARCH{"text" ...}%= </td>
  1.1656 +  <td> Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1]
  1.1657 +| *Parameter:* | *Description:* | *Default:* |
  1.1658 +| ="text"= | Search term. Is a keyword search, literal search or regular expression search, depending on the =type= parameter. SearchHelp has more | required |
  1.1659 +| =search="text"= | (Alternative to above) | N/A |
  1.1660 +| =web="Name"= <br /> =web="%MAINWEB%, Know"= <br /> =web="all"= | Wiki web to search: A web, a list of webs separated by comma, or =all= webs. [2] | Current web |
  1.1661 +| =topic="%WEBPREFSTOPIC%"= <br /> =topic="*Bug"= | Limit search to topics: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | All topics in a web |
  1.1662 +| =excludetopic="Web*"= <br /> =excludetopic="%HOMETOPIC%, <nop>WebChanges"= | Exclude topics from search: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | None |
  1.1663 +| =type="keyword"= <br /> =type="literal"= <br /> =type="regex"= | Do a keyword search like =soap "web service" -shampoo=; a literal search like =web service=; or RegularExpression search like =soap;web service;!shampoo= | =%<nop>SEARCHVAR- DEFAULTTYPE%= [[TWikiPreferences][preferences]] setting |
  1.1664 +| =scope="topic"= <br /> =scope="text"= <br /> =scope="all"= | Search topic name (title); the text (body) of topic; or all (both) | ="text"= |
  1.1665 +| =order="topic"= <br /> =order="created"= <br />  =order="modified"= <br /> =order="editby"= <br /> =order=<br />&nbsp;"formfield(name)"= | Sort the results of search by the topic names, topic creation time, last modified time, last editor, or named field of TWikiForms. The sorting is done web by web; in case you want to sort across webs, create a [[FormattedSearch][formatted]] table and sort it with TablePlugin's initsort | Sort by topic name |
  1.1666 +| =limit="all"= <br /> =limit="16"= | Limit the number of results returned. This is done after sorting in case =order= is specified | All results |
  1.1667 +| =reverse="on"= | Reverse the direction of the search | Ascending search |
  1.1668 +| =casesensitive="on"= | Case sensitive search | Ignore case |
  1.1669 +| =nosummary="on"= | Show topic title only | Show topic summary |
  1.1670 +| =bookview="on"= | BookView search, e.g. show complete topic text | Show topic summary |
  1.1671 +| =nosearch="on"= | Suppress search string | Show search string |
  1.1672 +| =noheader="on"= | Suppress search header <br /> <span style='background: #FFB0B0;'> *Topics: Changed: By:* </span> | Show search header |
  1.1673 +| =nototal="on"= | Do not show number of topics found | Show number |
  1.1674 +| =header="..."= <br /> =format="..."= | Custom format results: see *[[FormattedSearch]]* for usage, variables &amp; examples | Results in table |
  1.1675 +| =expandvariables="on"= | Expand variables before applying a FormattedSearch on a search hit. Useful to show the expanded text, e.g. to show the result of a SpreadSheetPlugin =%<nop>CALC{}%= instead of the formula | Raw text |
  1.1676 +| =multiple="on"= | Multiple hits per topic. Each hit can be [[FormattedSearch][formatted]]. The last token is used in case of a regular expression ";" _and_ search | Only one hit per topic |
  1.1677 +| =separator=", "= | Line separator between hits | Newline ="$n"= |
  1.1678 +Example: =<b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</b>= <br />
  1.1679 +Formatted example: ==%<nop>SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="<nop>| $topic | $summary |"%== _(displays results in a table with header - [[FormattedSearch][details]])_ <br />
  1.1680 +%H% If the TWiki:Plugins.TablePlugin is installed, you may set a =%<nop>TABLE{}%= variable just before the =%<nop>SEARCH{}%= to alter the output of a search.  Example: ==%<nop>TABLE{ tablewidth="90%" }%==
  1.1681 +</td>
  1.1682 +</tr>
  1.1683 +<tr>
  1.1684 +  <td> =%<nop>METASEARCH{...}%= </td>
  1.1685 +  <td> Special search of meta data
  1.1686 +| *Parameter:* | *Description:* | *Default:* |
  1.1687 +| =type="topicmoved"= | What sort of search is required? <br /> \
  1.1688 +								="topicmoved"= if search for a topic that may have been moved <br /> \
  1.1689 +								="parent"= if searching for topics that have a specific parent i.e. its \
  1.1690 +								children | required |
  1.1691 +| =web="%<nop>WEB%"= | Wiki web to search: A web, a list of webs separated by whitespace, or =all= webs. | required |
  1.1692 +| =topic="%<nop>TOPIC%"= | The topic the search relates to | required |
  1.1693 +| =title="Title"= | Text that is prepended to any search results | required |
  1.1694 +Example: ==%<nop>METASEARCH{type="topicmoved" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="This topic used to exist and was moved to: "}%==, you may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate<br />
  1.1695 +==%<nop>METASEARCH{type="parent" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="Children: "}%== 
  1.1696 +</tr><tr>
  1.1697 +  <td> =%<nop>VAR{"NAME" web="Web"}%= </td>
  1.1698 +  <td> Get a preference value from a web other then the current one. Example: To get =%<nop>WEBBGCOLOR%= of the %MAINWEB% web write =%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%=, is =<b>%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</b>= </td>
  1.1699 +</tr></table>
  1.1700 +d131 310
  1.1701 +a440 2
  1.1702 +<blockquote>
  1.1703 +[1] __Note__: The search form uses identical names for input fields.
  1.1704 +a441 2
  1.1705 +[2] __Note__: A web can be excluded from a ==web="all"== search if you define a ==NOSEARCHALL=on== variable in its %WEBPREFSTOPIC%.
  1.1706 +</blockquote>
  1.1707 +d451 18
  1.1708 +a468 10
  1.1709 +</tr><tr>
  1.1710 +  <td> =%<nop>WIKIWEBMASTER%= </td>
  1.1711 +  <td> __SL__ </td>
  1.1712 +  <td> Webmaster email address (sender of email notifications) , is <b>%WIKIWEBMASTER%</b> </td>
  1.1713 +</tr><tr>
  1.1714 +  <td> =%<nop>WIKIWEBLIST%= </td>
  1.1715 +  <td> __SL__ </td>
  1.1716 +  <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
  1.1717 +</tr><tr>
  1.1718 +  <td> =%<nop>WEBTOPICLIST%= </td>
  1.1719 +d470 19
  1.1720 +a488 7
  1.1721 +  <td> Common links of web (second line of topics) </td>
  1.1722 +</tr><tr>
  1.1723 +  <td> =%<nop>WEBCOPYRIGHT%= </td>
  1.1724 +  <td> __SL__ , __WL__ </td>
  1.1725 +  <td> Copyright notice (bottom right corner of topics) </td>
  1.1726 +</tr><tr>
  1.1727 +  <td> =%<nop>WEBBGCOLOR%= </td>
  1.1728 +d490 4
  1.1729 +a493 3
  1.1730 +  <td> Background color of web </td>
  1.1731 +</tr><tr>
  1.1732 +  <td> =%<nop>NOSEARCHALL%= </td>
  1.1733 +d495 4
  1.1734 +a498 11
  1.1735 +  <td> Exclude web from a =web="all"= search (set variable to =on= for hidden webs) </td>
  1.1736 +</tr><tr>
  1.1737 +  <td> =%<nop>NEWTOPICBGCOLOR%= </td>
  1.1738 +  <td> __SL__ , _UL_ </td>
  1.1739 +  <td> Background color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
  1.1740 +</tr><tr>
  1.1741 +  <td> =%<nop>NEWTOPICFONTCOLOR%= </td>
  1.1742 +  <td> __SL__ , _UL_ </td>
  1.1743 +  <td> Font color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
  1.1744 +</tr><tr>
  1.1745 +  <td> =%<nop>EDITBOXWIDTH%= </td>
  1.1746 +d500 3
  1.1747 +a502 2
  1.1748 +  <td> Horizontal size of edit box, is <b> =%EDITBOXWIDTH%= </b> </td>
  1.1749 +</tr><tr>
  1.1750 +d506 7
  1.1751 +a512 1
  1.1752 +</tr><tr>
  1.1753 +d516 7
  1.1754 +a522 17
  1.1755 +</tr><tr>
  1.1756 +  <td> =%<nop>RELEASEEDITLOCKCHECKBOX%= </td>
  1.1757 +  <td> __SL__ , __UL__ </td>
  1.1758 +  <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>
  1.1759 +</tr><tr>
  1.1760 +  <td> =%<nop>DONTNOTIFYCHECKBOX%= </td>
  1.1761 +  <td> __SL__ , __UL__ </td>
  1.1762 +  <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>
  1.1763 +</tr><tr>
  1.1764 +  <td> =%<nop>ATTACHLINKBOX%= </td>
  1.1765 +  <td> __SL__ , __UL__ </td>
  1.1766 +  <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>
  1.1767 +</tr><tr>
  1.1768 +  <td> =%<nop>HTTP_EQUIV_ON_VIEW%= </td>
  1.1769 +  <td> __SL__ </td>
  1.1770 +  <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
  1.1771 +</tr><tr>
  1.1772 +d526 2
  1.1773 +a527 1
  1.1774 +</tr><tr>
  1.1775 +d531 18
  1.1776 +a548 2
  1.1777 +</tr><tr>
  1.1778 +  <td> =%<nop>DENYWEBCHANGE%= </td>
  1.1779 +d550 9
  1.1780 +a558 3
  1.1781 +  <td> List of users and groups who are *not allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.1782 +</tr><tr>
  1.1783 +  <td> =%<nop>ALLOWWEBCHANGE%= </td>
  1.1784 +d560 9
  1.1785 +a568 11
  1.1786 +  <td> List of users and groups who are *allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.1787 +</tr><tr>
  1.1788 +  <td> =%<nop>DENYTOPICCHANGE%= </td>
  1.1789 +  <td> __(any topic)__ </td>
  1.1790 +  <td> List of users and groups who are *not allowed* to change the current topic. (More in TWikiAccessControl) </td>
  1.1791 +</tr><tr>
  1.1792 +  <td> =%<nop>ALLOWTOPICCHANGE%= </td>
  1.1793 +  <td> __(any topic)__ </td>
  1.1794 +  <td> List of users and groups who are *allowed* to change the current topic. (More in TWikiAccessControl) </td>
  1.1795 +</tr><tr>
  1.1796 +  <td> =%<nop>DENYWEBRENAME%= </td>
  1.1797 +d570 13
  1.1798 +a582 18
  1.1799 +  <td> List of users and groups who are *not allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.1800 +</tr><tr>
  1.1801 +  <td> =%<nop>ALLOWWEBRENAME%= </td>
  1.1802 +  <td> __WL__ </td>
  1.1803 +  <td> List of users and groups who are *allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.1804 +</tr><tr>
  1.1805 +  <td> =%<nop>DENYTOPICRENAME%= </td>
  1.1806 +  <td> __(any topic)__ </td>
  1.1807 +  <td> List of users and groups who are *not allowed* to rename the current topic. (More in TWikiAccessControl) </td>
  1.1808 +</tr><tr>
  1.1809 +  <td> =%<nop>ALLOWTOPICRENAME%= </td>
  1.1810 +  <td> __(any topic)__ </td>
  1.1811 +  <td> List of users and groups who are *allowed* to rename the current topic. (More in TWikiAccessControl) </td>
  1.1812 +</tr><tr>
  1.1813 +  <td> =%<nop>FINALPREFERENCES%= </td>
  1.1814 +  <td> __SL__ , __WL__ </td>
  1.1815 +  <td> List of preferences that are not allowed to be overridden by next level preferences</td>
  1.1816 +</tr></table>
  1.1817 +d603 1
  1.1818 +a603 1
  1.1819 +-- TWiki:Main.PeterThoeny - 16 Mar 2004 <br />
  1.1820 +@
  1.1821 +
  1.1822 +
  1.1823 +1.75
  1.1824 +log
  1.1825 +@none
  1.1826 +@
  1.1827 +text
  1.1828 +@d1 1
  1.1829 +a1 1
  1.1830 +%META:TOPICINFO{author="PeterThoeny" date="1079505060" format="1.0" version="1.75"}%
  1.1831 +d3 420
  1.1832 +a422 417
  1.1833 +%TOC%
  1.1834 +%STARTINCLUDE%
  1.1835 +---# TWiki Variables
  1.1836 +
  1.1837 +_Special text strings expand on the fly to display user data or system info_
  1.1838 +
  1.1839 +<nop>TWikiVariables are text strings - =%<nop>VARIABLE%= - that expand into content whenever a page is opened. When a topic is rendered for viewing, =VARIABLES= are replaced by data, either user-entered, or info automatically generated by TWiki (like the date, or the current username). There are predefined variables, and Preference variables that you configure. You can also define custom variables, with new names and values.
  1.1840 +
  1.1841 +---++ Predefined Variables
  1.1842 +
  1.1843 +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.
  1.1844 +
  1.1845 +	* %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%==.
  1.1846 +
  1.1847 +This version of TWiki - %WIKIVERSION% - expands the following variables (enclosed in ==%== percent signs):
  1.1848 +
  1.1849 +<table cellspacing="0" cellpadding="2" border="1" align="center" style="background-color:#f5f5f5">
  1.1850 +<tr>
  1.1851 +  <th width="160"> Variable: </th><th> Expanded to: </th>
  1.1852 +</tr><tr>
  1.1853 +  <td> =%<nop>WIKIHOMEURL%= </td>
  1.1854 +  <td> The base script URL of %WIKITOOLNAME%, is the link of the Home icon in the upper left corner, is <b>%WIKIHOMEURL%</b> </td>
  1.1855 +</tr><tr>
  1.1856 +  <td> =%<nop>SCRIPTURL%= </td>
  1.1857 +  <td> The script URL of %WIKITOOLNAME%, is <b>%SCRIPTURL%</b></td>
  1.1858 +</tr><tr>
  1.1859 +  <td> =%<nop>SCRIPTURLPATH%= </td>
  1.1860 +  <td> The path of the script URL of %WIKITOOLNAME%, is <b>%SCRIPTURLPATH%</b></td>
  1.1861 +</tr><tr>
  1.1862 +  <td> =%<nop>SCRIPTSUFFIX%= </td>
  1.1863 +  <td> The script suffix, ex: =.pl=, =.cgi= is <b>%SCRIPTSUFFIX%</b></td>
  1.1864 +</tr><tr>
  1.1865 +  <td> =%<nop>PUBURL%= </td>
  1.1866 +  <td> The public URL of TWiki, is <b>%PUBURL%</b> <br /> Example: You can refer to a file attached to another topic as =<b>%<nop>PUBURL%/%<nop>WEB%/OtherTopic/image.gif</b>=  </td>
  1.1867 +</tr><tr>
  1.1868 +  <td> =%<nop>PUBURLPATH%= </td>
  1.1869 +  <td> The path of the public URL of %WIKITOOLNAME%, is <b>%PUBURLPATH%</b> </td>
  1.1870 +</tr><tr>
  1.1871 +  <td> =%<nop>ATTACHURL%= </td>
  1.1872 +  <td> The attachment URL of the current topic, is <b>%ATTACHURL%</b> <br /> Example: If you attach a file you can refer to it as =<b>%<nop>ATTACHURL%/image.gif</b>= </td>
  1.1873 +</tr><tr>
  1.1874 +  <td> =%<nop>ATTACHURLPATH%= </td>
  1.1875 +  <td> The path of the attachment URL of the current topic, is <b>%ATTACHURLPATH%</b> </td>
  1.1876 +</tr><tr>
  1.1877 +  <td> =%<nop>ICON{"type"}%= </td>
  1.1878 +  <td> Small 16x16 pixel icon of common attachment types, like %ICON{"bmp"}% =bmp=, %ICON{"doc"}% =doc=, %ICON{"gif"}% =gif=, %ICON{"hlp"}% =hlp=, %ICON{"html"}% =html=, %ICON{"mp3"}% =mp3=, %ICON{"pdf"}% =pdf=, %ICON{"ppt"}% =ppt=, %ICON{"txt"}% =txt=, %ICON{"xls"}% =xls=, %ICON{"xml"}% =xml=, %ICON{"zip"}% =zip=, etc. Specify file type only, file name, or full path name. Example: =%<nop>ICON{"pdf"}%= returns %ICON{"pdf"}% </td>
  1.1879 +</tr><tr>
  1.1880 +  <td> =%<nop>URLPARAM{"name"}%= </td>
  1.1881 +  <td> Returns the value of a URL parameter. Note that there is a risk that this variable could be misused for cross-scripting. Supported parameters:
  1.1882 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1883 +	 | ="name"= | The name of a URL parameter | required |
  1.1884 +	 | =default="..."= | Default value in case parameter is empty or missing | empty string |
  1.1885 +	 | =newline="&lt;br /&gt;"= | Convert newlines in textarea to other delimiters | no conversion |
  1.1886 +	 | =encode="entity"= | Encode special characters into HTML entities, like a double quote into =&amp;#034;=. This is needed if text is put into an HTML form field | no encoding |
  1.1887 +	 | =encode="url"= | Encode special characters for URL parameter use, like a double quote into =%22= | no encoding |
  1.1888 +	 | =multiple="on"= %BR% =multiple="[<nop>[$item]]"= | If set, gets all selected elements of a =&lt;select multiple="multiple"&gt;= tag. A format can be specified, with =$item= indicating the element, e.g. =multiple="Option: $item"= | first element |
  1.1889 +	 | =separator=", "= | Separator between multiple selections. Only relevant if multiple is specified | ="\n"= (new line) |
  1.1890 +	 Example: =%<nop>URLPARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%URLPARAM{"skin"}%</b>
  1.1891 +</td>
  1.1892 +</tr><tr>
  1.1893 +  <td> =%<nop>ENCODE{"string"}%= </td>
  1.1894 +  <td> Encodes a string. Supported parameters:
  1.1895 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1896 +	 | ="string"= | String to encode | required (can be empty) |
  1.1897 +	 | =type="entity"= | Encode special characters into HTML entities, like a double quote into =&amp;#034;= | URL encoding |
  1.1898 +	 | =type="url"= | Encode special characters for URL parameter use, like a double quote into =%22= | (this is the default) |
  1.1899 +	 Example: =%<nop>ENCODE{"spaced name"}%= returns <b>%ENCODE{"spaced name"}%</b> </td>
  1.1900 +</tr><tr>
  1.1901 +  <td> =%<nop>WIKITOOLNAME%= </td>
  1.1902 +  <td> The name of your TWiki site - <b>%WIKITOOLNAME%</b> </td>
  1.1903 +</tr><tr>
  1.1904 +  <td> =%<nop>WIKIVERSION%= </td>
  1.1905 +  <td> Your current TWiki version - <b>%WIKIVERSION%</b> </td>
  1.1906 +</tr><tr>
  1.1907 +  <td> =%<nop>USERNAME%= </td>
  1.1908 +  <td> Your login username - <b>%USERNAME%</b> </td>
  1.1909 +</tr><tr>
  1.1910 +  <td> =%<nop>WIKINAME%= </td>
  1.1911 +  <td> Your Wiki username. Same as %<nop>USERNAME% if not defined in the %MAINWEB%.%WIKIUSERSTOPIC% topic. Is <b>%WIKINAME%</b> </td>
  1.1912 +</tr><tr>
  1.1913 +  <td> =%<nop>WIKIUSERNAME%= </td>
  1.1914 +  <td> Your %<nop>WIKINAME% including the %MAINWEB% web name - always use full signatures - <b>%WIKIUSERNAME%</b> </td>
  1.1915 +</tr><tr>
  1.1916 +  <td> =%<nop>MAINWEB%= </td>
  1.1917 +  <td> The web containing %MAINWEB%.%WIKIUSERSTOPIC%, %MAINWEB%.OfficeLocations and %MAINWEB%.TWikiGroups is <b>%MAINWEB%</b> </td>
  1.1918 +</tr><tr>
  1.1919 +  <td> =%<nop>TWIKIWEB%= </td>
  1.1920 +  <td> The web containing all documentation and site-wide preference settings for %WIKITOOLNAME% - <b>%TWIKIWEB%</b> </td>
  1.1921 +</tr><tr>
  1.1922 +  <td> =%<nop>WEB%= </td>
  1.1923 +  <td> The current web is <b>%WEB%</b> </td>
  1.1924 +</tr><tr>
  1.1925 +  <td> =%<nop>BASEWEB%= </td>
  1.1926 +  <td> The web name where the includes started, e.g. the web of the first topic of nested includes. Same as =%<nop>WEB%= in case there is no include. </td>
  1.1927 +</tr><tr>
  1.1928 +  <td> =%<nop>INCLUDINGWEB%= </td>
  1.1929 +  <td> The web name of the topic that includes the current topic -  same as =%<nop>WEB%= if there is no INCLUDE. </td>
  1.1930 +</tr><tr>
  1.1931 +  <td> =%<nop>HOMETOPIC%= </td>
  1.1932 +  <td> The home topic in each web - <b>[[%HOMETOPIC%]]</b> </td>
  1.1933 +</tr><tr>
  1.1934 +  <td> =%<nop>NOTIFYTOPIC%= </td>
  1.1935 +  <td> The notify topic in each web - <b>[[%NOTIFYTOPIC%]]</b> </td>
  1.1936 +</tr><tr>
  1.1937 +  <td> =%<nop>WIKIUSERSTOPIC%= </td>
  1.1938 +  <td> The index topic of all registered users - <b>%WIKIUSERSTOPIC%</b></td>
  1.1939 +</tr><tr>
  1.1940 +  <td> =%<nop>WIKIPREFSTOPIC%= </td>
  1.1941 +  <td> The site-wide preferences topic - <b>%WIKIPREFSTOPIC%</b> </td>
  1.1942 +</tr><tr>
  1.1943 +  <td> =%<nop>WEBPREFSTOPIC%= </td>
  1.1944 +  <td> The local web preferences topic in each web - <b>%WEBPREFSTOPIC%</b> </td>
  1.1945 +</tr><tr>
  1.1946 +  <td> =%<nop>STATISTICSTOPIC%= </td>
  1.1947 +  <td> The web statistics topic <b>%STATISTICSTOPIC%</b> </td>
  1.1948 +</tr><tr>
  1.1949 +  <td> =%<nop>TOPIC%= </td>
  1.1950 +  <td> The current topic name - <b>%TOPIC%</b> </td>
  1.1951 +</tr><tr>
  1.1952 +  <td> =%<nop>BASETOPIC%= </td>
  1.1953 +  <td> The name of the topic where a single or nested INCLUDE started - same as =%<nop>TOPIC%= if there is no INCLUDE. </td>
  1.1954 +</tr><tr>
  1.1955 +  <td> =%<nop>INCLUDINGTOPIC%= </td>
  1.1956 +  <td> The name of the topic that includes the current topic. Same as =%<nop>TOPIC%= in case there is no include. </td>
  1.1957 +</tr><tr>
  1.1958 +  <td> =%<nop>SPACEDTOPIC%= </td>
  1.1959 +  <td> The current topic name with added spaces, for regular expression search of Ref-By, is <b>%SPACEDTOPIC%</b> </td>
  1.1960 +</tr><tr>
  1.1961 +  <td> =%<nop>TOPICLIST{"format"}%= </td>
  1.1962 +  <td> Topic index of a web. The "format" defines the format of one topic item. It may include variables: The =$name= variable gets expanded to the topic name; the =$web= variable gets expanded to the name of the web.
  1.1963 +	 Parameters are format, separator and web:
  1.1964 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1965 +	 | ="format"= | Format of one line, may include =$name= and =$web= variables | ="$name"= |
  1.1966 +	 | =format="format"= | (Alternative to above) | ="$name"= |
  1.1967 +	 | =separator=", "= | line separator | ="\n"= (new line) |
  1.1968 +	 | =web="Name"= | Name of web | Current web |
  1.1969 +	 Examples:
  1.1970 +	 <br /> =%<nop>TOPICLIST{"	* $web.$name"}%= creates a bullet list of all topics.
  1.1971 +	 <br /> =%<nop>TOPICLIST{separator=", "}%= creates a comma separated list of all topics.
  1.1972 +	 <br /> =%<nop>TOPICLIST{" &lt;option&gt;$name&lt;/option&gt;"}%= creates an option list (for drop down menus). </td>
  1.1973 +</tr><tr>
  1.1974 +  <td> =%<nop>WEBLIST{"format"}%= </td>
  1.1975 +  <td> Web index, ex: list of all webs. Hidden webs are excluded, e.g. webs with a =NOSEARCHALL=on= preference variable. The ="format"= defines the format of one web item. The =$name= variable gets expanded to the name of the web, =$qname= gets expanded to double quoted name, =$marker= to =marker= where web matches =selection=.
  1.1976 +	 Parameters are format, separator and web:
  1.1977 +	 | *Parameter:* | *Description:* | *Default:* |
  1.1978 +	 | ="format"= | Format of one line, may include =$name= variable | ="$name"= |
  1.1979 +	 | =format="format"= | (Alternative to above) | ="$name"= |
  1.1980 +	 | =separator=", "= | line separator | ="\n"= (new line) |
  1.1981 +	 | =webs="public"=	| comma sep list of Web, public expands to all non-hidden | ="public"= |
  1.1982 +	 | =marker="selected"= | Text for =$marker= where item matches =selection=, otherwise equals =""= | ="selected"= |
  1.1983 +	 | =selection="%<nop>WEB%"= | Current value to be selected in list | =section="%<nop>WEB%"= |
  1.1984 +	 Examples: <br /> =%<nop>WEBLIST{"	* [<nop>[$name.%HOMETOPIC%]]"}%= creates a bullet list of all webs.
  1.1985 +<br />
  1.1986 +=%<nop>WEBLIST{"&lt;option $marker value=$qname&gt;$name&lt;/option&gt;" webs="Trash,public" selection="%WEB%" separator=" "}%= Dropdown of all public Webs + Trash Web, current Web highlighted.
  1.1987 +</td>
  1.1988 +</tr><tr>
  1.1989 +  <td> =%<nop>GMTIME%= </td>
  1.1990 +  <td> GM time, is <b>%GMTIME%</b> </td>
  1.1991 +</tr><tr>
  1.1992 +  <td> =%<nop>GMTIME{"format"}%= </td>
  1.1993 +  <td> Formatted GM time based on time variables.
  1.1994 +	 | *Variable:* | *Unit:* | *Example* |
  1.1995 +	 | =$seconds= | seconds | 59 |
  1.1996 +	 | =$minutes= | minutes | 59 |
  1.1997 +	 | =$hours= | hours | 23 |
  1.1998 +	 | =$day= | day of month | 31 |
  1.1999 +	 | =$wday= | day of the Week (Sun, Mon, Tue, Wed, Thu, Fri, Sat) | Thu |
  1.2000 +	 | =$month= | month in ISO format | Dec |
  1.2001 +	 | =$mo= | 2 digit month | 12 |
  1.2002 +	 | =$year= | 4 digit year | 1999 |
  1.2003 +	 | =$ye= | 2 digit year | 99 |
  1.2004 +	 | =$tz= | either "GMT" (if set to gmtime), or "Local" (if set to servertime) | GMT |
  1.2005 +	 | =$iso= | ISO format timestamp | %GMTIME{"$iso"}% |
  1.2006 +	 | =$rcs= | RCS format timestamp | %GMTIME{"$rcs"}% |
  1.2007 +	 | =$http= | E-mail & http format timestamp | %GMTIME{"$http"}% |
  1.2008 +	 Variables can be shortened to 3 characters. Example: <br /> =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= is <br /> <b>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</b> </td>
  1.2009 +</tr><tr>
  1.2010 +  <td> =%<nop>SERVERTIME%= </td>
  1.2011 +  <td> Server time, is <b>%SERVERTIME%</b> </td>
  1.2012 +</tr><tr>
  1.2013 +  <td> =%<nop>SERVERTIME{"format"}%= </td>
  1.2014 +  <td> Formatted server time. Same format qualifiers as =%<nop>GMTIME%= <br /> Example: =%<nop>SERVERTIME{"$hou:$min"}%= is <b>%SERVERTIME{"$hou:$min"}%</b> </td>
  1.2015 +</tr><tr>
  1.2016 +  <td> =%<nop>DISPLAYTIME%= </td>
  1.2017 +  <td> Display time, is <b>%DISPLAYTIME%</b> </td>
  1.2018 +</tr><tr>
  1.2019 +  <td> =%<nop>DISPLAYTIME{"format"}%= </td>
  1.2020 +  <td> Formatted time - either GMT or Local server time, depending on setting in TWiki.cfg. Same format qualifiers as =%<nop>GMTIME%= <br /> Example: =%<nop>DISPLAYTIME{"$hou:$min"}%= is <b>%DISPLAYTIME{"$hou:$min"}%</b> </td>
  1.2021 +</tr><tr>
  1.2022 +  <td> =%<nop>HTTP_HOST%= </td>
  1.2023 +  <td> HTTP_HOST environment variable, is <b>%HTTP_HOST%</b> </td>
  1.2024 +</tr><tr>
  1.2025 +  <td> =%<nop>REMOTE_ADDR%= </td>
  1.2026 +  <td> REMOTE_ADDR environment variable, is <b>%REMOTE_ADDR%</b> </td>
  1.2027 +</tr><tr>
  1.2028 +  <td> =%<nop>REMOTE_PORT%= </td>
  1.2029 +  <td> REMOTE_PORT environment variable, is <b>%REMOTE_PORT%</b> </td>
  1.2030 +</tr><tr>
  1.2031 +  <td> =%<nop>REMOTE_USER%= </td>
  1.2032 +  <td> REMOTE_USER environment variable, is <b>%REMOTE_USER%</b> </td>
  1.2033 +</tr><tr>
  1.2034 +  <td> =%<nop>INCLUDE{"page" ...}%= </td>
  1.2035 +  <td> Server side include to IncludeTopicsAndWebPages:
  1.2036 +	| *Parameter:* | *Description:* | *Default:* |
  1.2037 +	| ="SomeTopic"= | The name of a topic located in the current web, i.e. =%<nop>INCLUDE{"WebNotify"}%= | |
  1.2038 +	| ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.SiteMap"}%= | |
  1.2039 +	| ="http://..."= | A full qualified URL, i.e. =%<nop>INCLUDE{"http://twiki.org/"}%= | |
  1.2040 +	| =pattern="..."= | A RegularExpression pattern to include a subset of a topic or page | none |
  1.2041 +	| =rev="1.2"= | Include a previous topic revision; N/A for URLs | top revision |
  1.2042 +	| =warn="off"= | Warn if topic include fails: Fail silently (if =off=); output default warning (if set to =on=); else, output specific text (use =$topic= for topic name) | =%INCLUDE- WARNING%= [[TWikiPreferences][preferences]] setting |
  1.2043 +  </td>
  1.2044 +</tr><tr>
  1.2045 +  <td> =%<nop>STARTINCLUDE%= </td>
  1.2046 +  <td> If present in included topic, start to include text from this location up to the end, or up to the location of the =%<nop>STOPINCLUDE%= variable. A normal view of the topic shows everyting exept the =%<nop>STARTINCLUDE%= variable itself. </td>
  1.2047 +</tr><tr>
  1.2048 +  <td> =%<nop>STOPINCLUDE%= </td>
  1.2049 +  <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 =%<nop>STOPINCLUDE%= variable itself. </td>
  1.2050 +</tr><tr>
  1.2051 +  <td> =%<nop>TOC%= </td>
  1.2052 +  <td> Table of Contents of current topic. </td>
  1.2053 +</tr><tr>
  1.2054 +  <td> =%<nop>TOC{"SomeTopic" ...}%= </td>
  1.2055 +  <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;/h2&gt;"=) are taken into account. Any heading text after ="!!"= is excluded from the TOC; for example, write ="---+!! text"= if you do not want to list a header in the TOC. Supported parameters:
  1.2056 +| *Parameter:* | *Description:* | *Default:* |
  1.2057 +| ="TopicName"= | topic name | Current topic |
  1.2058 +| =web="Name"= | Name of web | Current web |
  1.2059 +| =depth="2"= | Limit depth of headings shown in TOC | 6 |
  1.2060 +| =title="Some text"= | Title to appear at top of TOC | none |
  1.2061 +Examples: =<b>%<nop>TOC{depth="2"}%</b>=, =<b>%<nop>TOC{"TWikiDocumentation" web="%TWIKIWEB%" title="Contents:"}%</b>=
  1.2062 +</tr><tr>
  1.2063 +  <td> =%<nop>SEARCH{"text" ...}%= </td>
  1.2064 +  <td> Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1]
  1.2065 +| *Parameter:* | *Description:* | *Default:* |
  1.2066 +| ="text"= | Search term. Is a keyword search, literal search or regular expression search, depending on the =type= parameter. SearchHelp has more | required |
  1.2067 +| =search="text"= | (Alternative to above) | N/A |
  1.2068 +| =web="Name"= <br /> =web="%MAINWEB%, Know"= <br /> =web="all"= | Wiki web to search: A web, a list of webs separated by comma, or =all= webs. [2] | Current web |
  1.2069 +| =topic="%WEBPREFSTOPIC%"= <br /> =topic="*Bug"= | Limit search to topics: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | All topics in a web |
  1.2070 +| =excludetopic="Web*"= <br /> =excludetopic="%HOMETOPIC%, <nop>WebChanges"= | Exclude topics from search: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | None |
  1.2071 +| =type="keyword"= <br /> =type="literal"= <br /> =type="regex"= | Do a keyword search like =soap "web service" -shampoo=; a literal search like =web service=; or RegularExpression search like =soap;web service;!shampoo= | =%<nop>SEARCHVAR- DEFAULTTYPE%= [[TWikiPreferences][preferences]] setting |
  1.2072 +| =scope="topic"= <br /> =scope="text"= <br /> =scope="all"= | Search topic name (title); the text (body) of topic; or all (both) | ="text"= |
  1.2073 +| =order="topic"= <br /> =order="created"= <br />  =order="modified"= <br /> =order="editby"= <br /> =order=<br />&nbsp;"formfield(name)"= | Sort the results of search by the topic names, topic creation time, last modified time, last editor, or named field of TWikiForms. The sorting is done web by web; in case you want to sort across webs, create a [[FormattedSearch][formatted]] table and sort it with TablePlugin's initsort | Sort by topic name |
  1.2074 +| =limit="all"= <br /> =limit="16"= | Limit the number of results returned. This is done after sorting in case =order= is specified | All results |
  1.2075 +| =reverse="on"= | Reverse the direction of the search | Ascending search |
  1.2076 +| =casesensitive="on"= | Case sensitive search | Ignore case |
  1.2077 +| =nosummary="on"= | Show topic title only | Show topic summary |
  1.2078 +| =bookview="on"= | BookView search, e.g. show complete topic text | Show topic summary |
  1.2079 +| =nosearch="on"= | Suppress search string | Show search string |
  1.2080 +| =noheader="on"= | Suppress search header <br /> <span style='background: #FFB0B0;'> *Topics: Changed: By:* </span> | Show search header |
  1.2081 +| =nototal="on"= | Do not show number of topics found | Show number |
  1.2082 +| =header="..."= <br /> =format="..."= | Custom format results: see *[[FormattedSearch]]* for usage, variables &amp; examples | Results in table |
  1.2083 +| =expandvariables="on"= | Expand variables before applying a FormattedSearch on a search hit. Useful to show the expanded text, e.g. to show the result of a SpreadSheetPlugin =%<nop>CALC{}%= instead of the formula | Raw text |
  1.2084 +| =multiple="on"= | Multiple hits per topic. Each hit can be [[FormattedSearch][formatted]]. The last token is used in case of a regular expression ";" _and_ search | Only one hit per topic |
  1.2085 +| =separator=", "= | Line separator between hits | Newline ="$n"= |
  1.2086 +Example: =<b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</b>= <br />
  1.2087 +Formatted example: ==%<nop>SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="<nop>| $topic | $summary |"%== _(displays results in a table with header - [[FormattedSearch][details]])_ <br />
  1.2088 +%H% If the TWiki:Plugins.TablePlugin is installed, you may set a =%<nop>TABLE{}%= variable just before the =%<nop>SEARCH{}%= to alter the output of a search.  Example: ==%<nop>TABLE{ tablewidth="90%" }%==
  1.2089 +</td>
  1.2090 +</tr>
  1.2091 +<tr>
  1.2092 +  <td> =%<nop>METASEARCH{...}%= </td>
  1.2093 +  <td> Special search of meta data
  1.2094 +| *Parameter:* | *Description:* | *Default:* |
  1.2095 +| =type="topicmoved"= | What sort of search is required? <br /> \
  1.2096 +								="topicmoved"= if search for a topic that may have been moved <br /> \
  1.2097 +								="parent"= if searching for topics that have a specific parent i.e. its \
  1.2098 +								children | required |
  1.2099 +| =web="%<nop>WEB%"= | Wiki web to search: A web, a list of webs separated by whitespace, or =all= webs. | required |
  1.2100 +| =topic="%<nop>TOPIC%"= | The topic the search relates to | required |
  1.2101 +| =title="Title"= | Text that is prepended to any search results | required |
  1.2102 +Example: ==%<nop>METASEARCH{type="topicmoved" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="This topic used to exist and was moved to: "}%==, you may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate<br />
  1.2103 +==%<nop>METASEARCH{type="parent" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="Children: "}%== 
  1.2104 +</tr><tr>
  1.2105 +  <td> =%<nop>VAR{"NAME" web="Web"}%= </td>
  1.2106 +  <td> Get a preference value from a web other then the current one. Example: To get =%<nop>WEBBGCOLOR%= of the %MAINWEB% web write =%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%=, is =<b>%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</b>= </td>
  1.2107 +</tr></table>
  1.2108 +
  1.2109 +<blockquote>
  1.2110 +[1] __Note__: The search form uses identical names for input fields.
  1.2111 +
  1.2112 +[2] __Note__: A web can be excluded from a ==web="all"== search if you define a ==NOSEARCHALL=on== variable in its %WEBPREFSTOPIC%.
  1.2113 +</blockquote>
  1.2114 +
  1.2115 +#PreferencesVariables
  1.2116 +---++ Preferences Variables
  1.2117 +
  1.2118 +Additional variables are defined in the preferences ( site-level ( __SL__ ) in %TWIKIWEB%.%WIKIPREFSTOPIC%, web-level ( __WL__ ) in %WEBPREFSTOPIC% of each web, and user level ( __UL__ ) preferences in individual user topics):
  1.2119 +
  1.2120 +<table cellspacing="0" cellpadding="2" border="1" align="center" style="background-color:#f5f5f5">
  1.2121 +<tr>
  1.2122 +  <th width="160"> Variable: </th><th> Level: </th><th> What: </th>
  1.2123 +</tr><tr>
  1.2124 +  <td> =%<nop>WIKIWEBMASTER%= </td>
  1.2125 +  <td> __SL__ </td>
  1.2126 +  <td> Webmaster email address (sender of email notifications) , is <b>%WIKIWEBMASTER%</b> </td>
  1.2127 +</tr><tr>
  1.2128 +  <td> =%<nop>WIKIWEBLIST%= </td>
  1.2129 +  <td> __SL__ </td>
  1.2130 +  <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
  1.2131 +</tr><tr>
  1.2132 +  <td> =%<nop>WEBTOPICLIST%= </td>
  1.2133 +  <td> __WL__ </td>
  1.2134 +  <td> Common links of web (second line of topics) </td>
  1.2135 +</tr><tr>
  1.2136 +  <td> =%<nop>WEBCOPYRIGHT%= </td>
  1.2137 +  <td> __SL__ , __WL__ </td>
  1.2138 +  <td> Copyright notice (bottom right corner of topics) </td>
  1.2139 +</tr><tr>
  1.2140 +  <td> =%<nop>WEBBGCOLOR%= </td>
  1.2141 +  <td> __WL__ </td>
  1.2142 +  <td> Background color of web </td>
  1.2143 +</tr><tr>
  1.2144 +  <td> =%<nop>NOSEARCHALL%= </td>
  1.2145 +  <td> __WL__ </td>
  1.2146 +  <td> Exclude web from a =web="all"= search (set variable to =on= for hidden webs) </td>
  1.2147 +</tr><tr>
  1.2148 +  <td> =%<nop>NEWTOPICBGCOLOR%= </td>
  1.2149 +  <td> __SL__ , _UL_ </td>
  1.2150 +  <td> Background color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
  1.2151 +</tr><tr>
  1.2152 +  <td> =%<nop>NEWTOPICFONTCOLOR%= </td>
  1.2153 +  <td> __SL__ , _UL_ </td>
  1.2154 +  <td> Font color of non existing topic. ( __UL__ needs authentication for topic views ) </td>
  1.2155 +</tr><tr>
  1.2156 +  <td> =%<nop>EDITBOXWIDTH%= </td>
  1.2157 +  <td> __SL__ , __UL__ </td>
  1.2158 +  <td> Horizontal size of edit box, is <b> =%EDITBOXWIDTH%= </b> </td>
  1.2159 +</tr><tr>
  1.2160 +  <td> =%<nop>EDITBOXHEIGHT%= </td>
  1.2161 +  <td> __SL__ , __UL__ </td>
  1.2162 +  <td> Vertical size of edit box, is <b> =%EDITBOXHEIGHT%= </b> </td>
  1.2163 +</tr><tr>
  1.2164 +  <td> =%<nop>EDITBOXSTYLE%= </td>
  1.2165 +  <td> __SL__ , __UL__ </td>
  1.2166 +  <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>
  1.2167 +</tr><tr>
  1.2168 +  <td> =%<nop>RELEASEEDITLOCKCHECKBOX%= </td>
  1.2169 +  <td> __SL__ , __UL__ </td>
  1.2170 +  <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>
  1.2171 +</tr><tr>
  1.2172 +  <td> =%<nop>DONTNOTIFYCHECKBOX%= </td>
  1.2173 +  <td> __SL__ , __UL__ </td>
  1.2174 +  <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>
  1.2175 +</tr><tr>
  1.2176 +  <td> =%<nop>ATTACHLINKBOX%= </td>
  1.2177 +  <td> __SL__ , __UL__ </td>
  1.2178 +  <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>
  1.2179 +</tr><tr>
  1.2180 +  <td> =%<nop>HTTP_EQUIV_ON_VIEW%= </td>
  1.2181 +  <td> __SL__ </td>
  1.2182 +  <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
  1.2183 +</tr><tr>
  1.2184 +  <td> =%<nop>HTTP_EQUIV_ON_EDIT%= </td>
  1.2185 +  <td> __SL__ , __UL__ </td>
  1.2186 +  <td> http-equiv meta tags for edit script. </td>
  1.2187 +</tr><tr>
  1.2188 +  <td> =%<nop>HTTP_EQUIV_ON_PREVIEW%= </td>
  1.2189 +  <td> __SL__ , __UL__ </td>
  1.2190 +  <td> http-equiv meta tags for preview script. </td>
  1.2191 +</tr><tr>
  1.2192 +  <td> =%<nop>DENYWEBCHANGE%= </td>
  1.2193 +  <td> __WL__ </td>
  1.2194 +  <td> List of users and groups who are *not allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.2195 +</tr><tr>
  1.2196 +  <td> =%<nop>ALLOWWEBCHANGE%= </td>
  1.2197 +  <td> __WL__ </td>
  1.2198 +  <td> List of users and groups who are *allowed* to change topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.2199 +</tr><tr>
  1.2200 +  <td> =%<nop>DENYTOPICCHANGE%= </td>
  1.2201 +  <td> __(any topic)__ </td>
  1.2202 +  <td> List of users and groups who are *not allowed* to change the current topic. (More in TWikiAccessControl) </td>
  1.2203 +</tr><tr>
  1.2204 +  <td> =%<nop>ALLOWTOPICCHANGE%= </td>
  1.2205 +  <td> __(any topic)__ </td>
  1.2206 +  <td> List of users and groups who are *allowed* to change the current topic. (More in TWikiAccessControl) </td>
  1.2207 +</tr><tr>
  1.2208 +  <td> =%<nop>DENYWEBRENAME%= </td>
  1.2209 +  <td> __WL__ </td>
  1.2210 +  <td> List of users and groups who are *not allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.2211 +</tr><tr>
  1.2212 +  <td> =%<nop>ALLOWWEBRENAME%= </td>
  1.2213 +  <td> __WL__ </td>
  1.2214 +  <td> List of users and groups who are *allowed* to rename topics in the %WIKITOOLNAME% web. (More in TWikiAccessControl) </td>
  1.2215 +</tr><tr>
  1.2216 +  <td> =%<nop>DENYTOPICRENAME%= </td>
  1.2217 +  <td> __(any topic)__ </td>
  1.2218 +  <td> List of users and groups who are *not allowed* to rename the current topic. (More in TWikiAccessControl) </td>
  1.2219 +</tr><tr>
  1.2220 +  <td> =%<nop>ALLOWTOPICRENAME%= </td>
  1.2221 +  <td> __(any topic)__ </td>
  1.2222 +  <td> List of users and groups who are *allowed* to rename the current topic. (More in TWikiAccessControl) </td>
  1.2223 +</tr><tr>
  1.2224 +  <td> =%<nop>FINALPREFERENCES%= </td>
  1.2225 +  <td> __SL__ , __WL__ </td>
  1.2226 +  <td> List of preferences that are not allowed to be overridden by next level preferences</td>
  1.2227 +</tr></table>
  1.2228 +
  1.2229 +__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.
  1.2230 +
  1.2231 +#SettingPrefs
  1.2232 +---++ Setting Preferences
  1.2233 +
  1.2234 +	* 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:__ 
  1.2235 +	* ==<nop>Set VARIABLENAME = value==
  1.2236 +		* ==<nop>Set VARIABLENAME = value==
  1.2237 +
  1.2238 +---++ Creating Custom Variables
  1.2239 +
  1.2240 +	* 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.
  1.2241 +
  1.2242 +<blockquote style="background-color:#ffffff">
  1.2243 +*Example: Create a custom logo variable the <nop>%WEB% web* <br />
  1.2244 +	* 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=:
  1.2245 +		* ==<nop>Set MYLOGO = %<nop>PUBURL%/<nop>TWiki/LogoTopic/mylogo.gif== 
  1.2246 +</blockquote>
  1.2247 +
  1.2248 +-- TWiki:Main.PeterThoeny - 16 Mar 2004 <br />
  1.2249 +-- TWiki:Main.MikeMannix - 12 May 2002
  1.2250 +@
  1.2251 +
  1.2252 +
  1.2253 +1.74
  1.2254 +log
  1.2255 +@none
  1.2256 +@
  1.2257 +text
  1.2258 +@d1 1
  1.2259 +a1 1
  1.2260 +%META:TOPICINFO{author="PeterThoeny" date="1074472194" format="1.0" version="1.74"}%
  1.2261 +d55 1
  1.2262 +a55 1
  1.2263 +	 | =newline="&lt;br /&gt;"= | Convert newlines to other delimiters | no conversion |
  1.2264 +d58 2
  1.2265 +d165 13
  1.2266 +a177 8
  1.2267 +	 | $seconds | seconds | 59 |
  1.2268 +	 | $minutes | minutes | 59 |
  1.2269 +	 | $hours | hours | 23 |
  1.2270 +	 | $day | day of month | 31 |
  1.2271 +	 | $month | month in ISO format | Dec |
  1.2272 +	 | $mo | 2 digit month | 12 |
  1.2273 +	 | $year | 4 digit year | 1999 |
  1.2274 +	 | $ye | 2 digit year | 99 |
  1.2275 +d184 7
  1.2276 +a190 1
  1.2277 +  <td> Formatted server time. <br /> Example: =%<nop>SERVERTIME{"$hou:$min"}%= is <b>%SERVERTIME{"$hou:$min"}%</b> </td>
  1.2278 +d243 2
  1.2279 +a244 2
  1.2280 +| =order="topic"= <br /> =order="modified"= <br /> =order="editby"= <br /> =order=<br />&nbsp;"formfield(name)"= | Sort the results of search by the topic names, last modified time, last editor, or named field of TWikiForms | Sort by topic name |
  1.2281 +| =limit="all"= <br /> =limit="16"= | Limit the number of results returned | All results |
  1.2282 +d253 1
  1.2283 +d418 1
  1.2284 +a418 1
  1.2285 +-- TWiki:Main.PeterThoeny - 14 Jan 2004 <br />
  1.2286 +@
  1.2287 +
  1.2288 +
  1.2289 +1.73
  1.2290 +log
  1.2291 +@none
  1.2292 +@
  1.2293 +text
  1.2294 +@d1 1
  1.2295 +a1 1
  1.2296 +%META:TOPICINFO{author="PeterThoeny" date="1074417117" format="1.0" version="1.73"}%
  1.2297 +d50 1
  1.2298 +a50 1
  1.2299 +  <td> =%<nop>PARAM{"name"}%= </td>
  1.2300 +d58 1
  1.2301 +a58 1
  1.2302 +	 Example: =%<nop>PARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%PARAM{"skin"}%</b>
  1.2303 +@
  1.2304 +
  1.2305 +
  1.2306 +1.72
  1.2307 +log
  1.2308 +@none
  1.2309 +@
  1.2310 +text
  1.2311 +@d1 1
  1.2312 +a1 1
  1.2313 +%META:TOPICINFO{author="PeterThoeny" date="1074237929" format="1.0" version="1.72"}%
  1.2314 +d9 1
  1.2315 +a9 1
  1.2316 +<nop>TWikiVariables are text strings - =%<nop>VARIABLE%= - that expand into content whenever a page is opened. When a topic is rendered for viewing, =VARIABLES= are replaced by data, either user-entered, or info automatically generated by TWiki (like the date, or the current username). There are predefined variables, and Preference variables that you configure. You can also define custom variables, with new names and values. 
  1.2317 +d19 1
  1.2318 +a19 1
  1.2319 +<table cellspacing="0" cellpadding="2" width="90%" border="1" align="center" style="background-color:#f5f5f5">
  1.2320 +d199 1
  1.2321 +a199 1
  1.2322 +	| =warn="off"= | Warn if topic include fails: Fail silently (if =off=); output default warning (if set to =on=); else, output specific text (use =$topic= for topic name) | =%INCLUDE- WARNING%= preferences setting |
  1.2323 +d223 1
  1.2324 +a223 1
  1.2325 +| ="text"= | Search term. Is a regular expression or literal, depending on the =regex= parameter. For regular expressions ";" is used to mean _and_ e.g. "search;agrep" will find all topic containing search _and_ agrep. | required |
  1.2326 +d228 2
  1.2327 +a229 1
  1.2328 +| =scope="topic"= <br /> =scope="text"= | Search topic name (title) or in the text (body) of the topic | Topic text (body) |
  1.2329 +a231 1
  1.2330 +| =regex="on"= | RegularExpression search; also enables ";" as _and_ | Literal search |
  1.2331 +d242 1
  1.2332 +a242 1
  1.2333 +Regular example: =<b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</b>= <br />
  1.2334 +d276 1
  1.2335 +a276 1
  1.2336 +<table cellspacing="0" cellpadding="2" width="90%" border="1" align="center" style="background-color:#f5f5f5">
  1.2337 +a379 1
  1.2338 +
  1.2339 +a384 1
  1.2340 +<blockquote>
  1.2341 +a385 1
  1.2342 +</blockquote>
  1.2343 +@
  1.2344 +
  1.2345 +
  1.2346 +1.71
  1.2347 +log
  1.2348 +@none
  1.2349 +@
  1.2350 +text
  1.2351 +@d1 1
  1.2352 +a1 1
  1.2353 +%META:TOPICINFO{author="PeterThoeny" date="1073719550" format="1.0" version="1.71"}%
  1.2354 +d50 2
  1.2355 +a51 2
  1.2356 +  <td> =%<nop>URLPARAM{"name"}%= </td>
  1.2357 +  <td> Returns the value of a URL parameter. Note that there is a risk that this variable could be misused for cross-scripting. Parameters are name, default and newline:
  1.2358 +d56 3
  1.2359 +a58 1
  1.2360 +	 Example: =%<nop>URLPARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%URLPARAM{"skin"}%</b>
  1.2361 +d61 7
  1.2362 +a67 2
  1.2363 +  <td> =%<nop>URLENCODE{"string"}%= </td>
  1.2364 +  <td> Encodes a string for use as a URL parameter. Ex: =%<nop>URLENCODE{"spaced name"}%= returns <b>%URLENCODE{"spaced name"}%</b> </td>
  1.2365 +d212 1
  1.2366 +a212 1
  1.2367 +  <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;/h2&gt;"=) are taken into account. Any heading text after ="!!"= is excluded from the TOC; for example, write ="---+!! text"= if you do not want to list a header in the TOC. Parameters are topic name, web and depth:
  1.2368 +d217 2
  1.2369 +a218 1
  1.2370 +Examples: =<b>%<nop>TOC{depth="2"}%</b>=, =<b>%<nop>TOC{"TWikiDocumentation" web="%TWIKIWEB%"}%</b>=
  1.2371 +d407 2
  1.2372 +a408 2
  1.2373 +-- PeterThoeny - 19 Jan 2003 <br />
  1.2374 +-- Main.MikeMannix - 12 May 2002
  1.2375 +@
  1.2376 +
  1.2377 +
  1.2378 +1.70
  1.2379 +log
  1.2380 +@none
  1.2381 +@
  1.2382 +text
  1.2383 +@d1 1
  1.2384 +a1 1
  1.2385 +%META:TOPICINFO{author="PeterThoeny" date="1067684884" format="1.0" version="1.70"}%
  1.2386 +d48 1
  1.2387 +a48 1
  1.2388 +  <td> Small 16x16 pixel icon of common attachment types, like =bmp=, =doc=, =gif=, =hlp=, =html=, =pdf=, =ppt=, =txt=, =wav=, =xml=, =zip=, etc. Specify file type only, file name, or full path name. Example: =%<nop>ICON{"pdf"}%= returns %ICON{"pdf"}% </td>
  1.2389 +@
  1.2390 +
  1.2391 +
  1.2392 +1.69
  1.2393 +log
  1.2394 +@none
  1.2395 +@
  1.2396 +text
  1.2397 +@d1 1
  1.2398 +a1 1
  1.2399 +%META:TOPICINFO{author="PeterThoeny" date="1064795307" format="1.0" version="1.69"}%
  1.2400 +d217 3
  1.2401 +a219 1
  1.2402 +| =web="Name"= <br /> =web="%MAINWEB% Know"= <br /> =web="all"= | Wiki web to search: A web, a list of webs separated by whitespace, or =all= webs. [2] | Current web |
  1.2403 +@
  1.2404 +
  1.2405 +
  1.2406 +1.68
  1.2407 +log
  1.2408 +@none
  1.2409 +@
  1.2410 +text
  1.2411 +@d1 1
  1.2412 +a1 1
  1.2413 +%META:TOPICINFO{author="PeterThoeny" date="1062139775" format="1.0" version="1.68"}%
  1.2414 +d51 1
  1.2415 +a51 1
  1.2416 +  <td> Returns the value of a URL parameter. Note that there is a risk that this variable could be misused for cross-scripting. Parameters are name and newline:
  1.2417 +d230 2
  1.2418 +@
  1.2419 +
  1.2420 +
  1.2421 +1.67
  1.2422 +log
  1.2423 +@none
  1.2424 +@
  1.2425 +text
  1.2426 +@d1 1
  1.2427 +a1 1
  1.2428 +%META:TOPICINFO{author="PeterThoeny" date="1061625101" format="1.0" version="1.67"}%
  1.2429 +d52 4
  1.2430 +a55 3
  1.2431 +	 | *Parameter:* | *Description:* |
  1.2432 +	 | ="name"= | The name of a URL parameter |
  1.2433 +	 | =newline="&lt;br /&gt;"= | Convert newlines to other delimiters |
  1.2434 +@
  1.2435 +
  1.2436 +
  1.2437 +1.66
  1.2438 +log
  1.2439 +@none
  1.2440 +@
  1.2441 +text
  1.2442 +@d1 1
  1.2443 +a1 1
  1.2444 +%META:TOPICINFO{author="PeterThoeny" date="1061617140" format="1.0" version="1.66"}%
  1.2445 +d191 1
  1.2446 +@
  1.2447 +
  1.2448 +
  1.2449 +1.65
  1.2450 +log
  1.2451 +@none
  1.2452 +@
  1.2453 +text
  1.2454 +@d1 1
  1.2455 +a1 1
  1.2456 +%META:TOPICINFO{author="PeterThoeny" date="1057016404" format="1.0" version="1.65"}%
  1.2457 +d51 6
  1.2458 +a56 1
  1.2459 +  <td> Returns the value of a URL parameter. Note that there is a low risk that this variable could be misused for cross-scripting. Ex: =%<nop>URLPARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%URLPARAM{"skin"}%</b> </td>
  1.2460 +@
  1.2461 +
  1.2462 +
  1.2463 +1.64
  1.2464 +log
  1.2465 +@none
  1.2466 +@
  1.2467 +text
  1.2468 +@d1 1
  1.2469 +a1 1
  1.2470 +%META:TOPICINFO{author="PeterThoeny" date="1048314917" format="1.0" version="1.64"}%
  1.2471 +d46 3
  1.2472 +@
  1.2473 +
  1.2474 +
  1.2475 +1.63
  1.2476 +log
  1.2477 +@none
  1.2478 +@
  1.2479 +text
  1.2480 +@d1 1
  1.2481 +a1 1
  1.2482 +%META:TOPICINFO{author="PeterThoeny" date="1044751568" format="1.0" version="1.63"}%
  1.2483 +d380 1
  1.2484 +a380 1
  1.2485 +*Example: Create a custom logo variable the %WEB% web* <br />
  1.2486 +@
  1.2487 +
  1.2488 +
  1.2489 +1.62
  1.2490 +log
  1.2491 +@none
  1.2492 +@
  1.2493 +text
  1.2494 +@d1 1
  1.2495 +a1 1
  1.2496 +%META:TOPICINFO{author="PeterThoeny" date="1043655738" format="1.0" version="1.62"}%
  1.2497 +d297 4
  1.2498 +@
  1.2499 +
  1.2500 +
  1.2501 +1.61
  1.2502 +log
  1.2503 +@none
  1.2504 +@
  1.2505 +text
  1.2506 +@d1 1
  1.2507 +a1 1
  1.2508 +%META:TOPICINFO{author="PeterThoeny" date="1042964469" format="1.0" version="1.61"}%
  1.2509 +d249 1
  1.2510 +@
  1.2511 +
  1.2512 +
  1.2513 +1.60
  1.2514 +log
  1.2515 +@none
  1.2516 +@
  1.2517 +text
  1.2518 +@d1 1
  1.2519 +a1 1
  1.2520 +%META:TOPICINFO{author="PeterThoeny" date="1039594200" format="1.0" version="1.60"}%
  1.2521 +d221 2
  1.2522 +a222 1
  1.2523 +Formatted example: ==%<nop>SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="<nop>| $topic | $summary |"%== _(displays results in a table with header - [[FormattedSearch][details]])_
  1.2524 +d380 1
  1.2525 +a380 1
  1.2526 +-- PeterThoeny - 13 Sep 2001 <br />
  1.2527 +@
  1.2528 +
  1.2529 +
  1.2530 +1.59
  1.2531 +log
  1.2532 +@none
  1.2533 +@
  1.2534 +text
  1.2535 +@d1 1
  1.2536 +a1 1
  1.2537 +%META:TOPICINFO{author="PeterThoeny" date="1038026520" format="1.0" version="1.59"}%
  1.2538 +d176 7
  1.2539 +a182 4
  1.2540 +  <td> Server side include to IncludeTopicsAndWebPages. Parameters are page name, and an optional =pattern="(reg-exp)"=. The page name is:
  1.2541 +	| ="SomeTopic"= | The name of a topic located in the current web, i.e. =%<nop>INCLUDE{"WebNotify"}%= |
  1.2542 +	| ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.SiteMap"}%= |
  1.2543 +	| ="http://..."= | A full qualified URL, i.e. =%<nop>INCLUDE{"http://twiki.org/"}%= |
  1.2544 +d219 1
  1.2545 +a219 1
  1.2546 +| ==header="..."== <br /> ==format="..."== | Custom format results: see *[[FormattedSearch]]* for usage, variables & examples | Results in table |
  1.2547 +@
  1.2548 +
  1.2549 +
  1.2550 +1.58
  1.2551 +log
  1.2552 +@none
  1.2553 +@
  1.2554 +text
  1.2555 +@d1 1
  1.2556 +a1 1
  1.2557 +%META:TOPICINFO{author="PeterThoeny" date="1033867260" format="1.0" version="1.58"}%
  1.2558 +d202 1
  1.2559 +a202 1
  1.2560 +| ="text"= | Search term. (Is a regular expression or literal, depending on the =regex= parameter) [TWikiAlphaRelease - for regular expressions ";" can be used to mean _and_ e.g. "search;agrep" will find all topic containing search _and_ agrep ] | required |
  1.2561 +d208 1
  1.2562 +a208 1
  1.2563 +| =regex="on"= | RegularExpression search | Literal search |
  1.2564 +@
  1.2565 +
  1.2566 +
  1.2567 +1.57
  1.2568 +log
  1.2569 +@none
  1.2570 +@
  1.2571 +text
  1.2572 +@d1 1
  1.2573 +a1 1
  1.2574 +%META:TOPICINFO{author="PeterThoeny" date="1030259897" format="1.0" version="1.57"}%
  1.2575 +d48 1
  1.2576 +a48 1
  1.2577 +  <td> Returns the value of a URL parameter. Ex: =%<nop>URLPARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%URLPARAM{"skin"}%</b> </td>
  1.2578 +d354 5
  1.2579 +d362 3
  1.2580 +a364 3
  1.2581 +	* The syntax for Preferences Variables is the same anywhere in TWiki (on its own TWiki bullet line, including nested bullets): <br />[3 spaces] * [space] Set [space] VARIABLENAME [space] = [value]<br /> __Examples:__ 
  1.2582 +	* ==<nop>Set VARIABLENAME = =value===
  1.2583 +		* ==<nop>Set VARIABLENAME = =value===
  1.2584 +@
  1.2585 +
  1.2586 +
  1.2587 +1.56
  1.2588 +log
  1.2589 +@none
  1.2590 +@
  1.2591 +text
  1.2592 +@d1 1
  1.2593 +a1 1
  1.2594 +%META:TOPICINFO{author="PeterThoeny" date="1023240035" format="1.0" version="1.56"}%
  1.2595 +d138 1
  1.2596 +a138 1
  1.2597 +=%<nop>WEBLIST{"<option $marker value=$qname>$name</option>" webs="Trash,public" selection="%WEB%" separator=" "}%= Dropdown of all public Webs + Trash Web, current Web highlighted.
  1.2598 +@
  1.2599 +
  1.2600 +
  1.2601 +1.55
  1.2602 +log
  1.2603 +@none
  1.2604 +@
  1.2605 +text
  1.2606 +@d1 1
  1.2607 +a1 1
  1.2608 +%META:TOPICINFO{author="PeterThoeny" date="1022256244" format="1.0" version="1.55"}%
  1.2609 +d192 1
  1.2610 +a192 1
  1.2611 +  <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;/h2&gt;"=) are taken into account. (But not ="&lt;H2&gt;text&lt;/H2&gt;"=, which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth:
  1.2612 +@
  1.2613 +
  1.2614 +
  1.2615 +1.54
  1.2616 +log
  1.2617 +@none
  1.2618 +@
  1.2619 +text
  1.2620 +@d1 1
  1.2621 +a1 1
  1.2622 +%META:TOPICINFO{author="PeterThoeny" date="1021679280" format="1.0" version="1.54"}%
  1.2623 +d357 1
  1.2624 +a357 1
  1.2625 +	* The syntax for Preferences Bariables is the same anywhere in TWiki (on its own TWiki bullet line, including nested bullets): <br />[3 spaces] * [space] Set [space] VARIABLENAME [space] = [value]<br /> __Examples:__ 
  1.2626 +@
  1.2627 +
  1.2628 +
  1.2629 +1.53
  1.2630 +log
  1.2631 +@none
  1.2632 +@
  1.2633 +text
  1.2634 +@d1 1
  1.2635 +a1 1
  1.2636 +%META:TOPICINFO{author="PeterThoeny" date="1021445972" format="1.0" version="1.53"}%
  1.2637 +d36 1
  1.2638 +a36 1
  1.2639 +  <td> The public URL of TWiki, is <b>%PUBURL%</b> </td>
  1.2640 +d49 3
  1.2641 +@
  1.2642 +
  1.2643 +
  1.2644 +1.52
  1.2645 +log
  1.2646 +@none
  1.2647 +@
  1.2648 +text
  1.2649 +@d1 1
  1.2650 +a1 1
  1.2651 +%META:TOPICINFO{author="MikeMannix" date="1021201634" format="1.0" version="1.52"}%
  1.2652 +d175 1
  1.2653 +a175 1
  1.2654 +	| ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.TWikiSiteMap"}%= |
  1.2655 +d369 1
  1.2656 +a369 1
  1.2657 +-- Main.MikeMannix - 12 May 2002
  1.2658 +@
  1.2659 +
  1.2660 +
  1.2661 +1.51
  1.2662 +log
  1.2663 +@none
  1.2664 +@
  1.2665 +text
  1.2666 +@d1 1
  1.2667 +a1 1
  1.2668 +%META:TOPICINFO{author="PeterThoeny" date="1018175400" format="1.0" version="1.51"}%
  1.2669 +d175 1
  1.2670 +a175 1
  1.2671 +	| ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.SiteMap"}%= |
  1.2672 +d199 1
  1.2673 +a199 1
  1.2674 +| ="text"= | Search term. (Is a regular expression or literal, depending on the =regex= parameter) | required |
  1.2675 +d228 1
  1.2676 +a228 1
  1.2677 +| =title="Title"= | Text the is prepended to any search results | required |
  1.2678 +d351 1
  1.2679 +a351 1
  1.2680 +
  1.2681 +d354 1
  1.2682 +a354 1
  1.2683 +	* The syntax for Preferences variables is the same anywhere in TWiki (on its own TWiki bullet line, including nested bullets): <br />[3 spaces] * [space] Set [space] VARIABLENAME [space] = [value]<br /> __Examples:__ 
  1.2684 +d360 1
  1.2685 +a360 1
  1.2686 +	* 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.
  1.2687 +d362 4
  1.2688 +a365 4
  1.2689 +<blockquote style="background-color:#f5f5f5">
  1.2690 +*Example: Create a custom logo variable* <br />
  1.2691 +	* To place a logo anywhere in a web by typing ==%<nop>MYLOGO%==, simply define the variable on the web's WebPreferences page. You also have to upload =logo.gif= - this can be done by [[FileAttachment][attaching a file]] to =LogoTopic= (any topic name you choose):
  1.2692 +		* ==<nop>Set MYLOGO = %<nop>PUBURL%/%<nop>MAINWEB%/LogoTopic/logo.gif== 
  1.2693 +d369 1
  1.2694 +a369 1
  1.2695 +-- Main.MikeMannix - 07 Mar 2002
  1.2696 +@
  1.2697 +
  1.2698 +
  1.2699 +1.50
  1.2700 +log
  1.2701 +@none
  1.2702 +@
  1.2703 +text
  1.2704 +@d1 1
  1.2705 +a1 1
  1.2706 +%META:TOPICINFO{author="MikeMannix" date="1015559520" format="1.0" version="1.50"}%
  1.2707 +d175 1
  1.2708 +a175 1
  1.2709 +	| ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.TWikiWebsTable"}%= |
  1.2710 +@
  1.2711 +
  1.2712 +
  1.2713 +1.49
  1.2714 +log
  1.2715 +@none
  1.2716 +@
  1.2717 +text
  1.2718 +@d1 1
  1.2719 +a1 1
  1.2720 +%META:TOPICINFO{author="PeterThoeny" date="1013855830" format="1.0" version="1.49"}%
  1.2721 +d189 1
  1.2722 +a189 1
  1.2723 +  <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;h2&gt;"=) are taken into account. (But not ="&lt;H2&gt;text&lt;/H2&gt;"=, which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth:
  1.2724 +d369 1
  1.2725 +a369 1
  1.2726 +-- Main.MikeMannix - 23 Jan 2002
  1.2727 +@
  1.2728 +
  1.2729 +
  1.2730 +1.48
  1.2731 +log
  1.2732 +@none
  1.2733 +@
  1.2734 +text
  1.2735 +@d1 1
  1.2736 +a1 1
  1.2737 +%META:TOPICINFO{author="MikeMannix" date="1011781320" format="1.0" version="1.48"}%
  1.2738 +d203 1
  1.2739 +a203 1
  1.2740 +| =order="topic"= <br /> =order="modified"= <br /> =order="editby"= | Sort the results of search by the topic names, last modified time, or last editor | Sort by topic name |
  1.2741 +@
  1.2742 +
  1.2743 +
  1.2744 +1.47
  1.2745 +log
  1.2746 +@none
  1.2747 +@
  1.2748 +text
  1.2749 +@d1 1
  1.2750 +a1 1
  1.2751 +%META:TOPICINFO{author="MikeMannix" date="1010288700" format="1.0" version="1.47"}%
  1.2752 +d7 1
  1.2753 +a7 3
  1.2754 +_Text strings expanded on the fly to display data or system info_
  1.2755 +
  1.2756 +---++ Overview
  1.2757 +d213 4
  1.2758 +a216 2
  1.2759 +| ==format="..."== | Flexible custom result formatting: see *[[FormattedSearch]]* for usage | Results in table |
  1.2760 +Example: =<b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</b>= </td>
  1.2761 +d224 1
  1.2762 +a224 1
  1.2763 +								="parent"= if searcing for topics that have a specific parent i.e. its \
  1.2764 +d228 1
  1.2765 +a228 1
  1.2766 +| =title="Title"= | Text the is pre-pended to any search results | required |
  1.2767 +d369 1
  1.2768 +a369 1
  1.2769 +-- Main.MikeMannix - 05 Jan 2002	
  1.2770 +@
  1.2771 +
  1.2772 +
  1.2773 +1.46
  1.2774 +log
  1.2775 +@none
  1.2776 +@
  1.2777 +text
  1.2778 +@d1 1
  1.2779 +a1 1
  1.2780 +%META:TOPICINFO{author="MikeMannix" date="1007294280" format="1.0" version="1.46"}%
  1.2781 +d11 1
  1.2782 +a11 1
  1.2783 +<nop>TWikiVariables are text strings - =%<nop>VARIABLE%= - that expand into content whenever a page is opened. Variables are replaced by their actual values: stored data, or system info (like the date, or the current user). There are predefined variables, and Preference variables that you set. You can also define custom variables, with new names and values.
  1.2784 +d15 1
  1.2785 +a15 1
  1.2786 +Most predefined variables return values that were either defined when TWiki was installed, or taken from server info (like current username, or date and time). Many of the variables let you control how the formatted results appear.
  1.2787 +d17 3
  1.2788 +a19 1
  1.2789 +%WIKITOOLNAME% expands the following variables (enclosed in ==%== percent signs):
  1.2790 +d53 1
  1.2791 +a53 1
  1.2792 +  <td> Name of wiki tool, is <b>%WIKITOOLNAME%</b> </td>
  1.2793 +d56 1
  1.2794 +a56 1
  1.2795 +  <td> Wiki tool version is <b>%WIKIVERSION%</b> </td>
  1.2796 +d59 1
  1.2797 +a59 1
  1.2798 +  <td> Your login username is <b>%USERNAME%</b> </td>
  1.2799 +d65 1
  1.2800 +a65 1
  1.2801 +  <td> Your %<nop>WIKINAME% including the %MAINWEB% web name. Usefull for signatures. Is <b>%WIKIUSERNAME%</b> </td>
  1.2802 +d68 1
  1.2803 +a68 1
  1.2804 +  <td> The Main web containing %MAINWEB%.%WIKIUSERSTOPIC%, %MAINWEB%.OfficeLocations and %MAINWEB%.TWikiGroups. Is <b>%MAINWEB%</b> </td>
  1.2805 +d71 1
  1.2806 +a71 1
  1.2807 +  <td> The web containing all documentation and configuration of %WIKITOOLNAME% is <b>%TWIKIWEB%</b> </td>
  1.2808 +d80 1
  1.2809 +a80 1
  1.2810 +  <td> The web name of the topic that includes the current topic. Same as =%<nop>WEB%= in case there is no include. </td>
  1.2811 +d83 1
  1.2812 +a83 1
  1.2813 +  <td> The home topic in each web. Is <b>[[%HOMETOPIC%]]</b> </td>
  1.2814 +d86 1
  1.2815 +a86 1
  1.2816 +  <td> The notify topic in each web. Is <b>[[%NOTIFYTOPIC%]]</b> </td>
  1.2817 +d89 1
  1.2818 +a89 1
  1.2819 +  <td> The index topic of all registered users. Is <b>%WIKIUSERSTOPIC%</b></td>
  1.2820 +d92 1
  1.2821 +a92 1
  1.2822 +  <td> The web preferences topic. Is <b>%WIKIPREFSTOPIC%</b> </td>
  1.2823 +d95 1
  1.2824 +a95 1
  1.2825 +  <td> The web preferences topic. Is <b>%WEBPREFSTOPIC%</b> </td>
  1.2826 +d98 1
  1.2827 +a98 1
  1.2828 +  <td> The web statistics topic. Is <b>%STATISTICSTOPIC%</b> </td>
  1.2829 +d101 1
  1.2830 +a101 1
  1.2831 +  <td> The current topic name, is <b>%TOPIC%</b> </td>
  1.2832 +d104 1
  1.2833 +a104 1
  1.2834 +  <td> The name of the topic where the includes started, e.g. the first topic of nested includes. Same as =%<nop>TOPIC%= in case there is no include. </td>
  1.2835 +d126 1
  1.2836 +a126 1
  1.2837 +  <td> Web index, e.g. list of all webs. Hidden webs are excluded, e.g. webs with a =NOSEARCHALL=on= preference variable. The ="format"= defines the format of one web item. The =$name= variable gets expanded to the name of the web, =$qname= gets expanded to double quoted name, =$marker= to =marker= where web matches =selection=.
  1.2838 +d239 1
  1.2839 +a239 1
  1.2840 +[2] __Note__: A web can be excluded from a =web="all"= search if you define a =NOSEARCHALL=on= variable in its %WEBPREFSTOPIC%.
  1.2841 +d354 3
  1.2842 +a356 2
  1.2843 +	* 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:__ 
  1.2844 +		* ==<nop>Set VARIABLENAME = value==
  1.2845 +d369 1
  1.2846 +a369 1
  1.2847 +-- MikeMannix - 30 Nov 2001	
  1.2848 +@
  1.2849 +
  1.2850 +
  1.2851 +1.45
  1.2852 +log
  1.2853 +@none
  1.2854 +@
  1.2855 +text
  1.2856 +@d1 1
  1.2857 +a1 1
  1.2858 +%META:TOPICINFO{author="MikeMannix" date="1007115240" format="1.0" version="1.45"}%
  1.2859 +d19 1
  1.2860 +a19 1
  1.2861 +<table cellspacing="0" cellpadding="2" width="90%" border="1" align="center" style="font-family:sans-serif;font-size:13px;background-color:#f5f5f5">
  1.2862 +d213 1
  1.2863 +a216 26
  1.2864 +<td> =%<nop>SEARCH{... format="..."}%= </td>
  1.2865 +<td> *Control the formatting of an embedded search.* By default, the search result display format is fixed: a table with rows of topic name and topic summary. Use the =format="..."= parameter to specify a custom format, typically, a bullet list or table row containing variables <br />
  1.2866 +Ex: =%<nop>SEARCH{ "food" format="| $topic | $summary |" }%=) <br />
  1.2867 + *Two paramters can be used to specify a customized search result:* <br />
  1.2868 +*1.* =header="..."= parameter <br />
  1.2869 +Use the header paramter to specify the header of a search result. It should correspond to the format of the format parameter. This parameter is optional. Ex: =header="| <nop>*Topic:*<nop> | <nop>*Summary:*<nop> |"= <br />
  1.2870 +*2.* =format="..."= parameter <br />
  1.2871 +*Use the format paramter to specify the format of one search hit.* <br />
  1.2872 +Ex: =format="| $topic | $summary |"= <br />
  1.2873 +*Variables that can be used in the format string:*
  1.2874 +| *Name:* | *Expands To:* |
  1.2875 +| =$web= | Name of the web |
  1.2876 +| =$topic= | Topic name |
  1.2877 +| =$locked= | LOCKED flag (if any) |
  1.2878 +| =$date= | Time stamp of last topic update |
  1.2879 +| =$rev= | Number of last topic revision, i.e. =1.4= |
  1.2880 +| =$wikiusername= | Wiki user name of last topic update, i.e. =%MAINWEB%.<nop>JohnSmith= |
  1.2881 +| =$summary= | Topic summary |
  1.2882 +| =$formfield(name)= | The field value of a form field, i.e. =$formfield(TopicClassification)= would get expanded to =PublicFAQ=. This applies only to topics that have a [[TWiki.TWikiForms][TWikiForm]] |
  1.2883 +| =$pattern(reg-exp)= | A regular expression pattern to extract some text from a topic, i.e. =$pattern(.*?\*.*?Email\:\s*([^\n\r]+).*)= extracts the email address from a bullet of format =* Email: ...=. |
  1.2884 +__Note:__ For =$pattern(reg-exp)=, specify a TWiki.RegularExpression that scans from start to end and contains the text you want to keep in parenthesis, ex: =$pattern(.*?(from here.*?to here).*)=. You need to make sure that the integrity of a web page is not compromised, i.e. if you include a table make sure to include everything including the table end tag. <br />
  1.2885 +*NOTE:* Sorting is nicely covered by the TWiki.TablePlugin. <br />
  1.2886 +__For how-to tips and tricks, see: TWikiVariablesExamples__
  1.2887 +</td>
  1.2888 +</tr>
  1.2889 +<tr>
  1.2890 +d244 1
  1.2891 +a244 1
  1.2892 +<table cellspacing="0" cellpadding="2" width="90%" border="1" align="center" style="font-family:sans-serif;font-size:13px;background-color:#f5f5f5">
  1.2893 +d355 1
  1.2894 +a355 1
  1.2895 +---++ Customizing Variables
  1.2896 +d357 7
  1.2897 +a363 1
  1.2898 +__See:__ [[TWikiVariablesExamples][<nop>TWikiVariables Examples]]
  1.2899 +@
  1.2900 +
  1.2901 +
  1.2902 +1.44
  1.2903 +log
  1.2904 +@none
  1.2905 +@
  1.2906 +text
  1.2907 +@d1 1
  1.2908 +a1 1
  1.2909 +%META:TOPICINFO{author="PeterThoeny" date="1003975824" format="1.0" version="1.44"}%
  1.2910 +d15 1
  1.2911 +a15 1
  1.2912 +With a couple of notable exceptions, predefined variables return  set values that are defined 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. 
  1.2913 +d208 2
  1.2914 +a209 4
  1.2915 +| =nosummary="on"= | Show topic title only. [3] | Show topic summary |
  1.2916 +| =bookview="on"= | BookView search, e.g. show complete topic text. [3] | Show topic summary. |
  1.2917 +| =format="..."= | Define a FormattedSearch, i.e. <br /> ="	* [<nop>[$topic]]: $summary"=. [3] | Show regular search result with topic summary |
  1.2918 +| =header="..."= | Specify header of FormattedSearch, i.e. <br /> ="	* <nop>*Topic: Summary:*"=. | Show regular header |
  1.2919 +d214 28
  1.2920 +a241 1
  1.2921 +</tr><tr>
  1.2922 +a262 2
  1.2923 +
  1.2924 +[3] __Note__: Regular search, no summary, BookView and FormattedSearch are exclusive.
  1.2925 +d380 1
  1.2926 +a380 3
  1.2927 +---++ Creating Custom Variables
  1.2928 +
  1.2929 +	* 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.
  1.2930 +d382 1
  1.2931 +a382 5
  1.2932 +<blockquote style="background-color:#f5f5f5">
  1.2933 +*Example: Create a custom logo variable* <br />
  1.2934 +	* To place a logo anywhere in a web by typing ==%<nop>MYLOGO%==, simply define the variable on the web's WebPreferences page. You also have to upload =logo.gif= - this can be done by [[FileAttachment][attaching a file]] to =LogoTopic= (any topic name you choose):
  1.2935 +		* ==<nop>Set MYLOGO = %<nop>PUBURL%/%<nop>MAINWEB%/LogoTopic/logo.gif== 
  1.2936 +</blockquote>
  1.2937 +a383 1
  1.2938 +-- MikeMannix - 30 Aug 2001 <br />	
  1.2939 +d385 1
  1.2940 +@
  1.2941 +
  1.2942 +
  1.2943 +1.43
  1.2944 +log
  1.2945 +@none
  1.2946 +@
  1.2947 +text
  1.2948 +@d1 1
  1.2949 +a1 1
  1.2950 +%META:TOPICINFO{author="MikeMannix" date="1000548079" format="1.0" version="1.43"}%
  1.2951 +d208 4
  1.2952 +a211 2
  1.2953 +| =nosummary="on"= | Show topic title only | Show topic summary |
  1.2954 +| =bookview="on"= | BookView search, e.g. show complete topic text | Show topic summary |
  1.2955 +d238 2
  1.2956 +@
  1.2957 +
  1.2958 +
  1.2959 +1.42
  1.2960 +log
  1.2961 +@none
  1.2962 +@
  1.2963 +text
  1.2964 +@d1 1
  1.2965 +a1 1
  1.2966 +%META:TOPICINFO{author="PeterThoeny" date="1000447660" format="1.0" version="1.42"}%
  1.2967 +a2 2
  1.2968 +%INCLUDE{"UtilTempDocNote"}%
  1.2969 +
  1.2970 +d7 1
  1.2971 +a7 1
  1.2972 +_Text strings expanded on the fly include predefined, preference-driven and custom-defined data_
  1.2973 +d11 1
  1.2974 +a11 1
  1.2975 +<nop>TWikiVariables are text strings enclosed in percentage signs: ==%<no>VARIABLE%== 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!
  1.2976 +d15 1
  1.2977 +a15 1
  1.2978 +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. 
  1.2979 +d17 1
  1.2980 +a17 1
  1.2981 +%WIKITOOLNAME% expands the following variables enclosed in % percent signs:
  1.2982 +d19 1
  1.2983 +a19 1
  1.2984 +<table cellspacing="0" cellpadding="2" width="90%" border="1" align="center" style="font-family:sans-serif;font-size:13px;background-color:#fafafa">
  1.2985 +d87 4
  1.2986 +a90 1
  1.2987 +  <td> The index topic of all registered users. Is <b>%WIKIUSERSTOPIC%</b> </td>
  1.2988 +d242 1
  1.2989 +a242 1
  1.2990 +<table cellspacing="0" cellpadding="2" width="90%" border="1" align="center" style="font-family:sans-serif;font-size:13px;background-color:#fafafa">
  1.2991 +d357 1
  1.2992 +a357 1
  1.2993 +<blockquote style="background-color:#f0f0f0">
  1.2994 +@
  1.2995 +
  1.2996 +
  1.2997 +1.41
  1.2998 +log
  1.2999 +@none
  1.3000 +@
  1.3001 +text
  1.3002 +@d1 1
  1.3003 +a1 1
  1.3004 +%META:TOPICINFO{author="JohnTalintyre" date="1000368971" format="1.0" version="1.41"}%
  1.3005 +d359 1
  1.3006 +a359 1
  1.3007 +		* ==<nop>Set MYLOGO = %<nop>PUBURLPATH%/%<nop>MAINWEB%/LogoTopic/logo.gif== 
  1.3008 +d363 1
  1.3009 +@
  1.3010 +
  1.3011 +
  1.3012 +1.40
  1.3013 +log
  1.3014 +@none
  1.3015 +@
  1.3016 +text
  1.3017 +@d1 2
  1.3018 +a2 1
  1.3019 +%META:TOPICINFO{author="MikeMannix" date="1000280274" format="1.0" version="1.40"}%
  1.3020 +d44 1
  1.3021 +a44 1
  1.3022 +  <td> The attachment URL of the current topic, is <b>%ATTACHURL%</b> <br> Example: If you attach a file you can refer to it as =<b>%<nop>ATTACHURL%/image.gif</b>= </td>
  1.3023 +d118 3
  1.3024 +a120 3
  1.3025 +	 <br> =%<nop>TOPICLIST{"	* $web.$name"}%= creates a bullet list of all topics.
  1.3026 +	 <br> =%<nop>TOPICLIST{separator=", "}%= creates a comma separated list of all topics.
  1.3027 +	 <br> =%<nop>TOPICLIST{" &lt;option&gt;$name&lt;/option&gt;"}%= creates an option list (for drop down menus). </td>
  1.3028 +d131 2
  1.3029 +a132 2
  1.3030 +	 | =selection= | Current value e.g. current for current Web, =section="%<nop>WEB%" |
  1.3031 +	 Examples: <br> =%<nop>WEBLIST{"	* [<nop>[$name.%HOMETOPIC%]]"}%= creates a bullet list of all webs.
  1.3032 +d151 1
  1.3033 +a151 1
  1.3034 +	 Variables can be shortened to 3 characters. Example: <br> =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= is <br> <b>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</b> </td>
  1.3035 +d157 1
  1.3036 +a157 1
  1.3037 +  <td> Formatted server time. <br> Example: =%<nop>SERVERTIME{"$hou:$min"}%= is <b>%SERVERTIME{"$hou:$min"}%</b> </td>
  1.3038 +d200 4
  1.3039 +a203 4
  1.3040 +| =web="Name"= <br> =web="%MAINWEB% Know"= <br> =web="all"= | Wiki web to search: A web, a list of webs separated by whitespace, or =all= webs. [2] | Current web |
  1.3041 +| =scope="topic"= <br> =scope="text"= | Search topic name (title) or in the text (body) of the topic | Topic text (body) |
  1.3042 +| =order="topic"= <br> =order="modified"= <br> =order="editby"= | Sort the results of search by the topic names, last modified time, or last editor | Sort by topic name |
  1.3043 +| =limit="all"= <br> =limit="16"= | Limit the number of results returned | All results |
  1.3044 +d210 1
  1.3045 +a210 1
  1.3046 +| =noheader="on"= | Suppress search header <br> <span style='background: #FFB0B0;'> *Topics: Changed: By:* </span> | Show search header |
  1.3047 +d214 13
  1.3048 +d349 1
  1.3049 +a349 1
  1.3050 +	* 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:__ 
  1.3051 +d357 1
  1.3052 +a357 1
  1.3053 +*Example: Create a custom logo variable* <br>
  1.3054 +d362 1
  1.3055 +a362 1
  1.3056 +-- MikeMannix - 30 Aug 2001 <br>	
  1.3057 +@
  1.3058 +
  1.3059 +
  1.3060 +1.39
  1.3061 +log
  1.3062 +@none
  1.3063 +@
  1.3064 +text
  1.3065 +@d1 3
  1.3066 +a3 1
  1.3067 +%META:TOPICINFO{author="MikeMannix" date="999858969" format="1.0" version="1.39"}%
  1.3068 +@
  1.3069 +
  1.3070 +
  1.3071 +1.38
  1.3072 +log
  1.3073 +@none
  1.3074 +@
  1.3075 +text
  1.3076 +@d1 1
  1.3077 +a1 1
  1.3078 +%META:TOPICINFO{author="MikeMannix" date="999839991" format="1.0" version="1.38"}%
  1.3079 +d4 5
  1.3080 +a8 1
  1.3081 +---## TWiki Variables
  1.3082 +d12 1
  1.3083 +a12 1
  1.3084 +---+++ Predefined Variables
  1.3085 +d221 1
  1.3086 +a221 1
  1.3087 +---+++ Preferences Variables
  1.3088 +d331 1
  1.3089 +a331 1
  1.3090 +---+++ Setting Preferences
  1.3091 +d336 1
  1.3092 +a336 1
  1.3093 +---+++ Creating Custom Variables
  1.3094 +@
  1.3095 +
  1.3096 +
  1.3097 +1.37
  1.3098 +log
  1.3099 +@none
  1.3100 +@
  1.3101 +text
  1.3102 +@d1 1
  1.3103 +a1 1
  1.3104 +%META:TOPICINFO{author="MikeMannix" date="999315578" format="1.0" version="1.37"}%
  1.3105 +d337 2
  1.3106 +a338 2
  1.3107 +<span style="color:#0000ff"><b>HOW-TO: Create a custom logo variable</b></span><br>
  1.3108 +To place a logo anywhere in a web by typing ==%<nop>MYLOGO%==, simply define the variable on the web's WebPreferences page. In this case, you also have to upload ==logo.gif== to the same directory.: 
  1.3109 +@
  1.3110 +
  1.3111 +
  1.3112 +1.36
  1.3113 +log
  1.3114 +@none
  1.3115 +@
  1.3116 +text
  1.3117 +@d1 1
  1.3118 +a1 1
  1.3119 +%META:TOPICINFO{author="MikeMannix" date="999237983" format="1.0" version="1.36"}%
  1.3120 +d6 1
  1.3121 +a6 1
  1.3122 +<nop>TWikiVariables are text strings enclosed in percentage signs: ==%<no>VARIABLE%== that represent stored data. When a topic is rendered for viewing, defined variables replaced by their actual values. TWiki has two types of variable, predefined, and Preference-based, where you can change settings. Through Preference variables, you can even define custom variables. Clearly, they are a power TWiki feature.
  1.3123 +d10 2
  1.3124 +d14 3
  1.3125 +a16 2
  1.3126 +<table border="1"><tr>
  1.3127 +  <th> Variable: </th><th> Expanded to: </th>
  1.3128 +a208 1
  1.3129 +
  1.3130 +d211 1
  1.3131 +d215 1
  1.3132 +d221 3
  1.3133 +a223 2
  1.3134 +<table border="1"><tr>
  1.3135 +  <th> Variable: </th><th> Level: </th><th> What: </th>
  1.3136 +d326 2
  1.3137 +a327 1
  1.3138 +---+++ Setting Variable Preferences
  1.3139 +d334 7
  1.3140 +a340 2
  1.3141 +	* 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.<br> __Example:__ To place a logo anywhere in a web by typing ==%<nop>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): 
  1.3142 +		* ==<nop>Set MYLOGO = %<nop>PUBURLPATH%/%<nop>MAINWEB%/LogoTopic/logo.gif==
  1.3143 +@
  1.3144 +
  1.3145 +
  1.3146 +1.35
  1.3147 +log
  1.3148 +@none
  1.3149 +@
  1.3150 +text
  1.3151 +@d1 1
  1.3152 +a1 1
  1.3153 +%META:TOPICINFO{author="MikeMannix" date="999187591" format="1.0" version="1.35"}%
  1.3154 +a4 2
  1.3155 +
  1.3156 +---+++ About Variables
  1.3157 +@
  1.3158 +
  1.3159 +
  1.3160 +1.34
  1.3161 +log
  1.3162 +@none
  1.3163 +@
  1.3164 +text
  1.3165 +@d1 1
  1.3166 +a1 1
  1.3167 +%META:TOPICINFO{author="MikeMannix" date="999182965" format="1.0" version="1.34"}%
  1.3168 +d8 1
  1.3169 +a8 1
  1.3170 +__Include/write if not found elsewhere.__
  1.3171 +d27 1
  1.3172 +a27 1
  1.3173 +  <td> The script suffix, i.e. =.pl=, is <b>%SCRIPTSUFFIX%</b></td>
  1.3174 +d42 1
  1.3175 +a42 1
  1.3176 +  <td> Returns the value of a URL parameter. I.e. =%<nop>URLPARAM{"skin"}%= returns <b>print</b> for a =.../view/%WEB%/%TOPIC%?skin=print= URL. Is <b>%URLPARAM{"skin"}%</b> </td>
  1.3177 +d48 1
  1.3178 +a48 1
  1.3179 +  <td> Wiki tool version, is <b>%WIKIVERSION%</b> </td>
  1.3180 +d51 1
  1.3181 +a51 1
  1.3182 +  <td> Your login username, is <b>%USERNAME%</b> </td>
  1.3183 +d63 1
  1.3184 +a63 1
  1.3185 +  <td> The web containing all documentation and configuration of %WIKITOOLNAME%. Is <b>%TWIKIWEB%</b> </td>
  1.3186 +d66 1
  1.3187 +a66 1
  1.3188 +  <td> The current web, is <b>%WEB%</b> </td>
  1.3189 +d323 1
  1.3190 +a323 2
  1.3191 +
  1.3192 +---+++ Setting and Creating New Preferences
  1.3193 +d327 4
  1.3194 +a330 1
  1.3195 +	* 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.<br> __Example:__ To place a logo anywhere in a web by typing ==%<nop>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): 
  1.3196 +d333 1
  1.3197 +a333 1
  1.3198 +-- MikeMannix - 26 Aug 2001 <br>	
  1.3199 +@
  1.3200 +
  1.3201 +
  1.3202 +1.33
  1.3203 +log
  1.3204 +@none
  1.3205 +@
  1.3206 +text
  1.3207 +@d1 1
  1.3208 +a1 1
  1.3209 +%META:TOPICINFO{author="MikeMannix" date="999044161" format="1.0" version="1.33"}%
  1.3210 +@
  1.3211 +
  1.3212 +
  1.3213 +1.32
  1.3214 +log
  1.3215 +@none
  1.3216 +@
  1.3217 +text
  1.3218 +@d1 1
  1.3219 +a1 1
  1.3220 +%META:TOPICINFO{author="MikeMannix" date="998886670" format="1.0" version="1.32"}%
  1.3221 +d6 4
  1.3222 +d324 1
  1.3223 +a324 1
  1.3224 +__Notes:__
  1.3225 +d326 4
  1.3226 +a329 4
  1.3227 +	* Preferences variables ( on site-level, web-level and user level ) are defined by bullet lines with this syntax: 
  1.3228 +		* =<nop>Set VARIABLENAME = value=
  1.3229 +	* Additional preferences variables can be defined on all three level as needed. Example:
  1.3230 +		* =<nop>Set MYLOGO = %<nop>PUBURLPATH%/%<nop>MAINWEB%/LogoTopic/logo.gif=
  1.3231 +a330 1
  1.3232 +-- PeterThoeny - 23 Jul 2001 <br>
  1.3233 +@
  1.3234 +
  1.3235 +
  1.3236 +1.31
  1.3237 +log
  1.3238 +@none
  1.3239 +@
  1.3240 +text
  1.3241 +@d1 1
  1.3242 +a1 1
  1.3243 +%META:TOPICINFO{author="MikeMannix" date="998863709" format="1.0" version="1.31"}%
  1.3244 +d328 1
  1.3245 +a328 1
  1.3246 +-- Main.MikeMannix - 26 Aug 2001 <br />	
  1.3247 +@
  1.3248 +
  1.3249 +
  1.3250 +1.30
  1.3251 +log
  1.3252 +@none
  1.3253 +@
  1.3254 +text
  1.3255 +@d1 3
  1.3256 +a3 1
  1.3257 +%META:TOPICINFO{author="PeterThoeny" date="997885781" format="1.0beta2" version="1.30"}%
  1.3258 +d173 1
  1.3259 +a173 1
  1.3260 +  <td> Table of Content of current topic. </td>
  1.3261 +d176 1
  1.3262 +a176 1
  1.3263 +  <td> Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;h2&gt;"=) are taken into account. (But not ="&lt;H2&gt;text&lt;H2&gt;"=, which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth:
  1.3264 +d328 1
  1.3265 +@
  1.3266 +
  1.3267 +
  1.3268 +1.29
  1.3269 +log
  1.3270 +@none
  1.3271 +@
  1.3272 +text
  1.3273 +@d1 1
  1.3274 +a1 1
  1.3275 +%META:TOPICINFO{author="JohnTalintyre" date="997197916" format="1.0beta2" version="1.29"}%
  1.3276 +d174 1
  1.3277 +a174 1
  1.3278 +  <td> Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;h2&gt;"=) are taken into account. Parameters are topic name, web and depth:
  1.3279 +@
  1.3280 +
  1.3281 +
  1.3282 +1.28
  1.3283 +log
  1.3284 +@none
  1.3285 +@
  1.3286 +text
  1.3287 +@d1 1
  1.3288 +a1 1
  1.3289 +%META:TOPICINFO{author="PeterThoeny" date="995873452" format="1.0beta2" version="1.28"}%
  1.3290 +d109 1
  1.3291 +a109 1
  1.3292 +  <td> Web index, e.g. list of all webs. Hidden webs are excluded, e.g. webs with a =NOSEARCHALL=on= preference variable. The ="format"= defines the format of one web item. The =$name= variable gets expanded to the name of the web.
  1.3293 +d115 7
  1.3294 +a121 1
  1.3295 +	 Example: <br> =%<nop>WEBLIST{"	* [<nop>[$name.%HOMETOPIC%]]"}%= creates a bullet list of all webs. </td>
  1.3296 +d296 17
  1.3297 +@
  1.3298 +
  1.3299 +
  1.3300 +1.27
  1.3301 +log
  1.3302 +@none
  1.3303 +@
  1.3304 +text
  1.3305 +@d1 1
  1.3306 +a1 1
  1.3307 +%META:TOPICINFO{author="PeterThoeny" date="995164458" format="1.0beta2" version="1.27"}%
  1.3308 +d53 6
  1.3309 +d68 15
  1.3310 +d302 1
  1.3311 +a302 1
  1.3312 +-- PeterThoeny - 14 Jul 2001 <br>
  1.3313 +@
  1.3314 +
  1.3315 +
  1.3316 +1.26
  1.3317 +log
  1.3318 +@none
  1.3319 +@
  1.3320 +text
  1.3321 +@d1 1
  1.3322 +a1 1
  1.3323 +%META:TOPICINFO{version="1.26" date="994871489" author="PeterThoeny" format="1.0beta2"}%
  1.3324 +d75 7
  1.3325 +a81 1
  1.3326 +  <td> Topic index of a web. Parameter is composed of the format, followed by an optional =web="Name"=. The ="format"= defines the format of one topic item; use it to create any formatting you need. The =$name= variable is expanded to the topic name; the =$web= variable is expanded to the name of the web.
  1.3327 +d84 1
  1.3328 +d88 6
  1.3329 +a93 1
  1.3330 +  <td> Web index, e.g. list of all webs. Hidden webs are excluded, e.g. webs with a =NOSEARCHALL=on= preference variable. The ="format"= defines the format of one web item. The =$name= variable is expanded to the name of the web.
  1.3331 +d131 1
  1.3332 +a131 1
  1.3333 +  <td> Server side include to IncludeTopicsAndWebPages. The parameter is composed of the page name, followed by an optional =pattern="(reg-exp)"= pair. The page name is:
  1.3334 +d147 3
  1.3335 +a149 2
  1.3336 +  <td> Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax (="---++ text"=) and HTML (="&lt;h2&gt;text&lt;h2&gt;"=) are taken into account. Parameter is composed of the topic name, followed by optional =name="value"= pairs:
  1.3337 +| *Pair:* | *Description:* | *Default:* |
  1.3338 +d154 5
  1.3339 +a158 4
  1.3340 +  <td> =%<nop>SEARCH{"str" ...}%= </td>
  1.3341 +  <td> Inline search, shows a search result embedded in a topic. Parameter is composed of the search term (enclosed in double quotes), followed by optional =name="value"= pairs: [1]
  1.3342 +| *Pair:* | *Description:* | *Default:* |
  1.3343 +| =search="food"= | Search term, (either regex or literal, depending on the =regex= parameter) | (used if initial search term is missing) |
  1.3344 +d229 8
  1.3345 +d281 1
  1.3346 +a281 1
  1.3347 +-- PeterThoeny - 25 Jun 2001 <br>
  1.3348 +@
  1.3349 +
  1.3350 +
  1.3351 +1.25
  1.3352 +log
  1.3353 +@none
  1.3354 +@
  1.3355 +text
  1.3356 +@d1 1
  1.3357 +d47 3
  1.3358 +d51 1
  1.3359 +a51 1
  1.3360 +  <td> Your Wiki username, if defined in %MAINWEB%.%WIKIUSERSTOPIC%. Same as %<nop>USERNAME% if not defined. Is <b>%WIKIUSERNAME%</b> </td>
  1.3361 +@
  1.3362 +
  1.3363 +
  1.3364 +1.24
  1.3365 +log
  1.3366 +@none
  1.3367 +@
  1.3368 +text
  1.3369 +@d114 6
  1.3370 +a119 2
  1.3371 +  <td> =%<nop>INCLUDE{"SomeTopic"}%= </td>
  1.3372 +  <td> Server side include, includes another topic. The current Wiki web is searched by default. Example: =<b>%<nop>INCLUDE{"%TWIKIWEB%.TWikiWebsTable"}%</b>= </td>
  1.3373 +d141 1
  1.3374 +a141 1
  1.3375 +| =web="Name"= <br> =web="%MAINWEB% Know"= <br> =web="all"= | Wiki web to search: A web, a list of webs separated by whitespace, or all webs =[2]= | Current web |
  1.3376 +d255 1
  1.3377 +a255 1
  1.3378 +-- PeterThoeny - 24 Mar 2001 <br>
  1.3379 +@
  1.3380 +
  1.3381 +
  1.3382 +1.23
  1.3383 +log
  1.3384 +@none
  1.3385 +@
  1.3386 +text
  1.3387 +@d70 10
  1.3388 +@
  1.3389 +
  1.3390 +
  1.3391 +1.22
  1.3392 +log
  1.3393 +@none
  1.3394 +@
  1.3395 +text
  1.3396 +@d34 3
  1.3397 +@
  1.3398 +
  1.3399 +
  1.3400 +1.21
  1.3401 +log
  1.3402 +@none
  1.3403 +@
  1.3404 +text
  1.3405 +@d121 1
  1.3406 +a121 1
  1.3407 +  <td> Inline search, shows a search result embedded in a topic. Parameter is composed of the search string, followed by optional =name="value"= pairs:
  1.3408 +d123 2
  1.3409 +a124 1
  1.3410 +| =web="Name"= <br> =web="%MAINWEB% Know"= <br> =web="all"= | Wiki web to search: A web, a list of webs separated by whitespace, or all webs =[1]= | Current web |
  1.3411 +d143 3
  1.3412 +a145 1
  1.3413 +[1] __Note__: A web can be excluded from a =web="all"= search if you define a =NOSEARCHALL=on= variable in its %WEBPREFSTOPIC%.
  1.3414 +d238 1
  1.3415 +a238 1
  1.3416 +-- PeterThoeny - 15 Mar 2001 <br>
  1.3417 +@
  1.3418 +
  1.3419 +
  1.3420 +1.20
  1.3421 +log
  1.3422 +@none
  1.3423 +@
  1.3424 +text
  1.3425 +@d1 4
  1.3426 +d138 1
  1.3427 +a138 1
  1.3428 +  <td> Get a preference value from another web then the current one. Example: To get =%<nop>WEBBGCOLOR%= of the %MAINWEB% web write =%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%=, is =<b>%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</b>= </td>
  1.3429 +d144 2
  1.3430 +d235 1
  1.3431 +a235 1
  1.3432 +-- %MAINWEB%.PeterThoeny - 01 Mar 2001 <br>
  1.3433 +@
  1.3434 +
  1.3435 +
  1.3436 +1.19
  1.3437 +log
  1.3438 +@none
  1.3439 +@
  1.3440 +text
  1.3441 +@d106 10
  1.3442 +d229 1
  1.3443 +a229 1
  1.3444 +-- %MAINWEB%.PeterThoeny - 19 Jan 2001 <br>
  1.3445 +@
  1.3446 +
  1.3447 +
  1.3448 +1.18
  1.3449 +log
  1.3450 +@none
  1.3451 +@
  1.3452 +text
  1.3453 +@d45 6
  1.3454 +d54 6
  1.3455 +d67 11
  1.3456 +a77 1
  1.3457 +  <td> Formatted GM time based on keywords (first three characters needed.) <br> Example: =%<nop>GMTIME{"day month, year - hour:min:sec"}%= is <b>%GMTIME{"day month, year - hour:min:sec"}%</b> </td>
  1.3458 +d83 1
  1.3459 +a83 1
  1.3460 +  <td> Formatted server time. Example: =%<nop>SERVERTIME{"hou:min"}%= is <b>%SERVERTIME{"hou:min"}%</b> </td>
  1.3461 +@
  1.3462 +
  1.3463 +
  1.3464 +1.17
  1.3465 +log
  1.3466 +@none
  1.3467 +@
  1.3468 +text
  1.3469 +@d97 1
  1.3470 +a97 1
  1.3471 +| =noheader="on"= | Suppress search header <br> <span style='background: #FFB0B0;'>Topics: Changed: By: </span> | Show search header |
  1.3472 +d197 1
  1.3473 +a197 1
  1.3474 +-- %MAINWEB%.PeterThoeny - 10 Nov 2000 <br>
  1.3475 +@
  1.3476 +
  1.3477 +
  1.3478 +1.16
  1.3479 +log
  1.3480 +@none
  1.3481 +@
  1.3482 +text
  1.3483 +@d78 6
  1.3484 +@
  1.3485 +
  1.3486 +
  1.3487 +1.15
  1.3488 +log
  1.3489 +@none
  1.3490 +@
  1.3491 +text
  1.3492 +@d91 1
  1.3493 +@
  1.3494 +
  1.3495 +
  1.3496 +1.14
  1.3497 +log
  1.3498 +@none
  1.3499 +@
  1.3500 +text
  1.3501 +@d15 3
  1.3502 +@
  1.3503 +
  1.3504 +
  1.3505 +1.13
  1.3506 +log
  1.3507 +@none
  1.3508 +@
  1.3509 +text
  1.3510 +@d37 1
  1.3511 +a37 1
  1.3512 +  <td> Your Wiki username, if defined in %MAINWEB%.TWikiUsers. Same as %<nop>USERNAME% if not defined. Is <b>%WIKIUSERNAME%</b> </td>
  1.3513 +d96 1
  1.3514 +a96 1
  1.3515 +[1] __Note__: A web can be excluded from a =web="all"= search if you define a =NOSEARCHALL=on= variable in its WebPreferences.
  1.3516 +@
  1.3517 +
  1.3518 +
  1.3519 +1.12
  1.3520 +log
  1.3521 +@none
  1.3522 +@
  1.3523 +text
  1.3524 +@d1 1
  1.3525 +a1 1
  1.3526 +TWiki expands the following variables enclosed in % percent signs:
  1.3527 +d7 1
  1.3528 +a7 1
  1.3529 +  <td> The base script URL of TWiki, link of Home icon in upper left corner, is <b>%WIKIHOMEURL%</b> </td>
  1.3530 +d10 1
  1.3531 +a10 1
  1.3532 +  <td> The script URL of TWiki, is <b>%SCRIPTURL%</b></td>
  1.3533 +d13 1
  1.3534 +a13 1
  1.3535 +  <td> The path of the script URL of TWiki, is <b>%SCRIPTURLPATH%</b></td>
  1.3536 +d19 1
  1.3537 +a19 1
  1.3538 +  <td> The path of the public URL of TWiki, is <b>%PUBURLPATH%</b> </td>
  1.3539 +d73 1
  1.3540 +a73 1
  1.3541 +  <td> Server side include, includes another topic. The current Wiki web is searched by default. Example: =<b>%<nop>INCLUDE{"TWiki.TWikiWebsTable"}%</b>= </td>
  1.3542 +d78 1
  1.3543 +a78 1
  1.3544 +| =web="Name"= <br> =web="Main Know"= <br> =web="all"= | Wiki web to search: A web, a list of webs separated by whitespace, or all webs =[1]= | Current web |
  1.3545 +d89 1
  1.3546 +a89 1
  1.3547 +Example: =<b>%<nop>SEARCH{"wiki" web="Main" scope="topic"}%</b>= </td>
  1.3548 +d92 1
  1.3549 +a92 1
  1.3550 +  <td> Get a preference value from another web then the current one. Example: To get =%<nop>WEBBGCOLOR%= of the Main web write =%<nop>VAR{"WEBBGCOLOR" web="Main"}%=, is =<b>%VAR{"WEBBGCOLOR" web="Main"}%</b>= </td>
  1.3551 +d158 20
  1.3552 +d187 1
  1.3553 +a187 1
  1.3554 +-- Main.PeterThoeny - 01 Nov 2000 <br>
  1.3555 +@
  1.3556 +
  1.3557 +
  1.3558 +1.11
  1.3559 +log
  1.3560 +@none
  1.3561 +@
  1.3562 +text
  1.3563 +@d90 4
  1.3564 +d160 8
  1.3565 +a167 1
  1.3566 +-- Main.PeterThoeny - 18 Sep 2000 <br>
  1.3567 +@
  1.3568 +
  1.3569 +
  1.3570 +1.10
  1.3571 +log
  1.3572 +@none
  1.3573 +@
  1.3574 +text
  1.3575 +@d123 8
  1.3576 +d149 1
  1.3577 +a149 1
  1.3578 +  <td> http-equiv meta tags for edit script. </tr><tr>
  1.3579 +@
  1.3580 +
  1.3581 +
  1.3582 +1.9
  1.3583 +log
  1.3584 +@none
  1.3585 +@
  1.3586 +text
  1.3587 +@d45 3
  1.3588 +d148 1
  1.3589 +a148 1
  1.3590 +-- Main.PeterThoeny - 17 Aug 2000 <br>
  1.3591 +@
  1.3592 +
  1.3593 +
  1.3594 +1.8
  1.3595 +log
  1.3596 +@none
  1.3597 +@
  1.3598 +text
  1.3599 +@d69 2
  1.3600 +a70 2
  1.3601 +  <td> =%<nop>INCLUDE{"file.ext"}%= </td>
  1.3602 +  <td> Server side include, includes the text of a file. The default directory is the current Wiki web. Example: =<b>%<nop>INCLUDE{"../Know/TopicName.txt"}%</b>= </td>
  1.3603 +d75 4
  1.3604 +a78 2
  1.3605 +| =web="Name"= | Specify Wiki web to search | Current web |
  1.3606 +| =scope="topic"= | Search topic name (title) | Topic text (body) |
  1.3607 +d80 1
  1.3608 +d83 1
  1.3609 +d89 2
  1.3610 +d116 4
  1.3611 +d131 12
  1.3612 +d145 1
  1.3613 +a145 1
  1.3614 +-- Main.PeterThoeny - 29 May 2000 <br>
  1.3615 +@
  1.3616 +
  1.3617 +
  1.3618 +1.7
  1.3619 +log
  1.3620 +@none
  1.3621 +@
  1.3622 +text
  1.3623 +@d37 1
  1.3624 +a37 1
  1.3625 +  <td> Your Wiki username, if defined in TWikiUsers. Same as %<nop>USERNAME% if not defined. Is <b>%WIKIUSERNAME%</b> </td>
  1.3626 +d45 5
  1.3627 +a49 2
  1.3628 +  <td> =%<nop>DATE%= </td>
  1.3629 +  <td> Todays date (local server time), is <b>%DATE%</b> </td>
  1.3630 +d51 5
  1.3631 +a55 2
  1.3632 +  <td> =%<nop>GMTIME%= </td>
  1.3633 +  <td> Todays date (GM time), is <b>%GMTIME%</b> </td>
  1.3634 +d85 1
  1.3635 +a85 1
  1.3636 +Additional variables are defined in the preferences ( site-level ( __SL__ ) in %MAINWEB%.%WIKIPREFSTOPIC%, web-level ( __WL__ ) in %WEBPREFSTOPIC% of each web, and user level ( __UL__ ) preferences in individual user topics):
  1.3637 +@
  1.3638 +
  1.3639 +
  1.3640 +1.6
  1.3641 +log
  1.3642 +@none
  1.3643 +@
  1.3644 +text
  1.3645 +@d46 4
  1.3646 +a49 1
  1.3647 +  <td> Todays date, is <b>%DATE%</b> </td>
  1.3648 +d117 1
  1.3649 +a117 1
  1.3650 +-- Main.PeterThoeny - 21 Apr 2000 <br>
  1.3651 +@
  1.3652 +
  1.3653 +
  1.3654 +1.5
  1.3655 +log
  1.3656 +@none
  1.3657 +@
  1.3658 +text
  1.3659 +@d7 1
  1.3660 +a7 1
  1.3661 +  <td> The base script URL of TWiki, link of Home icon in upper left corner is <b>%WIKIHOMEURL%</b> </td>
  1.3662 +d48 12
  1.3663 +d113 2
  1.3664 +@
  1.3665 +
  1.3666 +
  1.3667 +1.4
  1.3668 +log
  1.3669 +@none
  1.3670 +@
  1.3671 +text
  1.3672 +@d96 4
  1.3673 +@
  1.3674 +
  1.3675 +
  1.3676 +1.3
  1.3677 +log
  1.3678 +@none
  1.3679 +@
  1.3680 +text
  1.3681 +@d10 4
  1.3682 +a13 1
  1.3683 +  <td> The base script URL of TWiki, is <b>%SCRIPTURL%</b></td>
  1.3684 +d16 4
  1.3685 +a19 1
  1.3686 +  <td> The base public URL of TWiki, is <b>%PUBURL%</b> </td>
  1.3687 +d23 3
  1.3688 +@
  1.3689 +
  1.3690 +
  1.3691 +1.2
  1.3692 +log
  1.3693 +@none
  1.3694 +@
  1.3695 +text
  1.3696 +@a17 3
  1.3697 +  <td> =%<nop>WIKIWEBMASTER%= </td>
  1.3698 +  <td> The email address of the Wiki webmaster, is <b>%WIKIWEBMASTER%</b> </td>
  1.3699 +</tr><tr>
  1.3700 +d53 34
  1.3701 +@
  1.3702 +
  1.3703 +
  1.3704 +1.1
  1.3705 +log
  1.3706 +@none
  1.3707 +@
  1.3708 +text
  1.3709 +@d42 14
  1.3710 +a55 2
  1.3711 +  <td> =%<nop>INCLUDE:"file.ext"%= </td>
  1.3712 +  <td> Server side include, includes the text of a file. The default directory is the current Wiki web. Example: =<b>%<nop>INCLUDE:"../Know/TopicName.txt"%</b>= </td>
  1.3713 +@