data/TWiki/VarQUERYPARAMS.txt
changeset 0 414e01d06fd5
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
       
     2 %META:TOPICPARENT{name="TWikiVariables"}%
       
     3 #VarINCLUDE
       
     4 ---+++ QUERYPARAMS -- show paramaters to the query
       
     5    * Expands the parameters to the query that was used to display the page.
       
     6    * Syntax: =%<nop>QUERYPARAMS{...}%=
       
     7    * Parameters:
       
     8       * =format="..."= format string for each entry, default =$name=$value=
       
     9       * =separator="..."= separator string, default =separator="$n"= (newline)
       
    10       * =encoding="..."= the encoding to apply to parameter values; see [[VarENCODE][ENCODE]] for a description of the available encodings. If this parameter is not given, no encoding is performed.
       
    11    * The following escape sequences are expanded in the format string:
       
    12 | *Sequence:* | *Expands To:* |
       
    13 | =$name= | Name of the parameter |
       
    14 | =$value= | String value of the parameter. Multi-valued parameters will have a "row" for each value. |
       
    15 %INCLUDE{FormatTokens}%
       
    16 
       
    17    * Example:
       
    18       * =%<nop>QUERYPARAMS{format="&lt;input type='hidden' name='$name' value='$value' encoding="entity" />"}%=
       
    19    * See also [[VarQUERYSTRING][QUERYSTRING]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarURLPARAM][URLPARAM]]