From ce4088bdf1c78270e54f9f196a1360746b01bf6f Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 6 Aug 2015 09:23:09 +0200 Subject: [PATCH] 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 --- includes/api/ApiQueryPagesWithProp.php | 3 ++- includes/api/i18n/en.json | 5 ++++- includes/api/i18n/qqq.json | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryPagesWithProp.php b/includes/api/ApiQueryPagesWithProp.php index 7bcaf24722..ad641a46bd 100644 --- a/includes/api/ApiQueryPagesWithProp.php +++ b/includes/api/ApiQueryPagesWithProp.php @@ -140,7 +140,8 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { '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 ae7a9c6818..e55fd03947 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 {{DISPLAYTITLE:}}.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..8ec5a98b34 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}}", -- 2.20.1