API: Add the ability to flag parameter values as deprecated
commite2c949677e0f4c64e088fb0d3393bed56886cbfa
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 25 May 2017 20:07:25 +0000 (25 16:07 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 20 Jun 2017 15:41:26 +0000 (20 11:41 -0400)
tree19ceb338fda5ec92252b56ab2bf036241c390b13
parent4d94cc1432759b89b1e90b982c4e27a5157ebca3
API: Add the ability to flag parameter values as deprecated

This has a number of implications:
* A deprecation warning is automatically generated if the value is used.
* action=paraminfo can list it in a machine-readable manner.
* It is automatically flagged in the help when message-per-value mode is
  used.
* In values lists in the help, it's specially marked (currently
  strike-through).
* ApiSandbox will mark it in the widgets (currently strike-through).

Deprecation of submodules is not automatically detected here, that's
left for a later patch.

Bug: T123931
Change-Id: Idad6377063e457f9352a99df5c7cc15b1563579e
12 files changed:
RELEASE-NOTES-1.30
includes/api/ApiBase.php
includes/api/ApiHelp.php
includes/api/ApiHelpParamValueMessage.php
includes/api/ApiParamInfo.php
includes/api/ApiParse.php
includes/api/ApiQuerySearch.php
includes/api/ApiQueryUserInfo.php
includes/api/i18n/en.json
resources/src/mediawiki.special/mediawiki.special.apisandbox.css
resources/src/mediawiki.special/mediawiki.special.apisandbox.js
resources/src/mediawiki/mediawiki.apihelp.css