Changes between Version 3 and Version 4 of ParametrizedTemplatesPlugin


Ignore:
Timestamp:
Nov 18, 2010 11:19:18 AM (4 years ago)
Author:
airadier
Comment:

Explanation about default_value in 0.3

Legend:

Unmodified
Added
Removed
Modified
  • ParametrizedTemplatesPlugin

    v3 v4  
    2323You can check out ParametrizedTemplatesPlugin from [http://trac-hacks.org/svn/parametrizedtemplatesplugin here] using Subversion, or [source:parametrizedtemplatesplugin browse the source] with Trac. 
    2424 
    25 == Example == 
     25== Usage == 
    2626 
    2727With this plugin, it is possible to add parameters to a wiki page template, so when creating a new wiki page from this template an intermediate form is displayed, where a field is shown for each of the parameters in the template. 
     
    3939... 
    4040}}} 
     41 
     42Then create templates containing parameters. Parameter format is '''{{parameter_name, Description or title, field_type, default_value}}''' 
     43 
     44 * Available field types are: 
     45  * '''textarea''': a big text area with scrollboxes 
     46  * '''text''', by default, or if not specified, a single line text box 
     47 * ''default_value'': Sets a default value for this parameter, instead of empty. If a default_value is set, ''field_type'' must be set too. 
     48 
     49 
     50=== Example === 
    4151 
    4252An example template: 
     
    5767 
    5868=== Notes === 
    59   
    60  * Parameter format is '''{{parameter_name, Description or title, field_type}}''' 
    61  * Available field types are: 
    62   * textarea: a big text area with scrollboxes 
    63   * By default, if not specified, a single line text box 
     69 
    6470 * If a parameter is repeated over the template (same parameter name), only one entry will be shown in the form, using the description from the first ocurrence. 
    6571 * A new page can be created using the url  '''/newpage/PageName?template=TemplateName'''