From 95dc64c7a792c6beabe8366048e95f51d39f3c34 Mon Sep 17 00:00:00 2001 From: Peter Thoeny Date: Sun, 30 Jan 2000 08:45:31 +0000 Subject: none --- TWiki/TWikiVariables.mdwn | 49 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn index 1bff7a29..3d202490 100644 --- a/TWiki/TWikiVariables.mdwn +++ b/TWiki/TWikiVariables.mdwn @@ -54,7 +54,52 @@ TWiki expands the following variables enclosed in % percent signs: Todays date, is %DATE% - %INCLUDE:"file.ext"% - Server side include, includes the text of a file. The default directory is the current Wiki web. Example: %INCLUDE:"../Know/TopicName.txt"% + %INCLUDE{"file.ext"}% + Server side include, includes the text of a file. The default directory is the current Wiki web. Example: %INCLUDE{"../Know/TopicName.txt"}% + + + %SEARCH{"str" ...}% + Inline search, shows a search result embedded in a topic. Parameter is composed of the search string, followed by optional name="value" pairs: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Pair:Description:Default:
web="Name" Specify Wiki web to search Current web
scope="topic" Search topic name (title) Topic text (body)
regex="on"Regular Expression? search Literal search
casesensitive="on" Case sensitive search Ignore case
nosummary="on" Show topic title only Show topic summary
nosearch="on" Suppress search string Show search string
nototal="on" Do not show number of topics found Show number
Example: %SEARCH{"wiki" web="Main" scope="topic"}% -- cgit v1.2.3