Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/229651

Change subject: API: Use message-per-value for 
apihelp-query+pageswithprop-param-prop
......................................................................

API: Use message-per-value for apihelp-query+pageswithprop-param-prop

Use message-per-value for message
apihelp-query+pageswithprop-param-prop to allow smaller strings
for translation.
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: I981b99efe15f6ba5400281405b6f1c5752bcbec5
---
M includes/api/ApiQueryPagesWithProp.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 10 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/51/229651/1

diff --git a/includes/api/ApiQueryPagesWithProp.php 
b/includes/api/ApiQueryPagesWithProp.php
index 7bcaf24..ad641a4 100644
--- a/includes/api/ApiQueryPagesWithProp.php
+++ b/includes/api/ApiQueryPagesWithProp.php
@@ -140,7 +140,8 @@
                                        'ids',
                                        'title',
                                        'value',
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'continue' => array(
                                ApiBase::PARAM_HELP_MSG => 
'api-help-param-continue',
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..e55fd03 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -812,7 +812,10 @@
 
        "apihelp-query+pageswithprop-description": "List all pages using a 
given page property.",
        "apihelp-query+pageswithprop-param-propname": "Page prop for which to 
enumerate pages.",
-       "apihelp-query+pageswithprop-param-prop": "Which pieces of information 
to include:\n;ids:Adds the page ID.\n;title:Adds the title and namespace ID of 
the page.\n;value:Adds the value of the page prop.",
+       "apihelp-query+pageswithprop-param-prop": "Which pieces of information 
to include:",
+       "apihelp-query+pageswithprop-paramvalue-prop-ids": "Adds the page ID.",
+       "apihelp-query+pageswithprop-paramvalue-prop-title": "Adds the title 
and namespace ID of the page.",
+       "apihelp-query+pageswithprop-paramvalue-prop-value": "Adds the value of 
the page prop.",
        "apihelp-query+pageswithprop-param-limit": "The maximum number of pages 
to return.",
        "apihelp-query+pageswithprop-param-dir": "In which direction to sort.",
        "apihelp-query+pageswithprop-example-simple": "List the first 10 pages 
using <code>&#123;&#123;DISPLAYTITLE:&#125;&#125;</code>.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..8ec5a98 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -750,7 +750,10 @@
        "apihelp-query+pageprops-example-simple": 
"{{doc-apihelp-example|query+pageprops}}",
        "apihelp-query+pageswithprop-description": 
"{{doc-apihelp-description|query+pageswithprop}}",
        "apihelp-query+pageswithprop-param-propname": 
"{{doc-apihelp-param|query+pageswithprop|propname}}",
-       "apihelp-query+pageswithprop-param-prop": 
"{{doc-apihelp-param|query+pageswithprop|prop}}",
+       "apihelp-query+pageswithprop-param-prop": 
"{{doc-apihelp-param|query+pageswithprop|prop|paramvalues=1}}",
+       "apihelp-query+pageswithprop-paramvalue-prop-ids": 
"{{doc-apihelp-param|query+pageswithprop|prop|ids}}",
+       "apihelp-query+pageswithprop-paramvalue-prop-title": 
"{{doc-apihelp-param|query+pageswithprop|prop|title}}",
+       "apihelp-query+pageswithprop-paramvalue-prop-value": 
"{{doc-apihelp-param|query+pageswithprop|prop|value}}",
        "apihelp-query+pageswithprop-param-limit": 
"{{doc-apihelp-param|query+pageswithprop|limit}}",
        "apihelp-query+pageswithprop-param-dir": 
"{{doc-apihelp-param|query+pageswithprop|dir}}",
        "apihelp-query+pageswithprop-example-simple": 
"{{doc-apihelp-example|query+pageswithprop}}",

-- 
To view, visit https://gerrit.wikimedia.org/r/229651
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I981b99efe15f6ba5400281405b6f1c5752bcbec5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to