Umherirrender has uploaded a new change for review.

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

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

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

Use message-per-value for message
apihelp-query+iwbacklinks-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: Iaf2185310cd66969a018c3ca98866ae0af94e2ec
---
M includes/api/ApiQueryIWBacklinks.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/38/229638/1

diff --git a/includes/api/ApiQueryIWBacklinks.php 
b/includes/api/ApiQueryIWBacklinks.php
index 618387d..2fe4bd9 100644
--- a/includes/api/ApiQueryIWBacklinks.php
+++ b/includes/api/ApiQueryIWBacklinks.php
@@ -186,6 +186,7 @@
                                        'iwprefix',
                                        'iwtitle',
                                ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'dir' => array(
                                ApiBase::PARAM_DFLT => 'ascending',
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index ae7a9c6..be0a660 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -738,7 +738,9 @@
        "apihelp-query+iwbacklinks-param-prefix": "Prefix for the interwiki.",
        "apihelp-query+iwbacklinks-param-title": "Interwiki link to search for. 
Must be used with <var>$1blprefix</var>.",
        "apihelp-query+iwbacklinks-param-limit": "How many total pages to 
return.",
-       "apihelp-query+iwbacklinks-param-prop": "Which properties to 
get:\n;iwprefix:Adds the prefix of the interwiki.\n;iwtitle:Adds the title of 
the interwiki.",
+       "apihelp-query+iwbacklinks-param-prop": "Which properties to get:",
+       "apihelp-query+iwbacklinks-paramvalue-prop-iwprefix": "Adds the prefix 
of the interwiki.",
+       "apihelp-query+iwbacklinks-paramvalue-prop-iwtitle": "Adds the title of 
the interwiki.",
        "apihelp-query+iwbacklinks-param-dir": "The direction in which to 
list.",
        "apihelp-query+iwbacklinks-example-simple": "Get pages linking to 
[[wikibooks:Test]].",
        "apihelp-query+iwbacklinks-example-generator": "Get information about 
pages linking to [[wikibooks:Test]].",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..6e21326 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -685,7 +685,9 @@
        "apihelp-query+iwbacklinks-param-prefix": 
"{{doc-apihelp-param|query+iwbacklinks|prefix}}",
        "apihelp-query+iwbacklinks-param-title": 
"{{doc-apihelp-param|query+iwbacklinks|title}}",
        "apihelp-query+iwbacklinks-param-limit": 
"{{doc-apihelp-param|query+iwbacklinks|limit}}",
-       "apihelp-query+iwbacklinks-param-prop": 
"{{doc-apihelp-param|query+iwbacklinks|prop}}",
+       "apihelp-query+iwbacklinks-param-prop": 
"{{doc-apihelp-param|query+iwbacklinks|prop|paramvalues=1}}",
+       "apihelp-query+iwbacklinks-paramvalue-prop-iwprefix": 
"{{doc-apihelp-paramvalue|query+iwbacklinks|prop|iwprefix}}",
+       "apihelp-query+iwbacklinks-paramvalue-prop-iwtitle": 
"{{doc-apihelp-paramvalue|query+iwbacklinks|prop|iwtitle}}",
        "apihelp-query+iwbacklinks-param-dir": 
"{{doc-apihelp-param|query+iwbacklinks|dir}}",
        "apihelp-query+iwbacklinks-example-simple": 
"{{doc-apihelp-example|query+iwbacklinks}}",
        "apihelp-query+iwbacklinks-example-generator": 
"{{doc-apihelp-example|query+iwbacklinks}}",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf2185310cd66969a018c3ca98866ae0af94e2ec
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