Template:New

From cm2.liecourt.com
Revision as of 19:24, 13 May 2020 by Maintenance script (talk | contribs) (Fill database)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you want to modify this template, please modify the version on Care and then copy from there.}}

This is the New template. It should be called in the following format:

minimal version:

{{subst:New}}

additional options:

{{subst:New
|Version= <optional, default = 1.0>
|Version notes= <optional, default = 1.0 - First managed version>
|Short description= <optional>
|Parameters= <optional, see example below. Property is only for templates.>
    Parameter name1;;Description1;;Property name1
    Parameter name2;;Description2;;Property name2
    .. list all parameters as the format above. If no description or property is required, leave it empty but still include the delimiter ;;
|Feature= <optional, feature documentation page>
}}

Example (copy this to an empty template for testing)

{{subst:New
|Version=5.3
|Version notes=For testing
|Short description=Simple template with name and age parameters and properties
|Parameters=
    Naam;;<text>;;Name
    Leeftijd;;<number>;;Age
|Feature=
}}

This template can be used for a managed item in any namespace. It creates a 'noinclude' and 'includeonly' part, with some standard documentation automatically generated and the "Managed" template added.

  • Template: When the "Parameters" parameter is used, parameters are added in the part between "pre" tags. The "#set" parserfunction is added in the includeonly part, with properties if any were added.
  • Property: The "New" template does not create an "includeonly" and "noinclude" part for property pages. It only adds the "Managed" template and "Property" template. The "Property" template includes a form for setting up the property (choosing a type etc).
  • Main or Wiki: The "New" template does not create an "includeonly" and "noinclude" part, it only adds the "Managed" template.