Requirements
- Support a new parameter property for TemplateData, called suggestedvalues in JSON.
- Property is returned from API
- Implement the UI behind a feature flag
- Add field to edit this new property in the TemplateData editor on the parameter properties page underneath the type property.
- Give this field a label of: "Suggested values"
- Only have this property visible when the following parameter types are selected: Content, Line, String, Unknown, Number, Unbalanced wikitext. Otherwise, hide suggested values and its field.
- For input, use OOUI TagMultiselectWidget (allowArbitrary, inline input, placeholder). The items can then also include commas.
- Placeholder text: "Add value..."
- When rendering the embedded TemplateData table in an article, display the suggested values under a bold heading beneath the description, as is done for default and example.
Mock
Relevant prototype commits: