attachment upload
[openafs-wiki.git] / TWiki / VarQUERYPARAMS.mdwn
1 <a name="VarINCLUDE"></a>
2
3 ### <a name="QUERYPARAMS -- show paramaters t"></a> QUERYPARAMS -- show paramaters to the query
4
5 - Expands the parameters to the query that was used to display the page.
6 - Syntax: `%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 [[ENCODE|Main/VarENCODE]] 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
13 <table border="1" cellpadding="0" cellspacing="0">
14   <tr>
15     <th bgcolor="#99CCCC"><strong> Sequence: </strong></th>
16     <th bgcolor="#99CCCC"><strong> Expands To: </strong></th>
17   </tr>
18   <tr>
19     <td><code>$name</code></td>
20     <td> Name of the parameter </td>
21   </tr>
22   <tr>
23     <td><code>$value</code></td>
24     <td> String value of the parameter. Multi-valued parameters will have a "row" for each value. </td>
25   </tr>
26 </table>
27
28 - Example:
29   - `%QUERYPARAMS{format="<input type='hidden' name='$name' value='$value' encoding="entity" />"}%`
30 - See also [[QUERYSTRING|Main/VarQUERYSTRING]], [[URLPARAM|Main/VarURLPARAM]]