Last modified: 2014-07-30 21:30:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54651, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52651 - VisualEditor: Transclusion dialog should validate template parameter values using TemplateData information
VisualEditor: Transclusion dialog should validate template parameter values u...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-08 13:48 UTC by Helder
Modified: 2014-07-30 21:30 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2013-08-08 13:48:18 UTC
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).
Comment 1 James Forrester 2013-08-10 06:25:54 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links