Changes between Version 4 and Version 5 of ParametrizedTemplatesPlugin


Ignore:
Timestamp:
Apr 14, 2015, 7:07:11 AM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged with license

Legend:

Unmodified
Added
Removed
Modified
  • ParametrizedTemplatesPlugin

    v4 v5  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Trac Parametrized Templates =
     3= Trac Parametrized Templates
    44
    5 == Description ==
     5== Description
    66
    77Create pages from templates with parameters, using a form to input the parameter values. When making a page template, you can add some parameters. When a new page is created using that template, a form will be displayed, with a field for every parameter, and the page will be created by replacing the values submitted in that form.
    88
    9 == Bugs/Feature Requests ==
     9== Bugs/Feature Requests
    1010
    1111Existing bugs and feature requests for ParametrizedTemplatesPlugin are
     
    1515[http://trac-hacks.org/newticket?component=ParametrizedTemplatesPlugin&owner=airadier new ticket].
    1616
    17 == Download ==
     17[[TicketQuery(component=ParametrizedTemplatesPlugin&group=type,format=progress)]]
     18
     19== Download
    1820
    1921Download the zipped source from [download:parametrizedtemplatesplugin here].
    2022
    21 == Source ==
     23== Source
    2224
    2325You can check out ParametrizedTemplatesPlugin from [http://trac-hacks.org/svn/parametrizedtemplatesplugin here] using Subversion, or [source:parametrizedtemplatesplugin browse the source] with Trac.
    2426
    25 == Usage ==
     27== Usage
    2628
    2729With 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.
     
    2931When the form is submitted, the page is created from the template, replacing every parameter specification in the template with the values from the form.
    3032
    31 To activate the plugin, add the following line (as usual) to trac.ini:
     33To activate the plugin, add the following line to your `trac.ini` file:
    3234
    33 {{{
    34 ...
    35 
     35{{{#!ini
    3636[components]
    3737parametrizedtemplates.* = enabled
    38 
    39 ...
    4038}}}
    4139
    42 Then create templates containing parameters. Parameter format is '''{{parameter_name, Description or title, field_type, default_value}}'''
     40Then create templates containing parameters. Parameter format is '''{{parameter_name, Description or title, field_type, default_value}}''':
    4341
    4442 * Available field types are:
     
    4745 * ''default_value'': Sets a default value for this parameter, instead of empty. If a default_value is set, ''field_type'' must be set too.
    4846
    49 
    50 === Example ===
     47=== Example
    5148
    5249An example template:
     
    6259}}}
    6360
    64 when creating a new page from that template, you'll get a form like:
     61when creating a new page from that template, you will get a form like:
    6562
    6663[[Image(screenshot.png)]]
    6764
    68 === Notes ===
     65=== Notes
    6966
    7067 * 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.
     
    7269 * The plugin will intercept when a new page is created via the traditional way (/wiki/PageName?template=TemplateName), if the page doesn't exist and the template does contain any parameters, and will redirect the user to '''/newpage/PageName?template=TemplateName''' in order to fill the form.
    7370
    74 == Recent Changes ==
     71== Recent Changes
    7572
    7673[[ChangeLog(parametrizedtemplatesplugin, 3)]]
    7774
    78 == Author/Contributors ==
     75== Author/Contributors
    7976
    8077'''Author:''' [wiki:airadier] [[BR]]
    81 '''Maintainer:''' [wiki:airadier] [[BR]]
     78'''Maintainer:''' [[Maintainer]] [[BR]]
    8279'''Contributors:'''