This ticket splits out the less-complicated part of T200664.
We're currently not doing anything special for the follow types of template parameter:
- "content" Page content in wikitext, such as text style, links, images, etc.
- "unbalanced-wikitext" Raw wikitext that should not be treated as standalone content because it is unbalanced - for example, templates concatenating incomplete wikitext as a bigger whole, such as {{echo|before=<u>|after=</u>}}
They should be handled as MultilineTextInputWidgets, with autosize turned on (so the input grows when there's more content) and maxRows set to 10.
The fields look something like this:
Steps for testing:
- Add a template with the following TemplateData:
<templatedata> { "format": "\n{{_\n|________________ = _\n}}\n", "description": "This is a testing template to see various special fields and how they are dealt with in TemplateWizard.", "params": { "multilineThing": { "label": "A multiline field", "type": "content", "description": "A multiline field for testing." }, "name": { "label": "A simple string field for comparison", "type": "string", "description": "Some sort of name." } } } </templatedata>
- Go to a random page (or a new page) and edit it
- Click on the "TemplateWizard" button
- Add the field "a multiline field"
Expected result: Multiline field should allow for several lines. It should also expand automatically as you add lines, up to 10 rows.
This behavior can be compared to the field "A simple string field for comparison" which should only allow for 1 line of text.