| |
TWikiVariables 69 - 2003-09-29 - PeterThoeny
|
|
META TOPICPARENT |
name="WebHome" |
| | 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: %ICON{"pdf"}% returns |
%URLPARAM{"name"}% | | |
< < | 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: | | > > | 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: | | |
Parameter: |
Description: |
Default: |
"name" |
The name of a URL parameter |
required |
default="..." |
Default value in case parameter is empty or missing |
empty string |
| |
noheader="on" |
Suppress search header Topics: Changed: By: |
Show search header |
nototal="on" |
Do not show number of topics found |
Show number |
header="..." format="..." |
Custom format results: see FormattedSearch for usage, variables & examples |
Results in table |
| |
> > |
multiple="on" |
Multiple hits per topic. Each hit can be formatted. The last token is used in case of a regular expression ";" and search |
Only one hit per topic |
separator=", " |
Line separator between hits |
Newline "$n" |
| | Regular example: %SEARCH{"wiki" web="Main" scope="topic"}%
Formatted example: %SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="| $topic | $summary |"% (displays results in a table with header - details)
If the TWiki:Plugins.TablePlugin is installed, you may set a %TABLE{}% variable just before the %SEARCH{}% to alter the output of a search. Example: %TABLE{ tablewidth="90%" }% |
|
TWikiVariables 68 - 2003-08-29 - PeterThoeny
|
|
META TOPICPARENT |
name="WebHome" |
| |
%URLPARAM{"name"}% |
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: |
| |
< < |
Parameter: |
Description: |
"name" |
The name of a URL parameter |
newline="<br />" |
Convert newlines to other delimiters |
| > > |
Parameter: |
Description: |
Default:<-- --> |
default="..." |
Default value in case parameter is empty or missing |
empty string |
newline="<br />" |
Convert newlines to other delimiters |
no conversion |
"name" |
The name of a URL parameter |
required |
| | Example: %URLPARAM{"skin"}% returns print for a .../view/TWiki/TWikiVariables?skin=print URL. Is kubrick.nat,nat, pattern
|
|
|
TWikiVariables 67 - 2003-08-23 - PeterThoeny
|
|
META TOPICPARENT |
name="WebHome" |
| |
"http://..." |
A full qualified URL, i.e. %INCLUDE{"http://twiki.org/"}% |
|
pattern="..." |
A RegularExpression pattern to include a subset of a topic or page |
none |
rev="1.2" |
Include a previous topic revision; N/A for URLs |
top revision |
| |
> > |
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 |
| | |
|
TWikiVariables 66 - 2003-08-23 - PeterThoeny
|
|
META TOPICPARENT |
name="WebHome" |
| | 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: %ICON{"pdf"}% returns |
%URLPARAM{"name"}% | | |
< < | Returns the value of a URL parameter. Note that there is a low risk that this variable could be misused for cross-scripting. Ex: %URLPARAM{"skin"}% returns print for a .../view/TWiki/TWikiVariables?skin=print URL. Is kubrick.nat,nat, pattern | | > > | | 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:
Parameter: |
Description: |
"name" |
The name of a URL parameter |
newline="<br />" |
Convert newlines to other delimiters |
Example: %URLPARAM{"skin"}% returns print for a .../view/TWiki/TWikiVariables?skin=print URL. Is kubrick.nat,nat, pattern
| |
%URLENCODE{"string"}% |
Encodes a string for use as a URL parameter. Ex: %URLENCODE{"spaced name"}% returns spaced%20name |
|
|
|
|
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiVariables
|
|
| |