mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-14 19:27:45 +00:00
5f749c6418
Parameter names in a template can be numeric. While it makes a lot of sense to force a specific format in the TemplateData JSON (i.e. only strings), it's inconvenient and confusing if numbers are rejected for being "invalid". Effects of this patch: * The incoming JSON is allowed to contain numbers in the aliases array. * However, the API normalizes these and forces all aliases to be strings, as it was always documented. * The editor component accepts anything in the aliases array, but forces all aliases to be strings. Again, as documented. * Note that it was never possible to use numeric keys in the `params` list. This patch is only about aliases. At the moment this is a somewhat "hidden" feature. We might or might not update the documentation to officially allow numeric aliases. Bug: T298795 Change-Id: I32ea296b4520e7f21b03a1f6390db4f43b613bdd |
||
---|---|---|
.phan | ||
i18n | ||
includes | ||
lib/jquery.uls | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
jsdoc.json | ||
package-lock.json | ||
package.json | ||
Specification.md |