|
META TOPICPARENT |
name="TWikiVariables" |
VAR{"NAME" ...} -- get a preference value from another web or topic and more |
|
ignorenull="on" |
If specified, a null string ("") value is regarded as undefined. This affects whether or not the value specified by the default parameter is returned. |
"off" |
- Example 1: To get the members of TWikiAdminGroup,
%VAR{"GROUP" topic="%USERSWEB%.TWikiAdminGroup"}% , which expands to KyoungTaeKIM, KyungminLee, HoyongJeong, YonggilJo, HyunkiMoon, YongHeonAhn .
- Example 2: To get
%WEBBGCOLOR% of the Main web write %VAR{"WEBBGCOLOR" web="Main"}% , which expands to =#FFEFA6 =
|
|
< < |
- Example 3: Let's say you are writing the "foo" skin. And you want to have the users specify a string inserted in the head tag with FOOSKIN_HTML_HEAD_HOOK. That can be achived by the following:
%VARVAL{"FOOSKIN_HTML_HEAD_HOOK" default="<nop>" ignorenull="on"}%
|
> > |
- Example 3: Let's say you are writing the "foo" skin. And you want to have the users specify a string inserted in the head tag with FOOSKIN_HTML_HEAD_HOOK. That can be achived by the following:
%VAR{"FOOSKIN_HTML_HEAD_HOOK" default="<nop>" ignorenull="on"}%
|
| |