Page MenuHomePhabricator

VisualEditor: In the transclusion dialog, use TemplateData to hint the parameter's default value, if set
Closed, ResolvedPublic

Description

Author: l736ewiki

Description:
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".


Version: unspecified
Severity: enhancement

Details

Reference
bz52753