(Imported by WSPageSync) |
(Imported by PageSync) Tag: Metadata slot edit |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "Parameter definition" template. It is used as multiple-instance template in [[Template:Class definition]]. It should be called in the following format: | This is the "Parameter definition" template. It is used as multiple-instance template in [[Template:Class definition]]. It should be called in the following format: | ||
| Line 9: | Line 8: | ||
|Required= (optional: true) use this when the form field for this parameter should have the required attribute | |Required= (optional: true) use this when the form field for this parameter should have the required attribute | ||
|Multiple= (optional: true) use when the parameter can have multiple values (both for the property and formfield) | |Multiple= (optional: true) use when the parameter can have multiple values (both for the property and formfield) | ||
|Formfield type= (optional: value options "text", "date", "number", "checkbox", "select", "token", "ask token") defaults to "text" | |Formfield type= (optional: value options "text", "textarea", "date", "number", "checkbox", "select", "token", "ask token") defaults to "text" | ||
|Allowed values= (optional: comma-separated values or (for ask token) SMW query with round brackets) only for field types "checkbox", "select", "token", "ask token". Examples: "Applied, Notified, Reported" or "((Class::Work instruction))?Title" | |Allowed values= (optional: comma-separated values or (for ask token) SMW query with round brackets) only for field types "checkbox", "select", "token", "ask token". Examples: "Applied, Notified, Reported" or "((Class::Work instruction))?Title" | ||
|Sorting number= (optional: number) for sort order in default properties and sidebar template code | |||
|Slot= (optional: value options "ws-class-props", "ws-base-props") defaults to "ws-class-props". | |Slot= (optional: value options "ws-class-props", "ws-base-props") defaults to "ws-class-props". | ||
}} | }} | ||
| ws-base-props | |||
|---|---|---|---|
| Line 1: | Line 1: | ||
{{Base properties | |||
|Class=Application page | |||
|Title=Template:Parameter definition | |||
|Version history={{Version history item | |||
|Version number=1.0 | |||
|Version description=Initial version | |||
|Version date=2022-12-02 09:15:32 | |||
}} | |||
}} | |||
| ws-class-props | |||
| Line 1: | Line 1: | ||
{{Application page properties | |||
|Type=CSP Basis Core | |||
|Origin=CSP Basis | |||
}} | |||
Revision as of 13:46, 18 January 2023
This is the "Parameter definition" template. It is used as multiple-instance template in Template:Class definition. It should be called in the following format:
{{Parameter definition
|Name= (text) name of the parameter
|Property name= (optional: text) use this when you want to set a different property name than the parameter name
|Required= (optional: true) use this when the form field for this parameter should have the required attribute
|Multiple= (optional: true) use when the parameter can have multiple values (both for the property and formfield)
|Formfield type= (optional: value options "text", "textarea", "date", "number", "checkbox", "select", "token", "ask token") defaults to "text"
|Allowed values= (optional: comma-separated values or (for ask token) SMW query with round brackets) only for field types "checkbox", "select", "token", "ask token". Examples: "Applied, Notified, Reported" or "((Class::Work instruction))?Title"
|Sorting number= (optional: number) for sort order in default properties and sidebar template code
|Slot= (optional: value options "ws-class-props", "ws-base-props") defaults to "ws-class-props".
}}