aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api')
-rw-r--r--includes/api/ApiQueryDeletedrevs.php7
-rw-r--r--includes/api/i18n/en.json14
-rw-r--r--includes/api/i18n/qqq.json14
3 files changed, 32 insertions, 3 deletions
diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php
index 1d44df17bd9f..2bbe3d22d72d 100644
--- a/includes/api/ApiQueryDeletedrevs.php
+++ b/includes/api/ApiQueryDeletedrevs.php
@@ -31,6 +31,7 @@ use MediaWiki\Storage\NameTableAccessException;
use MediaWiki\Storage\NameTableStore;
use MediaWiki\Title\Title;
use Wikimedia\ParamValidator\ParamValidator;
+use Wikimedia\ParamValidator\TypeDef\EnumDef;
use Wikimedia\ParamValidator\TypeDef\IntegerDef;
/**
@@ -520,7 +521,11 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
'token',
'tags'
],
- ParamValidator::PARAM_ISMULTI => true
+ ParamValidator::PARAM_ISMULTI => true,
+ ApiBase::PARAM_HELP_MSG_PER_VALUE => [],
+ EnumDef::PARAM_DEPRECATED_VALUES => [
+ 'token' => true,
+ ],
],
'limit' => [
ParamValidator::PARAM_DEFAULT => 10,
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index 6f1135a45378..2cb8ba228c54 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -788,7 +788,19 @@
"apihelp-query+deletedrevs-param-excludeuser": "Don't list revisions by this user.",
"apihelp-query+deletedrevs-param-namespace": "Only list pages in this namespace.",
"apihelp-query+deletedrevs-param-limit": "The maximum amount of revisions to list.",
- "apihelp-query+deletedrevs-param-prop": "Which properties to get:\n;revid:Adds the revision ID of the deleted revision.\n;parentid:Adds the revision ID of the previous revision to the page.\n;user:Adds the user who made the revision.\n;userid:Adds the ID of the user who made the revision.\n;comment:Adds the comment of the revision.\n;parsedcomment:Adds the parsed comment of the revision.\n;minor:Tags if the revision is minor.\n;len:Adds the length (bytes) of the revision.\n;sha1:Adds the SHA-1 (base 16) of the revision.\n;content:Adds the content of the revision.\n;token:<span class=\"apihelp-deprecated\">Deprecated.</span> Gives the edit token.\n;tags:Tags for the revision.",
+ "apihelp-query+deletedrevs-param-prop": "Which properties to get:",
+ "apihelp-query+deletedrevs-paramvalue-prop-revid": "Adds the revision ID of the deleted revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-parentid": "Adds the revision ID of the previous revision to the page.",
+ "apihelp-query+deletedrevs-paramvalue-prop-user": "Adds the user who made the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-userid": "Adds the ID of the user who made the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-comment": "Adds the comment of the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-parsedcomment": "Adds the parsed comment of the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-minor": "Tags if the revision is minor.",
+ "apihelp-query+deletedrevs-paramvalue-prop-len": "Adds the length (bytes) of the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-sha1": "Adds the SHA-1 (base 16) of the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-content": "Adds the content of the revision.",
+ "apihelp-query+deletedrevs-paramvalue-prop-token": "Gives the edit token.",
+ "apihelp-query+deletedrevs-paramvalue-prop-tags": "Tags for the revision.",
"apihelp-query+deletedrevs-example-mode1": "List the last deleted revisions of the pages <kbd>Main Page</kbd> and <kbd>Talk:Main Page</kbd>, with content (mode 1).",
"apihelp-query+deletedrevs-example-mode2": "List the last 50 deleted contributions by <kbd>Bob</kbd> (mode 2).",
"apihelp-query+deletedrevs-example-mode3-main": "List the first 50 deleted revisions in the main namespace (mode 3).",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 268f820a12f0..f24cd2fa5158 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -749,7 +749,19 @@
"apihelp-query+deletedrevs-param-excludeuser": "{{doc-apihelp-param|query+deletedrevs|excludeuser}}",
"apihelp-query+deletedrevs-param-namespace": "{{doc-apihelp-param|query+deletedrevs|namespace}}",
"apihelp-query+deletedrevs-param-limit": "{{doc-apihelp-param|query+deletedrevs|limit}}",
- "apihelp-query+deletedrevs-param-prop": "{{doc-apihelp-param|query+deletedrevs|prop}}\n{{doc-important|You can translate the word \"Deprecated\", but please do not alter the <code><nowiki>class=\"apihelp-deprecated\"</nowiki></code> attribute}}",
+ "apihelp-query+deletedrevs-param-prop": "{{doc-apihelp-param|query+deletedrevs|prop}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-revid": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|revid}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-parentid": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|parentid}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-user": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|user}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-userid": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|userid}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-comment": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|comment}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-parsedcomment": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|parsedcomment}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-minor": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|minor}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-len": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|len}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-sha1": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|sha1}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-content": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|content}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-token": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|token}}",
+ "apihelp-query+deletedrevs-paramvalue-prop-tags": "{{doc-apihelp-paramvalue|query+deletedrevs|prop|tags}}",
"apihelp-query+deletedrevs-example-mode1": "{{doc-apihelp-example|query+deletedrevs}}",
"apihelp-query+deletedrevs-example-mode2": "{{doc-apihelp-example|query+deletedrevs}}",
"apihelp-query+deletedrevs-example-mode3-main": "{{doc-apihelp-example|query+deletedrevs}}",