(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 WSPageSync) |
||
Line 6: | Line 6: | ||
{{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", "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" |
|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|}}} |
Revision as of 08:34, 20 April 2022
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", "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" |Slot= (optional: value options "ws-class-props", "ws-base-props") defaults to "ws-class-props". }}