| ||||||||
| Changed: | ||||||||
| < < |
__Si tu nivel de inglés lo permite, te agradeceríamos que editaras esta página y tradujeras algún párrafo. No debes traducir las palabras que aparecen entre símbolos de % ni las que corresponden a código HTML.__ Si tienes dudas , contacta con webmaster@omeriqueQUITAESTO.net *
| |||||||
| > > |
Si tu nivel de inglés lo permite, te agradeceríamos que editaras esta página y tradujeras algún párrafo. No debes traducir las palabras que aparecen entre símbolos de % ni las que corresponden a código HTML. Si tienes dudas , contacta con webmaster@omeriqueQUITAESTO.net
| |||||||
| TOC: No TOC in "TWiki.TWikiVariables" | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
Si tu nivel de inglés lo permite, te agradeceríamos que editaras esta página y tradujeras algún párrafo. No debes traducir las palabras que aparecen entre símbolos de % ni las que corresponden a código HTML. Si tienes dudas , contacta con webmaster@omeriqueQUITAESTO.net | |||||||
| > > |
__Si tu nivel de inglés lo permite, te agradeceríamos que editaras esta página y tradujeras algún párrafo. No debes traducir las palabras que aparecen entre símbolos de % ni las que corresponden a código HTML.__ Si tienes dudas , contacta con webmaster@omeriqueQUITAESTO.net *
| |||||||
| TOC: No TOC in "TWiki.TWikiVariables" | ||||||||
| Line: 67 to 67 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| ||||
| ||||
| ||||||||
| Added: | ||||||||
| > > |
Si tu nivel de inglés lo permite, te agradeceríamos que editaras esta página y tradujeras algún párrafo. No debes traducir las palabras que aparecen entre símbolos de % ni las que corresponden a código HTML. Si tienes dudas , contacta con webmaster@omeriqueQUITAESTO.net | |||||||
TWiki Variables | ||||||||
| ||||||||
| Line: 246 to 246 | ||||||||
|---|---|---|---|---|---|---|---|---|
[2] Note: A web can be excluded from a web="all" search if you define a NOSEARCHALL=on variable in its WebPreferences.
| ||||||||
| Added: | ||||||||
| > > |
||||||||
Preferences VariablesAdditional variables are defined in the preferences ( site-level ( SL ) in TWikiPreferences, web-level ( WL ) in WebPreferences of each web, and user level ( UL ) preferences in individual user topics): | ||||||||
| ||||||||
| Line: 218 to 218 | ||||||||
|---|---|---|---|---|---|---|---|---|
%SEARCH{"wiki" web="Main" scope="topic"}% | ||||||||
| Changed: | ||||||||
| < < |
Formatted example: %SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="| $topic | $summary |"% (displays results in a table with header - details)
| |||||||
| > > |
Formatted example: %SEARCH{"FAQ" scope="topic" nosearch="on" nototal="on" header="| *Topic: * | *Summary: * |" format="| $topic | $summary |"% (displays results in a table with header - details) %TABLE{}% variable just before the %SEARCH{}% to alter the output of a search. Example: %TABLE{ tablewidth="90%" }%
| |||||||
|
| ||||||||
| Line: 376 to 377 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
-- PeterThoeny - 13 Sep 2001 | |||||||
| > > |
-- PeterThoeny - 19 Jan 2003 | |||||||
| -- MikeMannix - 12 May 2002 | ||||||||
| ||||||||||||||||||||
| Line: 173 to 173 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
| Changed: | ||||||||||||||||||||
| < < |
Server side include to IncludeTopicsAndWebPages. Parameters are page name, and an optional pattern="(reg-exp)". The page name is:
| |||||||||||||||||||
| > > |
Server side include to IncludeTopicsAndWebPages:
| |||||||||||||||||||
| ||||||||||||||||||||
| Line: 213 to 216 | ||||||||||||||||||||
| ||||||||||||||||||||
| Changed: | ||||||||||||||||||||
| < < |
| |||||||||||||||||||
| > > |
| |||||||||||||||||||
|
| ||||||||||||||||||||
| ||||||||||||||||
| Line: 199 to 199 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%SEARCH{"text" ...}% |
Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1]
| |||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| Changed: | ||||||||||||||||
| < < |
| |||||||||||||||
| > > |
| |||||||||||||||
| ||||||||||||||||
| ||||||||
| Line: 45 to 45 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 351 to 351 | ||||||||
| ||||||||
| Added: | ||||||||
| > > |
Note: There are some more useful variables defined in the TWikiPreferences like | |||||||
Setting Preferences | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Creating Custom Variables | ||||||||
| ||||||||
| Line: 135 to 135 | ||||||||
|---|---|---|---|---|---|---|---|---|
%WEBLIST{" * [[$name.WebHome]]"}% creates a bullet list of all webs.
| ||||||||
| Changed: | ||||||||
| < < |
%WEBLIST{"" webs="Trash,public" selection="TWiki" separator=" "}% Dropdown of all public Webs + Trash Web, current Web highlighted.
| |||||||
| > > |
%WEBLIST{"<option $marker value=$qname>$name</option>" webs="Trash,public" selection="TWiki" separator=" "}% Dropdown of all public Webs + Trash Web, current Web highlighted.
| |||||||
| ||||||||
| ||||||||||
| Line: 189 to 189 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
| ||||||||||
| ||||||||
| Line: 354 to 354 | ||||||||
|---|---|---|---|---|---|---|---|---|
Setting Preferences | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| ||||||||
| Line: 33 to 33 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 47 to 47 | ||||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| ||||||||
| Line: 172 to 172 | ||||||||
|---|---|---|---|---|---|---|---|---|
%INCLUDE{"page" ...}% |
Server side include to IncludeTopicsAndWebPages. Parameters are page name, and an optional pattern="(reg-exp)". The page name is:
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
|
||||||||
| ||||||||||
| Line: 172 to 172 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
%INCLUDE{"page" ...}% |
Server side include to IncludeTopicsAndWebPages. Parameters are page name, and an optional pattern="(reg-exp)". The page name is:
| |||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
|
||||||||||
| Line: 196 to 196 | ||||||||||
%SEARCH{"text" ...}% |
Inline search, shows a search result embedded in a topic. Parameters are the search term, web, scope, order and many more: [1]
| |||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
| ||||||||||
| Line: 225 to 225 | ||||||||||
children | required |
| ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%, you may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate%METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
| ||||||||||
| Line: 348 to 348 | ||||||||||
| ||||||||||
| Changed: | ||||||||||
| < < |
||||||||||
| > > |
||||||||||
Setting Preferences | ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
Creating Custom Variables | ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
| Changed: | ||||||||||
| < < |
Example: Create a custom logo variable | |||||||||
| > > |
Example: Create a custom logo variable the TWiki web | |||||||||
|
-- PeterThoeny - 13 Sep 2001 | ||||||||||
| Changed: | ||||||||||
| < < |
-- MikeMannix - 07 Mar 2002 | |||||||||
| > > |
-- MikeMannix - 12 May 2002 | |||||||||
| ||||||||
| Line: 172 to 172 | ||||||||
|---|---|---|---|---|---|---|---|---|
%INCLUDE{"page" ...}% |
Server side include to IncludeTopicsAndWebPages. Parameters are page name, and an optional pattern="(reg-exp)". The page name is:
| |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
|
||||||||
| ||||||||||
| Line: 186 to 186 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
| ||||||||||
| Line: 366 to 366 | ||||||||||
|
-- PeterThoeny - 13 Sep 2001 | ||||||||||
| Changed: | ||||||||||
| < < |
-- MikeMannix - 23 Jan 2002 | |||||||||
| > > |
-- MikeMannix - 07 Mar 2002 | |||||||||
| ||||||||||
| Line: 200 to 200 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
| ||||||||||
TWiki Variables | ||||||||||
| Changed: | ||||||||||
| < < |
Text strings expanded on the fly to display data or system info
Overview | |||||||||
| > > |
Special text strings expand on the fly to display user data or system info | |||||||||
TWikiVariables are text strings - %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.
| ||||||||||
| Line: 212 to 210 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| Changed: | ||||||||||
| < < |
%SEARCH{"wiki" web="Main" scope="topic"}% |
|||||||||
| > > |
%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)
|
|||||||||
| ||||||||||
| Line: 221 to 221 | ||||||||||
type="topicmoved" | What sort of search is required? "topicmoved" if search for a topic that may have been moved | ||||||||||
| Changed: | ||||||||||
| < < |
"parent" if searcing for topics that have a specific parent i.e. its
| |||||||||
| > > |
"parent" if searching for topics that have a specific parent i.e. its
| |||||||||
children | required |
| ||||||||||
| Changed: | ||||||||||
| < < |
| |||||||||
| > > |
| |||||||||
Example: %METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%, you may want to use this in WebTopicViewTemplate and WebTopicNonWikiTemplate%METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%
| ||||||||||
| Line: 366 to 366 | ||||||||||
|
-- PeterThoeny - 13 Sep 2001 | ||||||||||
| Changed: | ||||||||||
| < < |
-- MikeMannix - 05 Jan 2002 | |||||||||
| > > |
-- MikeMannix - 23 Jan 2002 | |||||||||
| ||||||||
| Line: 8 to 8 | ||||||||
|---|---|---|---|---|---|---|---|---|
Overview | ||||||||
| Changed: | ||||||||
| < < |
TWikiVariables are text strings - %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.
| |||||||
| > > |
TWikiVariables are text strings - %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.
| |||||||
Predefined Variables | ||||||||
| Changed: | ||||||||
| < < |
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. | |||||||
| > > |
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.
| |||||||
| Changed: | ||||||||
| < < |
Omerique expands the following variables (enclosed in % percent signs):
| |||||||
| > > |
% percent signs):
| |||||||
|
| ||||||||
| Line: 48 to 50 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 75 to 77 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 121 to 123 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Parameters are format, separator and web:
| ||||||||
| Line: 234 to 236 | ||||||||
[1] Note: The search form uses identical names for input fields. | ||||||||
| Changed: | ||||||||
| < < |
[2] Note: A web can be excluded from a web="all" search if you define a NOSEARCHALL=on variable in its WebPreferences.
| |||||||
| > > |
[2] Note: A web can be excluded from a web="all" search if you define a NOSEARCHALL=on variable in its WebPreferences.
| |||||||
Preferences Variables | ||||||||
| Line: 349 to 351 | ||||||||
Setting Preferences | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
Creating Custom Variables | ||||||||
| Line: 363 to 366 | ||||||||
|
-- PeterThoeny - 13 Sep 2001 | ||||||||
| Changed: | ||||||||
| < < |
-- MikeMannix - 30 Nov 2001 | |||||||
| > > |
-- MikeMannix - 05 Jan 2002 | |||||||
| |||||||||||||||||||||||
| Line: 16 to 16 | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Omerique expands the following variables (enclosed in % percent signs):
| |||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||
| |||||||||||||||||||||||
| Line: 210 to 210 | |||||||||||||||||||||||
| |||||||||||||||||||||||
| Added: | |||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||
|
| |||||||||||||||||||||||
| Deleted: | |||||||||||||||||||||||
| < < |
%SEARCH{... format="..."}% |
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 Ex: %SEARCH{ "food" format="| $topic | $summary |" }%) Two paramters can be used to specify a customized search result: 1. header="..." parameter 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="| *Topic:* | *Summary:* |" 2. format="..." parameter Use the format paramter to specify the format of one search hit. Ex: format="| $topic | $summary |" Variables that can be used in the format string:
$pattern(reg-exp), specify a 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. NOTE: Sorting is nicely covered by the TablePlugin. For how-to tips and tricks, see: TWikiVariablesExamples? |
|||||||||||||||||||||
%METASEARCH{...}% |
Special search of meta data
| ||||||||||||||||||||||
| Line: 266 to 241 | |||||||||||||||||||||||
| Additional variables are defined in the preferences ( site-level ( SL ) in TWikiPreferences, web-level ( WL ) in WebPreferences of each web, and user level ( UL ) preferences in individual user topics): | |||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||
| |||||||||||||||||||||||
| Line: 377 to 352 | |||||||||||||||||||||||
| |||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||
| < < |
Customizing Variables | ||||||||||||||||||||||
| > > |
Creating Custom Variables | ||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||
| < < |
See: TWikiVariables Examples? | ||||||||||||||||||||||
| > > |
Example: Create a custom logo variable | ||||||||||||||||||||||
| -- | |||||||||||||||||||||||