data/TWiki/VarQUERYPARAMS.txt,v
changeset 0 414e01d06fd5
equal deleted inserted replaced
-1:000000000000 0:414e01d06fd5
       
     1 head	1.2;
       
     2 access;
       
     3 symbols;
       
     4 locks; strict;
       
     5 comment	@# @;
       
     6 
       
     7 
       
     8 1.2
       
     9 date	2008.01.22.03.21.31;	author TWikiContributor;	state Exp;
       
    10 branches;
       
    11 next	1.1;
       
    12 
       
    13 1.1
       
    14 date	2007.01.16.04.12.00;	author TWikiContributor;	state Exp;
       
    15 branches;
       
    16 next	;
       
    17 
       
    18 
       
    19 desc
       
    20 @buildrelease
       
    21 @
       
    22 
       
    23 
       
    24 1.2
       
    25 log
       
    26 @buildrelease
       
    27 @
       
    28 text
       
    29 @%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
       
    30 %META:TOPICPARENT{name="TWikiVariables"}%
       
    31 #VarINCLUDE
       
    32 ---+++ QUERYPARAMS -- show paramaters to the query
       
    33    * Expands the parameters to the query that was used to display the page.
       
    34    * Syntax: =%<nop>QUERYPARAMS{...}%=
       
    35    * Parameters:
       
    36       * =format="..."= format string for each entry, default =$name=$value=
       
    37       * =separator="..."= separator string, default =separator="$n"= (newline)
       
    38       * =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.
       
    39    * The following escape sequences are expanded in the format string:
       
    40 | *Sequence:* | *Expands To:* |
       
    41 | =$name= | Name of the parameter |
       
    42 | =$value= | String value of the parameter. Multi-valued parameters will have a "row" for each value. |
       
    43 %INCLUDE{FormatTokens}%
       
    44 
       
    45    * Example:
       
    46       * =%<nop>QUERYPARAMS{format="&lt;input type='hidden' name='$name' value='$value' encoding="entity" />"}%=
       
    47    * See also [[VarQUERYSTRING][QUERYSTRING]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarURLPARAM][URLPARAM]]
       
    48 @
       
    49 
       
    50 
       
    51 1.1
       
    52 log
       
    53 @buildrelease
       
    54 @
       
    55 text
       
    56 @d1 1
       
    57 a1 1
       
    58 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
       
    59 a3 1
       
    60 
       
    61 d10 1
       
    62 d12 5
       
    63 a16 8
       
    64    | *Sequence:* | *Expands To:* |
       
    65    | =$name= | Name of the parameter |
       
    66    | =$value= | String value of the parameter. Multi-valued parameters will have a "row" for each value. |
       
    67    | =$n= or =$n()= | New line. Use =$n()= if followed by alphanumeric character, e.g. write =Foo$n()Bar= instead of =Foo$nBar= |
       
    68    | =$nop= or =$nop()= | Is a "no operation". |
       
    69    | =$quot= | Double quote (="=) |
       
    70    | =$percnt= | Percent sign (=%=) |
       
    71    | =$dollar= | Dollar sign (=$=) |
       
    72 d18 2
       
    73 a19 2
       
    74       * =%<nop>QUERYPARAMS{format="&lt;input type='hidden' name='$name' value='$percntENCODE{$quot()$value$quot type=$quot()html$quot}$percnt' />"}%=
       
    75    * See also [[VarQUERYSTRING][QUERYSTRING]], [[#VarURLPARAM][URLPARAM]]@