Page MenuHomePhabricator

VisualEditor: Transclusion dialog should validate template parameter values using TemplateData information
Open, MediumPublicFeature

Description

If a parameter has '"type": "number"', VisualEditor should not allow the user to insert other kind of values. Alternativelly, it could just warn the user but still allow a value of the wrong type to be inserted.

This should not be restricted just to the "number" type. Other types would also benefity from some validation (e.g., if at some point we have a type "string/image-name", VE should check if the user provided the name of an existing image).


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=52652

Details

Reference
bz52651

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:00 AM
bzimport set Reference to bz52651.

I don't agree with restricting users from only entering content as the hinting suggests (the hinting may be wrong, or may restrict users too much) - this is the same reason why we allow users to add un-hinted parameters.

However, yes, we should definitely add this missing feature in soon.

Jdforrester-WMF lowered the priority of this task from High to Medium.Jan 9 2015, 10:55 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: rmoen.