Page MenuHomePhabricator

RequiredTemplateParamEditCheck should specify which parameters are missing
Open, Needs TriagePublic

Description

The experimental Suggestion for Template has missing parameters works by highlighting a template that is missing one or more "required" parameters. Currently, it just mentions that something is missing.

It should specify precisely which required parameter(s) are missing, in case there are many possible parameters.

I.e. Current output from using a plain {{autre}} at Frwiki:

image.png (1,142×270 px, 29 KB)

Notes:

  • Specifically requested via Ruwiki Discord

Event Timeline

Change #1343323 had a related patch set uploaded (by Osps7; author: Osps7):

[mediawiki/extensions/VisualEditor@master] [editcheck] Show missing required template parameters

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

The EditCheck was updated to identify and report the names of missing required template parameters instead of only indicating that required parameters are missing. The implementation adds a description method using the new i18n message, collects missing parameter names, passes them to the EditCheck action, and includes unit test coverage for the generated description.