New task: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This form shows the following features: | |||
* default value for assignee field with magic word <pre>{{CURRENTUSER}}</pre> (wikitext and parser functions allowed, useful repositories are the following: [https://www.mediawiki.org/wiki/Help:Magic_words Magic_words] and [https://www.mediawiki.org/wiki/Extension%3aMyVariables MyVariables]) | |||
* OOUI UserInputWidget for the same field | |||
* OOUI MultilineTextInputWidget for the task field, with autogrow | |||
* subitems for the repository section | |||
* validation pattern for the url field in the repository section (repository -> properties -> url -> settings symbol near the preferred input field -> validate | |||
* default rows for the MultilineTextInputWidget inside the input config for the comments field | |||
* hidden field id-increment, with value-formula <pre>{{#idprovider-increment:}}</pre> (see [https://www.mediawiki.org/wiki/Extension:IDProvider Extension:IDProvider] used in pagename formula | |||
* pagename formula with value <pre>Tasks/<assignee>/<id-increment></pre> (this will create a page with the entered metadata or freetext with title like Tasks/User:Admin/1</pre> | |||
{{#pagepropertiesform: Task | |||
|title = Create task | |||
|action = create | |||
|edit-page = | |||
|return-page = | |||
|view = inline | |||
|popup-size = medium | |||
|css-class = | |||
|pagename-formula = Tasks/<assignee>/<id-increment> | |||
|edit-freetext = true | |||
|edit-categories = false | |||
|edit-content-model = false | |||
|default-categories = tasks | |||
|default-content-model = wikitext | |||
|layout-align = top | |||
|popup-help = true | |||
|submit-button-text = | |||
|layout = tabs | |||
|submit-button-text = | |||
|validate-button-text = | |||
}} | |||
Wikitext to render the form | |||
<pre> | |||
Line 22: | Line 62: | ||
|validate-button-text = | |validate-button-text = | ||
}} | }} | ||
</pre> | |||
The related schema can be managed here [[Special:Manage schemas]] |
Revision as of 21:15, 29 October 2023
This form shows the following features:
- default value for assignee field with magic word
{{CURRENTUSER}}
(wikitext and parser functions allowed, useful repositories are the following: Magic_words and MyVariables) - OOUI UserInputWidget for the same field
- OOUI MultilineTextInputWidget for the task field, with autogrow
- subitems for the repository section
- validation pattern for the url field in the repository section (repository -> properties -> url -> settings symbol near the preferred input field -> validate
- default rows for the MultilineTextInputWidget inside the input config for the comments field
- hidden field id-increment, with value-formula
{{#idprovider-increment:}}
(see Extension:IDProvider used in pagename formula - pagename formula with value
Tasks/<assignee>/<id-increment>
(this will create a page with the entered metadata or freetext with title like Tasks/User:Admin/1
{{#pagepropertiesform: Task |title = Create task |action = create |edit-page = |return-page = |view = inline |popup-size = medium |css-class = |pagename-formula = Tasks/<assignee>/<id-increment> |edit-freetext = true |edit-categories = false |edit-content-model = false |default-categories = tasks |default-content-model = wikitext |layout-align = top |popup-help = true |submit-button-text = |layout = tabs |submit-button-text = |validate-button-text = }}
Wikitext to render the form
{{#pagepropertiesform: Task |title = Create task |action = create |edit-page = |return-page = |view = inline |popup-size = medium |css-class = |pagename-formula = Tasks/<assignee>/<id-increment> |edit-freetext = true |edit-categories = false |edit-content-model = false |default-categories = tasks |default-content-model = wikitext |layout-align = top |popup-help = true |submit-button-text = |layout = tabs |submit-button-text = |validate-button-text = }}
The related schema can be managed here Special:Manage schemas