Page MenuHomePhabricator

[DRAFT] Adjust messages for special alias edge cases
Open, Needs TriagePublic

Description

Follow-up task to T285869: Add error handling for the undocumented parameter input

After implementing following the requirements in the above tickets, a few cases were discovered where the error messages might be confusing. This ticket updates the language of the error messages and when they are shown.

Currently possibly confusing behavior:
When an alias is used in the wikitext, the label (if existing is shown). If no label exists, then the alias (? or is it the name as in the template code) is shown. This causes:

  • If a user tries to add the alias, the duplicate error is shown instead of the alias message.
  • If a user tries to add the label, the alias instead of the duplicate error is shown.

Possible fix:

  • Always show the alias if used in the wikitext (also provides consistency is switching back and forth)
Requirements

TBD after some investigation by @ECohen_WMDE and discussion with @Lena_WMDE

Event Timeline

Change 720991 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] [WIP] Improve messages about duplicate template parameters

https://gerrit.wikimedia.org/r/720991