Last modified: 2014-03-06 02:27:53 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 T54753, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52753 - VisualEditor: In the transclusion dialog, use TemplateData to hint the parameter's default value, if set
VisualEditor: In the transclusion dialog, use TemplateData to hint the parame...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Normal enhancement
: VE-deploy-2014-03-06
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-12 16:24 UTC by L736E
Modified: 2014-03-06 02:27 UTC (History)
4 users (show)

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


Attachments

Description L736E 2013-08-12 16:24:32 UTC
The data model for TemplateData allows the tag "default" to assign the default value for parameters which foresee it.

However, when adding a template to an article via VisualEditor, the default value is not presented inside the corresponding input field, which appears empty, nor there are automatic hints about the default value (unless who generated the TemplateData object inserted it into the textual "description" item).

I would have expected that:
* either the user is presented with the input field already pre-filled with the default value as specified inside the TemplateData description - this would improve usability
* or, if this pre-population of the input field is too complex/costly to achieve, at least the information about the "default" value is taken and highlighted using the corresponding "default" attribute from the parameter description.

You can test this on it.wiki, by trying editing a new article using VE and adding the template named "Azienda", whose "logo_dimensioni" parameter has been defined in JSON with "default":"200".

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


Navigation
Links