https://bugzilla.wikimedia.org/show_bug.cgi?id=52753

       Web browser: ---
            Bug ID: 52753
           Summary: Template: default values specified in TemplateData
                    don't appear while adding a template to an article
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to