Topic on Help talk:TemplateData

Template documentation editor should warn about duplicate parameter names

1
Summary last edited by Elitre (WMF) 18:02, 14 February 2018 6 years ago
Kaartic (talkcontribs)

When trying to edit parameters that already exist, the template description editor, must warn the editor in case any other parameter with new name already exists. Instead it seems to append numbers to the name which could go unnoticed.

Steps to reproduce

  • Go to Template:Em page
  • Edit the page and invoke the Template documentation editor using Manage TemplateData
  • Edit a template parameter which has the name title and change it's name to style

Expected results

Warning is displayed to the user about an already existing parameter with the same name.

Actual results

An integer is appended to the new name (e.g. style0). It could go unnoticed to the editor.

It could and has. See the infobox for the Fabergé eggs, which has a duplicate "width", once for the width of the egg and once for the image of the egg, which conflict. KDS4444 (talk) 13:48, 2 May 2017 (UTC)