summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikeMannix <MikeMannix>2001-12-02 11:58:00 +0000
committerMikeMannix <MikeMannix>2001-12-02 11:58:00 +0000
commita9433b7935f70bcee0ebf52c0942e49486221292 (patch)
treed73225484a437564c08ab8a66601a40cfb3891e0
parent1e7deb59127dffababa58d316c3180914d3ca4bc (diff)
none
-rw-r--r--TWiki/TWikiVariables.mdwn1207
1 files changed, 589 insertions, 618 deletions
diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn
index 3bf52a56..869f8834 100644
--- a/TWiki/TWikiVariables.mdwn
+++ b/TWiki/TWikiVariables.mdwn
@@ -14,488 +14,450 @@ Most predefined variables return values that were either defined when TWiki was
%WIKITOOLNAME% expands the following variables (enclosed in <code>**%**</code> percent signs):
-<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #f5f5f5" width="90%"><font size="13px"><font face="sans-serif"><tr>
- <th width="160"> Variable: </th>
- <th> Expanded to: </th>
- </tr>
- <tr>
- <td><code>%<nop>WIKIHOMEURL%</nop></code></td>
- <td> The base script URL of %WIKITOOLNAME%, is the link of the Home icon in the upper left corner, is <b>%WIKIHOMEURL%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>SCRIPTURL%</nop></code></td>
- <td> The script URL of %WIKITOOLNAME%, is <b>%SCRIPTURL%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>SCRIPTURLPATH%</nop></code></td>
- <td> The path of the script URL of %WIKITOOLNAME%, is <b>%SCRIPTURLPATH%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>SCRIPTSUFFIX%</nop></code></td>
- <td> The script suffix, ex: <code>.pl</code>, <code>.cgi</code> is <b>%SCRIPTSUFFIX%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>PUBURL%</nop></code></td>
- <td> The public URL of TWiki, is <b>%PUBURL%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>PUBURLPATH%</nop></code></td>
- <td> The path of the public URL of %WIKITOOLNAME%, is <b>%PUBURLPATH%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>ATTACHURL%</nop></code></td>
- <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 <code><b>%<nop>ATTACHURL%/image.gif</nop></b></code></td>
- </tr>
- <tr>
- <td><code>%<nop>ATTACHURLPATH%</nop></code></td>
- <td> The path of the attachment URL of the current topic, is <b>%ATTACHURLPATH%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>URLPARAM{"name"}%</nop></code></td>
- <td> Returns the value of a URL parameter. Ex: <code>%<nop>URLPARAM{"skin"}%</nop></code> returns <b>print</b> for a <code>.../view/%WEB%/%TOPIC%?skin=print</code> URL. Is <b>%URLPARAM{"skin"}%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKITOOLNAME%</nop></code></td>
- <td> Name of wiki tool, is <b>%WIKITOOLNAME%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKIVERSION%</nop></code></td>
- <td> Wiki tool version is <b>%WIKIVERSION%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>USERNAME%</nop></code></td>
- <td> Your login username is <b>%USERNAME%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKINAME%</nop></code></td>
- <td> Your Wiki username. Same as %<nop>USERNAME% if not defined in the %MAINWEB%.%WIKIUSERSTOPIC% topic. Is <b>%WIKINAME%</b> </nop></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKIUSERNAME%</nop></code></td>
- <td> Your %<nop>WIKINAME% including the %MAINWEB% web name. Usefull for signatures. Is <b>%WIKIUSERNAME%</b> </nop></td>
- </tr>
- <tr>
- <td><code>%<nop>MAINWEB%</nop></code></td>
- <td> The Main web containing %MAINWEB%.%WIKIUSERSTOPIC%, %MAINWEB%.OfficeLocations and %MAINWEB%.TWikiGroups. Is <b>%MAINWEB%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>TWIKIWEB%</nop></code></td>
- <td> The web containing all documentation and configuration of %WIKITOOLNAME% is <b>%TWIKIWEB%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WEB%</nop></code></td>
- <td> The current web is <b>%WEB%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>BASEWEB%</nop></code></td>
- <td> The web name where the includes started, e.g. the web of the first topic of nested includes. Same as <code>%<nop>WEB%</nop></code> in case there is no include. </td>
- </tr>
- <tr>
- <td><code>%<nop>INCLUDINGWEB%</nop></code></td>
- <td> The web name of the topic that includes the current topic. Same as <code>%<nop>WEB%</nop></code> in case there is no include. </td>
- </tr>
- <tr>
- <td><code>%<nop>HOMETOPIC%</nop></code></td>
- <td> The home topic in each web. Is <b><span style="background:"><font color="">%HOMETOPIC%</font></span><a href="http://LOCATION/HOMETOPIC">?</a></b></td>
- </tr>
- <tr>
- <td><code>%<nop>NOTIFYTOPIC%</nop></code></td>
- <td> The notify topic in each web. Is <b><span style="background:"><font color="">%NOTIFYTOPIC%</font></span><a href="http://LOCATION/NOTIFYTOPIC">?</a></b></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKIUSERSTOPIC%</nop></code></td>
- <td> The index topic of all registered users. Is <b>%WIKIUSERSTOPIC%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKIPREFSTOPIC%</nop></code></td>
- <td> The web preferences topic. Is <b>%WIKIPREFSTOPIC%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WEBPREFSTOPIC%</nop></code></td>
- <td> The web preferences topic. Is <b>%WEBPREFSTOPIC%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>STATISTICSTOPIC%</nop></code></td>
- <td> The web statistics topic. Is <b>%STATISTICSTOPIC%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>TOPIC%</nop></code></td>
- <td> The current topic name, is <b>%TOPIC%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>BASETOPIC%</nop></code></td>
- <td> The name of the topic where the includes started, e.g. the first topic of nested includes. Same as <code>%<nop>TOPIC%</nop></code> in case there is no include. </td>
- </tr>
- <tr>
- <td><code>%<nop>INCLUDINGTOPIC%</nop></code></td>
- <td> The name of the topic that includes the current topic. Same as <code>%<nop>TOPIC%</nop></code> in case there is no include. </td>
- </tr>
- <tr>
- <td><code>%<nop>SPACEDTOPIC%</nop></code></td>
- <td> The current topic name with added spaces, for regular expression search of Ref-By, is <b>%SPACEDTOPIC%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>TOPICLIST{"format"}%</nop></code></td>
- <td> Topic index of a web. The "format" defines the format of one topic item. It may include variables: The <code>$name</code> variable gets expanded to the topic name; the <code>$web</code> variable gets expanded to the name of the web. Parameters are format, separator and web: <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
- <th bgcolor="#99CCCC"><strong>Description:</strong></th>
- <th bgcolor="#99CCCC"><strong>Default:</strong></th>
- </tr>
- <tr>
- <td><code>"format"</code></td>
- <td> Format of one line, may include <code>$name</code> and <code>$web</code> variables </td>
- <td><code>"$name"</code></td>
- </tr>
- <tr>
- <td><code>format="format"</code></td>
- <td> (Alternative to above) </td>
- <td><code>"$name"</code></td>
- </tr>
- <tr>
- <td><code>separator=", "</code></td>
- <td> line separator </td>
- <td><code>"\n"</code> (new line) </td>
- </tr>
- <tr>
- <td><code>web="Name"</code></td>
- <td> Name of web </td>
- <td> Current web </td>
- </tr>
- </table> Examples: <br /><code>%<nop>TOPICLIST{"   * $web.$name"}%</nop></code> creates a bullet list of all topics. <br /><code>%<nop>TOPICLIST{separator=", "}%</nop></code> creates a comma separated list of all topics. <br /><code>%<nop>TOPICLIST{" &amp;lt;option&amp;gt;$name&amp;lt;/option&amp;gt;"}%</nop></code> creates an option list (for drop down menus). </td>
- </tr>
- <tr>
- <td><code>%<nop>WEBLIST{"format"}%</nop></code></td>
- <td> Web index, e.g. list of all webs. Hidden webs are excluded, e.g. webs with a <code>NOSEARCHALL=on</code> preference variable. The <code>"format"</code> defines the format of one web item. The <code>$name</code> variable gets expanded to the name of the web, <code>$qname</code> gets expanded to double quoted name, <code>$marker</code> to <code>marker</code> where web matches <code>selection</code>. Parameters are format, separator and web: <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
- <th bgcolor="#99CCCC"><strong>Description:</strong></th>
- <th bgcolor="#99CCCC"><strong>Default:</strong></th>
- </tr>
- <tr>
- <td><code>"format"</code></td>
- <td> Format of one line, may include <code>$name</code> variable </td>
- <td><code>"$name"</code></td>
- </tr>
- <tr>
- <td><code>format="format"</code></td>
- <td> (Alternative to above) </td>
- <td><code>"$name"</code></td>
- </tr>
- <tr>
- <td><code>separator=", "</code></td>
- <td> line separator </td>
- <td><code>"\n"</code> (new line) </td>
- </tr>
- <tr>
- <td><code>webs="public"</code></td>
- <td> comma sep list of Web, public expands to all non-hidden </td>
- <td><code>"public"</code></td>
- </tr>
- <tr>
- <td><code>marker="selected"</code></td>
- <td> Text for <code>$marker</code> where item matches <code>selection</code>, otherwise equals <code>""</code></td>
- <td><code>"selected"</code></td>
- </tr>
- <tr>
- <td><code>selection="%<nop>WEB%"</nop></code></td>
- <td> Current value to be selected in list </td>
- <td><code>section="%<nop>WEB%"</nop></code></td>
- </tr>
- </table> Examples: <br /><code>%<nop>WEBLIST{"   * [<nop>[$name.%HOMETOPIC%]]"}%</nop></nop></code> creates a bullet list of all webs. <br /><code>%<nop>WEBLIST{"<select><option $marker="$marker" value="$qname">$name</option>" webs="Trash,public" selection="%WEB%" separator=" "}%</select></nop></code> Dropdown of all public Webs + Trash Web, current Web highlighted. </td>
- </tr>
- <tr>
- <td><code>%<nop>GMTIME%</nop></code></td>
- <td> GM time, is <b>%GMTIME%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>GMTIME{"format"}%</nop></code></td>
- <td> Formatted GM time based on time variables. <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Variable:</strong></th>
- <th bgcolor="#99CCCC"><strong>Unit:</strong></th>
- <th bgcolor="#99CCCC"><strong>Example</strong></th>
- </tr>
- <tr>
- <td> $seconds </td>
- <td> seconds </td>
- <td> 59 </td>
- </tr>
- <tr>
- <td> $minutes </td>
- <td> minutes </td>
- <td> 59 </td>
- </tr>
- <tr>
- <td> $hours </td>
- <td> hours </td>
- <td> 23 </td>
- </tr>
- <tr>
- <td> $day </td>
- <td> day of month </td>
- <td> 31 </td>
- </tr>
- <tr>
- <td> $month </td>
- <td> month in ISO format </td>
- <td> Dec </td>
- </tr>
- <tr>
- <td> $mo </td>
- <td> 2 digit month </td>
- <td> 12 </td>
- </tr>
- <tr>
- <td> $year </td>
- <td> 4 digit year </td>
- <td> 1999 </td>
- </tr>
- <tr>
- <td> $ye </td>
- <td> 2 digit year </td>
- <td> 99 </td>
- </tr>
- </table> Variables can be shortened to 3 characters. Example: <br /><code>%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%</nop></code> is <br /><b>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>SERVERTIME%</nop></code></td>
- <td> Server time, is <b>%SERVERTIME%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>SERVERTIME{"format"}%</nop></code></td>
- <td> Formatted server time. <br /> Example: <code>%<nop>SERVERTIME{"$hou:$min"}%</nop></code> is <b>%SERVERTIME{"$hou:$min"}%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>HTTP_HOST%</nop></code></td>
- <td> HTTP_HOST environment variable, is <b>%HTTP_HOST%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>REMOTE_ADDR%</nop></code></td>
- <td> REMOTE_ADDR environment variable, is <b>%REMOTE_ADDR%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>REMOTE_PORT%</nop></code></td>
- <td> REMOTE_PORT environment variable, is <b>%REMOTE_PORT%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>REMOTE_USER%</nop></code></td>
- <td> REMOTE_USER environment variable, is <b>%REMOTE_USER%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>INCLUDE{"page" ...}%</nop></code></td>
- <td> Server side include to <span style="background:"><font color="">Include Topics And Web Pages</font></span><a href="http://LOCATION/IncludeTopicsAndWebPages">?</a>. Parameters are page name, and an optional <code>pattern="(reg-exp)"</code>. The page name is: <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <td><code>"SomeTopic"</code></td>
- <td> The name of a topic located in the current web, i.e. <code>%<nop>INCLUDE{"WebNotify"}%</nop></code></td>
- </tr>
- <tr>
- <td><code>"Web.Topic"</code></td>
- <td> A topic in another web, i.e. <code>%<nop>INCLUDE{"%TWIKIWEB%.TWikiWebsTable"}%</nop></code></td>
- </tr>
- <tr>
- <td><code>"http://..."</code></td>
- <td> A full qualified URL, i.e. <code>%<nop>INCLUDE{"http://twiki.org/"}%</nop></code></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td><code>%<nop>STARTINCLUDE%</nop></code></td>
- <td> If present in included topic, start to include text from this location up to the end, or up to the location of the <code>%<nop>STOPINCLUDE%</nop></code> variable. A normal view of the topic shows everyting exept the <code>%<nop>STARTINCLUDE%</nop></code> variable itself. </td>
- </tr>
- <tr>
- <td><code>%<nop>STOPINCLUDE%</nop></code></td>
- <td> If present in included topic, stop to include text at this location and ignore the remaining text. A normal view of the topic shows everyting exept the <code>%<nop>STOPINCLUDE%</nop></code> variable itself. </td>
- </tr>
- <tr>
- <td><code>%<nop>TOC%</nop></code></td>
- <td> Table of Contents of current topic. </td>
- </tr>
- <tr>
- <td><code>%<nop>TOC{"SomeTopic" ...}%</nop></code></td>
- <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in <span style="background:"><font color="">Wiki Syntax</font></span><a href="http://LOCATION/WikiSyntax">?</a> (<code>"---++ text"</code>) and HTML (<code>"&amp;lt;h2&amp;gt;text&amp;lt;h2&amp;gt;"</code>) are taken into account. (But not <code>"&amp;lt;H2&amp;gt;text&amp;lt;/H2&amp;gt;"</code>, which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth: <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
- <th bgcolor="#99CCCC"><strong>Description:</strong></th>
- <th bgcolor="#99CCCC"><strong>Default:</strong></th>
- </tr>
- <tr>
- <td><code>"TopicName"</code></td>
- <td> topic name </td>
- <td> Current topic </td>
- </tr>
- <tr>
- <td><code>web="Name"</code></td>
- <td> Name of web </td>
- <td> Current web </td>
- </tr>
- <tr>
- <td><code>depth="2"</code></td>
- <td> Limit depth of headings shown in TOC </td>
- <td> 6 </td>
- </tr>
- </table> Examples: <code><b>%<nop>TOC{depth="2"}%</nop></b></code>, <code><b>%<nop>TOC{"TWikiDocumentation" web="%TWIKIWEB%"}%</nop></b></code></td>
- </tr>
- <tr>
- <td><code>%<nop>SEARCH{"text" ...}%</nop></code></td>
- <td> Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1] <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
- <th bgcolor="#99CCCC"><strong>Description:</strong></th>
- <th bgcolor="#99CCCC"><strong>Default:</strong></th>
- </tr>
- <tr>
- <td><code>"text"</code></td>
- <td> Search term. (Is a regular expression or literal, depending on the <code>regex</code> parameter) </td>
- <td> required </td>
- </tr>
- <tr>
- <td><code>search="text"</code></td>
- <td> (Alternative to above) </td>
- <td> N/A </td>
- </tr>
- <tr>
- <td><code>web="Name"</code><br /><code>web="%MAINWEB% Know"</code><br /><code>web="all"</code></td>
- <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. [2] </td>
- <td> Current web </td>
- </tr>
- <tr>
- <td><code>scope="topic"</code><br /><code>scope="text"</code></td>
- <td> Search topic name (title) or in the text (body) of the topic </td>
- <td> Topic text (body) </td>
- </tr>
- <tr>
- <td><code>order="topic"</code><br /><code>order="modified"</code><br /><code>order="editby"</code></td>
- <td> Sort the results of search by the topic names, last modified time, or last editor </td>
- <td> Sort by topic name </td>
- </tr>
- <tr>
- <td><code>limit="all"</code><br /><code>limit="16"</code></td>
- <td> Limit the number of results returned </td>
- <td> All results </td>
- </tr>
- <tr>
- <td><code>regex="on"</code></td>
- <td><span style="background:"><font color="">Regular Expression</font></span><a href="http://LOCATION/RegularExpression">?</a> search </td>
- <td> Literal search </td>
- </tr>
- <tr>
- <td><code>reverse="on"</code></td>
- <td> Reverse the direction of the search </td>
- <td> Ascending search </td>
- </tr>
- <tr>
- <td><code>casesensitive="on"</code></td>
- <td> Case sensitive search </td>
- <td> Ignore case </td>
- </tr>
- <tr>
- <td><code>nosummary="on"</code></td>
- <td> Show topic title only </td>
- <td> Show topic summary </td>
- </tr>
- <tr>
- <td><code>bookview="on"</code></td>
- <td><span style="background:"><font color="">Book View</font></span><a href="http://LOCATION/BookView">?</a> search, e.g. show complete topic text </td>
- <td> Show topic summary </td>
- </tr>
- <tr>
- <td><code>nosearch="on"</code></td>
- <td> Suppress search string </td>
- <td> Show search string </td>
- </tr>
- <tr>
- <td><code>noheader="on"</code></td>
- <td> Suppress search header <br /><span style="background: #FFB0B0"> <strong>Topics: Changed: By:</strong> </span></td>
- <td> Show search header </td>
- </tr>
- <tr>
- <td><code>nototal="on"</code></td>
- <td> Do not show number of topics found </td>
- <td> Show number </td>
- </tr>
- </table> Example: <code><b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</nop></b></code></td>
- </tr>
- <tr>
- <td><code>%<nop>SEARCH{... format="..."}%</nop></code></td>
- <td><strong>Control the formatting of an embedded search.</strong> By default, the search result display format is fixed: a table with rows of topic name and topic summary. Use the <code>format="..."</code> parameter to specify a custom format, typically, a bullet list or table row containing variables <br /> Ex: <code>%<nop>SEARCH{ "food" format="| $topic | $summary |" }%</nop></code>) <br /><strong>Two paramters can be used to specify a customized search result:</strong><br /><strong>1.</strong> <code>header="..."</code> parameter <br /> 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: <code>header="| <nop>*Topic:*<nop> | <nop>*Summary:*<nop> |"</nop></nop></nop></nop></code><br /><strong>2.</strong> <code>format="..."</code> parameter <br /><strong>Use the format paramter to specify the format of one search hit.</strong><br /> Ex: <code>format="| $topic | $summary |"</code><br /><strong>Variables that can be used in the format string:</strong><table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Name:</strong></th>
- <th bgcolor="#99CCCC"><strong>Expands To:</strong></th>
- </tr>
- <tr>
- <td><code>$web</code></td>
- <td> Name of the web </td>
- </tr>
- <tr>
- <td><code>$topic</code></td>
- <td> Topic name </td>
- </tr>
- <tr>
- <td><code>$locked</code></td>
- <td> LOCKED flag (if any) </td>
- </tr>
- <tr>
- <td><code>$date</code></td>
- <td> Time stamp of last topic update </td>
- </tr>
- <tr>
- <td><code>$rev</code></td>
- <td> Number of last topic revision, i.e. <code>1.4</code></td>
- </tr>
- <tr>
- <td><code>$wikiusername</code></td>
- <td> Wiki user name of last topic update, i.e. <code>%MAINWEB%.<nop>JohnSmith</nop></code></td>
- </tr>
- <tr>
- <td><code>$summary</code></td>
- <td> Topic summary </td>
- </tr>
- <tr>
- <td><code>$formfield(name)</code></td>
- <td> The field value of a form field, i.e. <code>$formfield(<span style="background:"><font color="">Topic Classification</font></span><a href="http://LOCATION/TopicClassification">?</a>)</code> would get expanded to <code>PublicFAQ</code>. This applies only to topics that have a <span style="background:"><font color="">TWiki Form</font></span><a href="http://LOCATIONTWiki/TWikiForms">?</a></td>
- </tr>
- <tr>
- <td><code>$pattern(reg-exp)</code></td>
- <td> A regular expression pattern to extract some text from a topic, i.e. <code>$pattern(.*?\*.*?Email\:\s*([^\n\r]+).*)</code> extracts the email address from a bullet of format <code>* Email: ...</code>. </td>
- </tr>
- </table><strong><em>Note:</em></strong> For <code>$pattern(reg-exp)</code>, specify a <span style="background:"><font color="">Regular Expression</font></span><a href="http://LOCATIONTWiki/RegularExpression">?</a> that scans from start to end and contains the text you want to keep in parenthesis, ex: <code>$pattern(.*?(from here.*?to here).*)</code>. 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 /><strong>NOTE:</strong> Sorting is nicely covered by the <span style="background:"><font color="">Table Plugin</font></span><a href="http://LOCATIONTWiki/TablePlugin">?</a>. <br /><strong><em>For how-to tips and tricks, see: <span style="background:"><font color="">TWiki Variables Examples</font></span><a href="http://LOCATION/TWikiVariablesExamples">?</a></em></strong></td>
- </tr>
- <tr>
- <td><code>%<nop>METASEARCH{...}%</nop></code></td>
- <td> Special search of meta data <table border="1" cellpadding="1" cellspacing="0">
- <tr>
- <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
- <th bgcolor="#99CCCC"><strong>Description:</strong></th>
- <th bgcolor="#99CCCC"><strong>Default:</strong></th>
- </tr>
- <tr>
- <td><code>type="topicmoved"</code></td>
- <td> What sort of search is required? <br /><code>"topicmoved"</code> if search for a topic that may have been moved <br /><code>"parent"</code> if searcing for topics that have a specific parent i.e. its children </td>
- <td> required </td>
- </tr>
- <tr>
- <td><code>web="%<nop>WEB%"</nop></code></td>
- <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. </td>
- <td> required </td>
- </tr>
- <tr>
- <td><code>topic="%<nop>TOPIC%"</nop></code></td>
- <td> The topic the search relates to </td>
- <td> required </td>
- </tr>
- <tr>
- <td><code>title="Title"</code></td>
- <td> Text the is pre-pended to any search results </td>
- <td> required </td>
- </tr>
- </table> Example: <code><b>%<nop>METASEARCH{type="topicmoved" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="This topic used to exist and was moved to: "}%</nop></nop></nop></b></code>, you may want to use this in <span style="background:"><font color="">Web Topic View Template</font></span><a href="http://LOCATION/WebTopicViewTemplate">?</a> and <span style="background:"><font color="">Web Topic Non Wiki Template</font></span><a href="http://LOCATION/WebTopicNonWikiTemplate">?</a><br /><code><b>%<nop>METASEARCH{type="parent" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="Children: "}%</nop></nop></nop></b></code></td>
- </tr>
- <tr>
- <td><code>%<nop>VAR{"NAME" web="Web"}%</nop></code></td>
- <td> Get a preference value from a web other then the current one. Example: To get <code>%<nop>WEBBGCOLOR%</nop></code> of the %MAINWEB% web write <code>%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</nop></code>, is <code><b>%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</b></code></td>
- </tr></font></font></table>
+<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #f5f5f5" width="90%">
+ <tr>
+ <th width="160"> Variable: </th>
+ <th> Expanded to: </th>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIHOMEURL%</nop></code></td>
+ <td> The base script URL of %WIKITOOLNAME%, is the link of the Home icon in the upper left corner, is <b>%WIKIHOMEURL%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SCRIPTURL%</nop></code></td>
+ <td> The script URL of %WIKITOOLNAME%, is <b>%SCRIPTURL%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SCRIPTURLPATH%</nop></code></td>
+ <td> The path of the script URL of %WIKITOOLNAME%, is <b>%SCRIPTURLPATH%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SCRIPTSUFFIX%</nop></code></td>
+ <td> The script suffix, ex: <code>.pl</code>, <code>.cgi</code> is <b>%SCRIPTSUFFIX%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>PUBURL%</nop></code></td>
+ <td> The public URL of TWiki, is <b>%PUBURL%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>PUBURLPATH%</nop></code></td>
+ <td> The path of the public URL of %WIKITOOLNAME%, is <b>%PUBURLPATH%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ATTACHURL%</nop></code></td>
+ <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 <code><b>%<nop>ATTACHURL%/image.gif</nop></b></code></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ATTACHURLPATH%</nop></code></td>
+ <td> The path of the attachment URL of the current topic, is <b>%ATTACHURLPATH%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>URLPARAM{"name"}%</nop></code></td>
+ <td> Returns the value of a URL parameter. Ex: <code>%<nop>URLPARAM{"skin"}%</nop></code> returns <b>print</b> for a <code>.../view/%WEB%/%TOPIC%?skin=print</code> URL. Is <b>%URLPARAM{"skin"}%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKITOOLNAME%</nop></code></td>
+ <td> Name of wiki tool, is <b>%WIKITOOLNAME%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIVERSION%</nop></code></td>
+ <td> Wiki tool version is <b>%WIKIVERSION%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>USERNAME%</nop></code></td>
+ <td> Your login username is <b>%USERNAME%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKINAME%</nop></code></td>
+ <td> Your Wiki username. Same as %<nop>USERNAME% if not defined in the %MAINWEB%.%WIKIUSERSTOPIC% topic. Is <b>%WIKINAME%</b> </nop></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIUSERNAME%</nop></code></td>
+ <td> Your %<nop>WIKINAME% including the %MAINWEB% web name. Usefull for signatures. Is <b>%WIKIUSERNAME%</b> </nop></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>MAINWEB%</nop></code></td>
+ <td> The Main web containing %MAINWEB%.%WIKIUSERSTOPIC%, %MAINWEB%.OfficeLocations and %MAINWEB%.TWikiGroups. Is <b>%MAINWEB%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>TWIKIWEB%</nop></code></td>
+ <td> The web containing all documentation and configuration of %WIKITOOLNAME% is <b>%TWIKIWEB%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WEB%</nop></code></td>
+ <td> The current web is <b>%WEB%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>BASEWEB%</nop></code></td>
+ <td> The web name where the includes started, e.g. the web of the first topic of nested includes. Same as <code>%<nop>WEB%</nop></code> in case there is no include. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>INCLUDINGWEB%</nop></code></td>
+ <td> The web name of the topic that includes the current topic. Same as <code>%<nop>WEB%</nop></code> in case there is no include. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>HOMETOPIC%</nop></code></td>
+ <td> The home topic in each web. Is <b><span style="background:"><font color="">%HOMETOPIC%</font></span><a href="http://LOCATION/HOMETOPIC">?</a></b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>NOTIFYTOPIC%</nop></code></td>
+ <td> The notify topic in each web. Is <b><span style="background:"><font color="">%NOTIFYTOPIC%</font></span><a href="http://LOCATION/NOTIFYTOPIC">?</a></b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIUSERSTOPIC%</nop></code></td>
+ <td> The index topic of all registered users. Is <b>%WIKIUSERSTOPIC%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIPREFSTOPIC%</nop></code></td>
+ <td> The web preferences topic. Is <b>%WIKIPREFSTOPIC%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WEBPREFSTOPIC%</nop></code></td>
+ <td> The web preferences topic. Is <b>%WEBPREFSTOPIC%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>STATISTICSTOPIC%</nop></code></td>
+ <td> The web statistics topic. Is <b>%STATISTICSTOPIC%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>TOPIC%</nop></code></td>
+ <td> The current topic name, is <b>%TOPIC%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>BASETOPIC%</nop></code></td>
+ <td> The name of the topic where the includes started, e.g. the first topic of nested includes. Same as <code>%<nop>TOPIC%</nop></code> in case there is no include. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>INCLUDINGTOPIC%</nop></code></td>
+ <td> The name of the topic that includes the current topic. Same as <code>%<nop>TOPIC%</nop></code> in case there is no include. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SPACEDTOPIC%</nop></code></td>
+ <td> The current topic name with added spaces, for regular expression search of Ref-By, is <b>%SPACEDTOPIC%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>TOPICLIST{"format"}%</nop></code></td>
+ <td> Topic index of a web. The "format" defines the format of one topic item. It may include variables: The <code>$name</code> variable gets expanded to the topic name; the <code>$web</code> variable gets expanded to the name of the web. Parameters are format, separator and web: <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Description:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Default:</strong></th>
+ </tr>
+ <tr>
+ <td><code>"format"</code></td>
+ <td> Format of one line, may include <code>$name</code> and <code>$web</code> variables </td>
+ <td><code>"$name"</code></td>
+ </tr>
+ <tr>
+ <td><code>format="format"</code></td>
+ <td> (Alternative to above) </td>
+ <td><code>"$name"</code></td>
+ </tr>
+ <tr>
+ <td><code>separator=", "</code></td>
+ <td> line separator </td>
+ <td><code>"\n"</code> (new line) </td>
+ </tr>
+ <tr>
+ <td><code>web="Name"</code></td>
+ <td> Name of web </td>
+ <td> Current web </td>
+ </tr>
+ </table> Examples: <br /><code>%<nop>TOPICLIST{"   * $web.$name"}%</nop></code> creates a bullet list of all topics. <br /><code>%<nop>TOPICLIST{separator=", "}%</nop></code> creates a comma separated list of all topics. <br /><code>%<nop>TOPICLIST{" &amp;lt;option&amp;gt;$name&amp;lt;/option&amp;gt;"}%</nop></code> creates an option list (for drop down menus). </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WEBLIST{"format"}%</nop></code></td>
+ <td> Web index, e.g. list of all webs. Hidden webs are excluded, e.g. webs with a <code>NOSEARCHALL=on</code> preference variable. The <code>"format"</code> defines the format of one web item. The <code>$name</code> variable gets expanded to the name of the web, <code>$qname</code> gets expanded to double quoted name, <code>$marker</code> to <code>marker</code> where web matches <code>selection</code>. Parameters are format, separator and web: <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Description:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Default:</strong></th>
+ </tr>
+ <tr>
+ <td><code>"format"</code></td>
+ <td> Format of one line, may include <code>$name</code> variable </td>
+ <td><code>"$name"</code></td>
+ </tr>
+ <tr>
+ <td><code>format="format"</code></td>
+ <td> (Alternative to above) </td>
+ <td><code>"$name"</code></td>
+ </tr>
+ <tr>
+ <td><code>separator=", "</code></td>
+ <td> line separator </td>
+ <td><code>"\n"</code> (new line) </td>
+ </tr>
+ <tr>
+ <td><code>webs="public"</code></td>
+ <td> comma sep list of Web, public expands to all non-hidden </td>
+ <td><code>"public"</code></td>
+ </tr>
+ <tr>
+ <td><code>marker="selected"</code></td>
+ <td> Text for <code>$marker</code> where item matches <code>selection</code>, otherwise equals <code>""</code></td>
+ <td><code>"selected"</code></td>
+ </tr>
+ <tr>
+ <td><code>selection="%<nop>WEB%"</nop></code></td>
+ <td> Current value to be selected in list </td>
+ <td><code>section="%<nop>WEB%"</nop></code></td>
+ </tr>
+ </table> Examples: <br /><code>%<nop>WEBLIST{"   * [<nop>[$name.%HOMETOPIC%]]"}%</nop></nop></code> creates a bullet list of all webs. <br /><code>%<nop>WEBLIST{"<select><option $marker="$marker" value="$qname">$name</option>" webs="Trash,public" selection="%WEB%" separator=" "}%</select></nop></code> Dropdown of all public Webs + Trash Web, current Web highlighted. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>GMTIME%</nop></code></td>
+ <td> GM time, is <b>%GMTIME%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>GMTIME{"format"}%</nop></code></td>
+ <td> Formatted GM time based on time variables. <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <th bgcolor="#99CCCC"><strong>Variable:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Unit:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Example</strong></th>
+ </tr>
+ <tr>
+ <td> $seconds </td>
+ <td> seconds </td>
+ <td> 59 </td>
+ </tr>
+ <tr>
+ <td> $minutes </td>
+ <td> minutes </td>
+ <td> 59 </td>
+ </tr>
+ <tr>
+ <td> $hours </td>
+ <td> hours </td>
+ <td> 23 </td>
+ </tr>
+ <tr>
+ <td> $day </td>
+ <td> day of month </td>
+ <td> 31 </td>
+ </tr>
+ <tr>
+ <td> $month </td>
+ <td> month in ISO format </td>
+ <td> Dec </td>
+ </tr>
+ <tr>
+ <td> $mo </td>
+ <td> 2 digit month </td>
+ <td> 12 </td>
+ </tr>
+ <tr>
+ <td> $year </td>
+ <td> 4 digit year </td>
+ <td> 1999 </td>
+ </tr>
+ <tr>
+ <td> $ye </td>
+ <td> 2 digit year </td>
+ <td> 99 </td>
+ </tr>
+ </table> Variables can be shortened to 3 characters. Example: <br /><code>%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%</nop></code> is <br /><b>%GMTIME{"$day $month, $year - $hour:$min:$sec"}%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SERVERTIME%</nop></code></td>
+ <td> Server time, is <b>%SERVERTIME%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SERVERTIME{"format"}%</nop></code></td>
+ <td> Formatted server time. <br /> Example: <code>%<nop>SERVERTIME{"$hou:$min"}%</nop></code> is <b>%SERVERTIME{"$hou:$min"}%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>HTTP_HOST%</nop></code></td>
+ <td> HTTP_HOST environment variable, is <b>%HTTP_HOST%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>REMOTE_ADDR%</nop></code></td>
+ <td> REMOTE_ADDR environment variable, is <b>%REMOTE_ADDR%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>REMOTE_PORT%</nop></code></td>
+ <td> REMOTE_PORT environment variable, is <b>%REMOTE_PORT%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>REMOTE_USER%</nop></code></td>
+ <td> REMOTE_USER environment variable, is <b>%REMOTE_USER%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>INCLUDE{"page" ...}%</nop></code></td>
+ <td> Server side include to <span style="background:"><font color="">Include Topics And Web Pages</font></span><a href="http://LOCATION/IncludeTopicsAndWebPages">?</a>. Parameters are page name, and an optional <code>pattern="(reg-exp)"</code>. The page name is: <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <td><code>"SomeTopic"</code></td>
+ <td> The name of a topic located in the current web, i.e. <code>%<nop>INCLUDE{"WebNotify"}%</nop></code></td>
+ </tr>
+ <tr>
+ <td><code>"Web.Topic"</code></td>
+ <td> A topic in another web, i.e. <code>%<nop>INCLUDE{"%TWIKIWEB%.TWikiWebsTable"}%</nop></code></td>
+ </tr>
+ <tr>
+ <td><code>"http://..."</code></td>
+ <td> A full qualified URL, i.e. <code>%<nop>INCLUDE{"http://twiki.org/"}%</nop></code></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>STARTINCLUDE%</nop></code></td>
+ <td> If present in included topic, start to include text from this location up to the end, or up to the location of the <code>%<nop>STOPINCLUDE%</nop></code> variable. A normal view of the topic shows everyting exept the <code>%<nop>STARTINCLUDE%</nop></code> variable itself. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>STOPINCLUDE%</nop></code></td>
+ <td> If present in included topic, stop to include text at this location and ignore the remaining text. A normal view of the topic shows everyting exept the <code>%<nop>STOPINCLUDE%</nop></code> variable itself. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>TOC%</nop></code></td>
+ <td> Table of Contents of current topic. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>TOC{"SomeTopic" ...}%</nop></code></td>
+ <td> Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in <span style="background:"><font color="">Wiki Syntax</font></span><a href="http://LOCATION/WikiSyntax">?</a> (<code>"---++ text"</code>) and HTML (<code>"&amp;lt;h2&amp;gt;text&amp;lt;h2&amp;gt;"</code>) are taken into account. (But not <code>"&amp;lt;H2&amp;gt;text&amp;lt;/H2&amp;gt;"</code>, which can be used to exclude a heading from the TOC.) Parameters are topic name, web and depth: <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Description:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Default:</strong></th>
+ </tr>
+ <tr>
+ <td><code>"TopicName"</code></td>
+ <td> topic name </td>
+ <td> Current topic </td>
+ </tr>
+ <tr>
+ <td><code>web="Name"</code></td>
+ <td> Name of web </td>
+ <td> Current web </td>
+ </tr>
+ <tr>
+ <td><code>depth="2"</code></td>
+ <td> Limit depth of headings shown in TOC </td>
+ <td> 6 </td>
+ </tr>
+ </table> Examples: <code><b>%<nop>TOC{depth="2"}%</nop></b></code>, <code><b>%<nop>TOC{"TWikiDocumentation" web="%TWIKIWEB%"}%</nop></b></code></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>SEARCH{"text" ...}%</nop></code></td>
+ <td> Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1] <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Description:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Default:</strong></th>
+ </tr>
+ <tr>
+ <td><code>"text"</code></td>
+ <td> Search term. (Is a regular expression or literal, depending on the <code>regex</code> parameter) </td>
+ <td> required </td>
+ </tr>
+ <tr>
+ <td><code>search="text"</code></td>
+ <td> (Alternative to above) </td>
+ <td> N/A </td>
+ </tr>
+ <tr>
+ <td><code>web="Name"</code><br /><code>web="%MAINWEB% Know"</code><br /><code>web="all"</code></td>
+ <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. [2] </td>
+ <td> Current web </td>
+ </tr>
+ <tr>
+ <td><code>scope="topic"</code><br /><code>scope="text"</code></td>
+ <td> Search topic name (title) or in the text (body) of the topic </td>
+ <td> Topic text (body) </td>
+ </tr>
+ <tr>
+ <td><code>order="topic"</code><br /><code>order="modified"</code><br /><code>order="editby"</code></td>
+ <td> Sort the results of search by the topic names, last modified time, or last editor </td>
+ <td> Sort by topic name </td>
+ </tr>
+ <tr>
+ <td><code>limit="all"</code><br /><code>limit="16"</code></td>
+ <td> Limit the number of results returned </td>
+ <td> All results </td>
+ </tr>
+ <tr>
+ <td><code>regex="on"</code></td>
+ <td><span style="background:"><font color="">Regular Expression</font></span><a href="http://LOCATION/RegularExpression">?</a> search </td>
+ <td> Literal search </td>
+ </tr>
+ <tr>
+ <td><code>reverse="on"</code></td>
+ <td> Reverse the direction of the search </td>
+ <td> Ascending search </td>
+ </tr>
+ <tr>
+ <td><code>casesensitive="on"</code></td>
+ <td> Case sensitive search </td>
+ <td> Ignore case </td>
+ </tr>
+ <tr>
+ <td><code>nosummary="on"</code></td>
+ <td> Show topic title only </td>
+ <td> Show topic summary </td>
+ </tr>
+ <tr>
+ <td><code>bookview="on"</code></td>
+ <td><span style="background:"><font color="">Book View</font></span><a href="http://LOCATION/BookView">?</a> search, e.g. show complete topic text </td>
+ <td> Show topic summary </td>
+ </tr>
+ <tr>
+ <td><code>nosearch="on"</code></td>
+ <td> Suppress search string </td>
+ <td> Show search string </td>
+ </tr>
+ <tr>
+ <td><code>noheader="on"</code></td>
+ <td> Suppress search header <br /><span style="background: #FFB0B0"> <strong>Topics: Changed: By:</strong> </span></td>
+ <td> Show search header </td>
+ </tr>
+ <tr>
+ <td><code>nototal="on"</code></td>
+ <td> Do not show number of topics found </td>
+ <td> Show number </td>
+ </tr>
+ <tr>
+ <td><code><b>format="..."</b></code></td>
+ <td> Flexible custom result formatting: see <strong><span style="background:"><font color="">Formatted Search</font></span><a href="http://LOCATION/FormattedSearch">?</a></strong> for usage </td>
+ <td> Results in table </td>
+ </tr>
+ </table> Example: <code><b>%<nop>SEARCH{"wiki" web="%MAINWEB%" scope="topic"}%</nop></b></code></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>METASEARCH{...}%</nop></code></td>
+ <td> Special search of meta data <table border="1" cellpadding="1" cellspacing="0">
+ <tr>
+ <th bgcolor="#99CCCC"><strong>Parameter:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Description:</strong></th>
+ <th bgcolor="#99CCCC"><strong>Default:</strong></th>
+ </tr>
+ <tr>
+ <td><code>type="topicmoved"</code></td>
+ <td> What sort of search is required? <br /><code>"topicmoved"</code> if search for a topic that may have been moved <br /><code>"parent"</code> if searcing for topics that have a specific parent i.e. its children </td>
+ <td> required </td>
+ </tr>
+ <tr>
+ <td><code>web="%<nop>WEB%"</nop></code></td>
+ <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. </td>
+ <td> required </td>
+ </tr>
+ <tr>
+ <td><code>topic="%<nop>TOPIC%"</nop></code></td>
+ <td> The topic the search relates to </td>
+ <td> required </td>
+ </tr>
+ <tr>
+ <td><code>title="Title"</code></td>
+ <td> Text the is pre-pended to any search results </td>
+ <td> required </td>
+ </tr>
+ </table> Example: <code><b>%<nop>METASEARCH{type="topicmoved" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="This topic used to exist and was moved to: "}%</nop></nop></nop></b></code>, you may want to use this in <span style="background:"><font color="">Web Topic View Template</font></span><a href="http://LOCATION/WebTopicViewTemplate">?</a> and <span style="background:"><font color="">Web Topic Non Wiki Template</font></span><a href="http://LOCATION/WebTopicNonWikiTemplate">?</a><br /><code><b>%<nop>METASEARCH{type="parent" web="%<nop>WEB%" topic="%<nop>TOPIC%" title="Children: "}%</nop></nop></nop></b></code></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>VAR{"NAME" web="Web"}%</nop></code></td>
+ <td> Get a preference value from a web other then the current one. Example: To get <code>%<nop>WEBBGCOLOR%</nop></code> of the %MAINWEB% web write <code>%<nop>VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</nop></code>, is <code><b>%VAR{"WEBBGCOLOR" web="%MAINWEB%"}%</b></code></td>
+ </tr>
+</table>
> [1]
>
@@ -509,148 +471,157 @@ Most predefined variables return values that were either defined when TWiki was
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):
-<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #f5f5f5" width="90%"><font size="13px"><font face="sans-serif"><tr>
- <th width="160"> Variable: </th>
- <th> Level: </th>
- <th> What: </th>
- </tr>
- <tr>
- <td><code>%<nop>WIKIWEBMASTER%</nop></code></td>
- <td><strong><em>SL</em></strong></td>
- <td> Webmaster email address (sender of email notifications) , is <b>%WIKIWEBMASTER%</b></td>
- </tr>
- <tr>
- <td><code>%<nop>WIKIWEBLIST%</nop></code></td>
- <td><strong><em>SL</em></strong></td>
- <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
- </tr>
- <tr>
- <td><code>%<nop>WEBTOPICLIST%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> Common links of web (second line of topics) </td>
- </tr>
- <tr>
- <td><code>%<nop>WEBCOPYRIGHT%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
- <td> Copyright notice (bottom right corner of topics) </td>
- </tr>
- <tr>
- <td><code>%<nop>WEBBGCOLOR%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> Background color of web </td>
- </tr>
- <tr>
- <td><code>%<nop>NOSEARCHALL%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> Exclude web from a <code>web="all"</code> search (set variable to <code>on</code> for hidden webs) </td>
- </tr>
- <tr>
- <td><code>%<nop>NEWTOPICBGCOLOR%</nop></code></td>
- <td><strong><em>SL</em></strong> , <em>UL</em></td>
- <td> Background color of non existing topic. ( <strong><em>UL</em></strong> needs authentication for topic views ) </td>
- </tr>
- <tr>
- <td><code>%<nop>NEWTOPICFONTCOLOR%</nop></code></td>
- <td><strong><em>SL</em></strong> , <em>UL</em></td>
- <td> Font color of non existing topic. ( <strong><em>UL</em></strong> needs authentication for topic views ) </td>
- </tr>
- <tr>
- <td><code>%<nop>EDITBOXWIDTH%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> Horizontal size of edit box, is <b> <code>%EDITBOXWIDTH%</code> </b></td>
- </tr>
- <tr>
- <td><code>%<nop>EDITBOXHEIGHT%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> Vertical size of edit box, is <b> <code>%EDITBOXHEIGHT%</code> </b></td>
- </tr>
- <tr>
- <td><code>%<nop>RELEASEEDITLOCKCHECKBOX%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> Default state of the "Release edit lock" (<span style="background:"><font color="">Unlock Topic</font></span><a href="http://LOCATION/UnlockTopic">?</a>) check box in preview. Checkbox is initially checked if <code>Set RELEASEEDITLOCKCHECKBOX = checked="checked"</code>, or unchecked if empty. If checked, make sure to click on <u>Edit</u> to do more changes; do <strong>not</strong> go back in your browser to the edit page, or you risk that someone else will edit the topic at the same time! Value is: <b><code>%RELEASEEDITLOCKCHECKBOX%</code></b></td>
- </tr>
- <tr>
- <td><code>%<nop>DONTNOTIFYCHECKBOX%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> Default state of the "Minor Changes, Don't Notify" (<span style="background:"><font color="">Dont Notify</font></span><a href="http://LOCATION/DontNotify">?</a>) check box in preview. Check box is initially checked if <code>Set DONTNOTIFYCHECKBOX = checked="checked"</code>, or unchecked if empty. Value is: <b><code>%DONTNOTIFYCHECKBOX%</code></b></td>
- </tr>
- <tr>
- <td><code>%<nop>ATTACHLINKBOX%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> Default state of the link check box in the attach file page. Check box is initially checked if value is set to <code>CHECKED</code> , unchecked if empty. If checked, a link is created to the attached file at the end of the topic. Value is: <b><code>%ATTACHLINKBOX%</code></b></td>
- </tr>
- <tr>
- <td><code>%<nop>HTTP_EQUIV_ON_VIEW%</nop></code></td>
- <td><strong><em>SL</em></strong></td>
- <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
- </tr>
- <tr>
- <td><code>%<nop>HTTP_EQUIV_ON_EDIT%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> http-equiv meta tags for edit script. </td>
- </tr>
- <tr>
- <td><code>%<nop>HTTP_EQUIV_ON_PREVIEW%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
- <td> http-equiv meta tags for preview script. </td>
- </tr>
- <tr>
- <td><code>%<nop>DENYWEBCHANGE%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> List of users and groups who are <strong>not allowed</strong> to change topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>ALLOWWEBCHANGE%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> List of users and groups who are <strong>allowed</strong> to change topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>DENYTOPICCHANGE%</nop></code></td>
- <td><strong><em>(any topic)</em></strong></td>
- <td> List of users and groups who are <strong>not allowed</strong> to change the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>ALLOWTOPICCHANGE%</nop></code></td>
- <td><strong><em>(any topic)</em></strong></td>
- <td> List of users and groups who are <strong>allowed</strong> to change the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>DENYWEBRENAME%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> List of users and groups who are <strong>not allowed</strong> to rename topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>ALLOWWEBRENAME%</nop></code></td>
- <td><strong><em>WL</em></strong></td>
- <td> List of users and groups who are <strong>allowed</strong> to rename topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>DENYTOPICRENAME%</nop></code></td>
- <td><strong><em>(any topic)</em></strong></td>
- <td> List of users and groups who are <strong>not allowed</strong> to rename the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td><code>%<nop>ALLOWTOPICRENAME%</nop></code></td>
- <td><strong><em>(any topic)</em></strong></td>
- <td> List of users and groups who are <strong>allowed</strong> to rename the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
- </tr>
- <tr>
- <td>
- <p>
- </p>
- </td>
- <td><code>%<nop>FINALPREFERENCES%</nop></code></td>
- <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
- <td> List of preferences that are not allowed to be overridden by next level preferences</td>
- </tr></font></font></table>
+<table align="center" border="1" cellpadding="2" cellspacing="0" style="background-color: #f5f5f5" width="90%">
+ <tr>
+ <th width="160"> Variable: </th>
+ <th> Level: </th>
+ <th> What: </th>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIWEBMASTER%</nop></code></td>
+ <td><strong><em>SL</em></strong></td>
+ <td> Webmaster email address (sender of email notifications) , is <b>%WIKIWEBMASTER%</b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WIKIWEBLIST%</nop></code></td>
+ <td><strong><em>SL</em></strong></td>
+ <td> List of %WIKITOOLNAME% webs (in upper right corner of topics) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WEBTOPICLIST%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> Common links of web (second line of topics) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WEBCOPYRIGHT%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
+ <td> Copyright notice (bottom right corner of topics) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>WEBBGCOLOR%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> Background color of web </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>NOSEARCHALL%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> Exclude web from a <code>web="all"</code> search (set variable to <code>on</code> for hidden webs) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>NEWTOPICBGCOLOR%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <em>UL</em></td>
+ <td> Background color of non existing topic. ( <strong><em>UL</em></strong> needs authentication for topic views ) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>NEWTOPICFONTCOLOR%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <em>UL</em></td>
+ <td> Font color of non existing topic. ( <strong><em>UL</em></strong> needs authentication for topic views ) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>EDITBOXWIDTH%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> Horizontal size of edit box, is <b> <code>%EDITBOXWIDTH%</code> </b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>EDITBOXHEIGHT%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> Vertical size of edit box, is <b> <code>%EDITBOXHEIGHT%</code> </b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>RELEASEEDITLOCKCHECKBOX%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> Default state of the "Release edit lock" (<span style="background:"><font color="">Unlock Topic</font></span><a href="http://LOCATION/UnlockTopic">?</a>) check box in preview. Checkbox is initially checked if <code>Set RELEASEEDITLOCKCHECKBOX = checked="checked"</code>, or unchecked if empty. If checked, make sure to click on <u>Edit</u> to do more changes; do <strong>not</strong> go back in your browser to the edit page, or you risk that someone else will edit the topic at the same time! Value is: <b><code>%RELEASEEDITLOCKCHECKBOX%</code></b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>DONTNOTIFYCHECKBOX%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> Default state of the "Minor Changes, Don't Notify" (<span style="background:"><font color="">Dont Notify</font></span><a href="http://LOCATION/DontNotify">?</a>) check box in preview. Check box is initially checked if <code>Set DONTNOTIFYCHECKBOX = checked="checked"</code>, or unchecked if empty. Value is: <b><code>%DONTNOTIFYCHECKBOX%</code></b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ATTACHLINKBOX%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> Default state of the link check box in the attach file page. Check box is initially checked if value is set to <code>CHECKED</code> , unchecked if empty. If checked, a link is created to the attached file at the end of the topic. Value is: <b><code>%ATTACHLINKBOX%</code></b></td>
+ </tr>
+ <tr>
+ <td><code>%<nop>HTTP_EQUIV_ON_VIEW%</nop></code></td>
+ <td><strong><em>SL</em></strong></td>
+ <td> http-equiv meta tags for view, rdiff, attach, search* scripts. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>HTTP_EQUIV_ON_EDIT%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> http-equiv meta tags for edit script. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>HTTP_EQUIV_ON_PREVIEW%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>UL</em></strong></td>
+ <td> http-equiv meta tags for preview script. </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>DENYWEBCHANGE%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> List of users and groups who are <strong>not allowed</strong> to change topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ALLOWWEBCHANGE%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> List of users and groups who are <strong>allowed</strong> to change topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>DENYTOPICCHANGE%</nop></code></td>
+ <td><strong><em>(any topic)</em></strong></td>
+ <td> List of users and groups who are <strong>not allowed</strong> to change the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ALLOWTOPICCHANGE%</nop></code></td>
+ <td><strong><em>(any topic)</em></strong></td>
+ <td> List of users and groups who are <strong>allowed</strong> to change the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>DENYWEBRENAME%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> List of users and groups who are <strong>not allowed</strong> to rename topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ALLOWWEBRENAME%</nop></code></td>
+ <td><strong><em>WL</em></strong></td>
+ <td> List of users and groups who are <strong>allowed</strong> to rename topics in the %WIKITOOLNAME% web. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>DENYTOPICRENAME%</nop></code></td>
+ <td><strong><em>(any topic)</em></strong></td>
+ <td> List of users and groups who are <strong>not allowed</strong> to rename the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td><code>%<nop>ALLOWTOPICRENAME%</nop></code></td>
+ <td><strong><em>(any topic)</em></strong></td>
+ <td> List of users and groups who are <strong>allowed</strong> to rename the current topic. (More in <span style="background:"><font color="">TWiki Access Control</font></span><a href="http://LOCATION/TWikiAccessControl">?</a>) </td>
+ </tr>
+ <tr>
+ <td>
+ <p>
+ </p>
+ </td>
+ <td><code>%<nop>FINALPREFERENCES%</nop></code></td>
+ <td><strong><em>SL</em></strong> , <strong><em>WL</em></strong></td>
+ <td> List of preferences that are not allowed to be overridden by next level preferences</td>
+ </tr>
+</table>
## <a name="Setting_Preferences"> Setting Preferences </a>
* 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:_**
* <code>**Set VARIABLENAME = value**</code>
-## <a name="Customizing_Variables"> Customizing Variables </a>
+## <a name="Creating_Custom_Variables"> Creating Custom Variables </a>
-**_See:_** [[TWikiVariablesExamples]]
+* 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.
+
+> **Example: Create a custom logo variable**
+>
+> <br />
+>
+> * To place a logo anywhere in a web by typing <code>**%MYLOGO%**</code>, simply define the variable on the web's [[WebPreferences]] page. You also have to upload `logo.gif` - this can be done by [[FileAttachment]] to `LogoTopic` (any topic name you choose):
+> * <code>**Set MYLOGO = %PUBURL%/%MAINWEB%/LogoTopic/logo.gif**</code>
-- [[PeterThoeny]] - 13 Sep 2001 <br /> -- [[MikeMannix]] - 30 Nov 2001