From 379ec4d111a3a4a08bdb31106e8408fdd617d235 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 08:24:52 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryIWBacklinks.php | 1 + includes/api/i18n/en.json | 4 +++- includes/api/i18n/qqq.json | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 618387d2b7..2fe4bd9198 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -186,6 +186,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { '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 ae7a9c6818..be0a6607cc 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 $1blprefix.", "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 95562d8f1d..6e213266c6 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}}", -- 2.20.1