mediawiki-extensions-Templa.../includes
thiemowmde bb7b801b64 Show much more actionable context when paramOrder is incomplete
So far we show nothing but the index in the "paramOrder" array. This
is especially useless when a parameter is missing. The index just
points to the end of the array then.

Same when an unknown parameter appears. What the user needs is not
the index but the name of the unknown parameter.

I played around with a few formats. As suggested in this patch:
 Required property "paramOrder[ "foo" ]" not found.
 Invalid value for property "paramOrder[ "foo" ]".

A possible alternative is:
 Required property "paramOrder[0] ("foo")" not found.
 Invalid value for property "paramOrder[0] ("foo")".

Bug: T340377
Change-Id: I1dbef1b6e585d5b972a0c9a373a040aee6027cf3
2023-08-21 12:52:42 +02:00
..
Api Use EventLogging::submit() to submit analytics events 2023-01-30 18:20:16 +00:00
Hooks.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 18:11:41 +00:00
TemplateDataBlob.php Clean up base class reaching into the subclass 2023-06-09 07:10:19 +00:00
TemplateDataCompressedBlob.php Clean up base class reaching into the subclass 2023-06-09 07:10:19 +00:00
TemplateDataHtmlFormatter.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 18:11:41 +00:00
TemplateDataMessageLocalizer.php Improve test coverage for HTML formatter code 2022-02-03 12:45:27 +01:00
TemplateDataNormalizer.php Split validation and normalization into separate services 2023-03-06 13:05:51 +00:00
TemplateDataStatus.php Extract serialization methods into TemplateDataStatus class 2023-03-09 11:46:49 +01:00
TemplateDataValidator.php Show much more actionable context when paramOrder is incomplete 2023-08-21 12:52:42 +02:00