Changes between Version 3 and Version 4 of ParametrizedTemplatesPlugin
- Timestamp:
- Nov 18, 2010, 10:19:18 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ParametrizedTemplatesPlugin
v3 v4 23 23 You can check out ParametrizedTemplatesPlugin from [http://trac-hacks.org/svn/parametrizedtemplatesplugin here] using Subversion, or [source:parametrizedtemplatesplugin browse the source] with Trac. 24 24 25 == Example ==25 == Usage == 26 26 27 27 With 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. … … 39 39 ... 40 40 }}} 41 42 Then 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 === 41 51 42 52 An example template: … … 57 67 58 68 === 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 64 70 * 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. 65 71 * A new page can be created using the url '''/newpage/PageName?template=TemplateName'''