aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryRevisionsBase.php
diff options
context:
space:
mode:
authorumherirrender <umherirrender_de.wp@web.de>2015-07-02 20:29:32 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2015-07-03 05:53:06 +0000
commit446b83bd18bef68a097125e629943f7ecc1009c3 (patch)
tree84fb3491a0706cced98cbe9b63110506eb632112 /includes/api/ApiQueryRevisionsBase.php
parentdfbbf90b249a3d80ff91a2b52d002812e42991a1 (diff)
downloadmediawikicore-446b83bd18bef68a097125e629943f7ecc1009c3.tar.gz
mediawikicore-446b83bd18bef68a097125e629943f7ecc1009c3.zip
API: Use message-per-value for apihelp-query+revisions+base-param-prop
Use message-per-value for message apihelp-query+revisions+base-param-prop to allow smaller strings for translation and to add a parameter for the contentmodel for prop=parsetree, as already done for action=parse&prop=parsetree. Each prop in a message also will show up a new parameter on the help page without the adjust of the translation (but than in english instead of fully skip it). Change-Id: I8aaa061cb59ec788f8f8e09e8088ba1064e3aa1e
Diffstat (limited to 'includes/api/ApiQueryRevisionsBase.php')
-rw-r--r--includes/api/ApiQueryRevisionsBase.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/api/ApiQueryRevisionsBase.php b/includes/api/ApiQueryRevisionsBase.php
index 76da0db82662..d57dc3ccd908 100644
--- a/includes/api/ApiQueryRevisionsBase.php
+++ b/includes/api/ApiQueryRevisionsBase.php
@@ -441,6 +441,22 @@ abstract class ApiQueryRevisionsBase extends ApiQueryGeneratorBase {
'parsetree',
),
ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-prop',
+ ApiBase::PARAM_HELP_MSG_PER_VALUE => array(
+ 'ids' => 'apihelp-query+revisions+base-paramvalue-prop-ids',
+ 'flags' => 'apihelp-query+revisions+base-paramvalue-prop-flags',
+ 'timestamp' => 'apihelp-query+revisions+base-paramvalue-prop-timestamp',
+ 'user' => 'apihelp-query+revisions+base-paramvalue-prop-user',
+ 'userid' => 'apihelp-query+revisions+base-paramvalue-prop-userid',
+ 'size' => 'apihelp-query+revisions+base-paramvalue-prop-size',
+ 'sha1' => 'apihelp-query+revisions+base-paramvalue-prop-sha1',
+ 'contentmodel' => 'apihelp-query+revisions+base-paramvalue-prop-contentmodel',
+ 'comment' => 'apihelp-query+revisions+base-paramvalue-prop-comment',
+ 'parsedcomment' => 'apihelp-query+revisions+base-paramvalue-prop-parsedcomment',
+ 'content' => 'apihelp-query+revisions+base-paramvalue-prop-content',
+ 'tags' => 'apihelp-query+revisions+base-paramvalue-prop-tags',
+ 'parsetree' => array( 'apihelp-query+revisions+base-paramvalue-prop-parsetree',
+ CONTENT_MODEL_WIKITEXT ),
+ ),
),
'limit' => array(
ApiBase::PARAM_TYPE => 'limit',