data/TWiki/VarQUERYPARAMS.txt
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
permissions -rw-r--r--
RELEASE 4.2.0 freetown
colas@0
     1
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
colas@0
     2
%META:TOPICPARENT{name="TWikiVariables"}%
colas@0
     3
#VarINCLUDE
colas@0
     4
---+++ QUERYPARAMS -- show paramaters to the query
colas@0
     5
   * Expands the parameters to the query that was used to display the page.
colas@0
     6
   * Syntax: =%<nop>QUERYPARAMS{...}%=
colas@0
     7
   * Parameters:
colas@0
     8
      * =format="..."= format string for each entry, default =$name=$value=
colas@0
     9
      * =separator="..."= separator string, default =separator="$n"= (newline)
colas@0
    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.
colas@0
    11
   * The following escape sequences are expanded in the format string:
colas@0
    12
| *Sequence:* | *Expands To:* |
colas@0
    13
| =$name= | Name of the parameter |
colas@0
    14
| =$value= | String value of the parameter. Multi-valued parameters will have a "row" for each value. |
colas@0
    15
%INCLUDE{FormatTokens}%
colas@0
    16
colas@0
    17
   * Example:
colas@0
    18
      * =%<nop>QUERYPARAMS{format="&lt;input type='hidden' name='$name' value='$value' encoding="entity" />"}%=
colas@0
    19
   * See also [[VarQUERYSTRING][QUERYSTRING]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarURLPARAM][URLPARAM]]