(Created page with "<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 forma...") |
(Imported by PageSync) Tag: Metadata slot edit |
||
(One intermediate revision by the same user not shown) | |||
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 6: | Line 5: | ||
{{Parameter definition | {{Parameter definition | ||
|Name= (text) name of the parameter | |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 | |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", "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 SMW query with round brackets) only | + | |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". | ||
}} | }} | ||
Line 17: | Line 17: | ||
</noinclude><includeonly>{{#subobject:|Display title of=Parameter definition - {{{Name|}}} | </noinclude><includeonly>{{#subobject:|Display title of=Parameter definition - {{{Name|}}} | ||
|Parameter definition name={{{Name|}}} | |Parameter definition name={{{Name|}}} | ||
− | |Parameter definition sorting number={{{Sorting number|}}} | + | |Parameter definition sorting number={{{Sorting number|9999}}} |
+ | |Parameter definition property name={{{Property name|}}} | ||
|Parameter definition required={{{Required|}}} | |Parameter definition required={{{Required|}}} | ||
|Parameter definition multiple={{{Multiple|}}} | |Parameter definition multiple={{{Multiple|}}} | ||
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 | ||
+ | }} |
Latest 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". }}