From d009310ebbb94dd95769f16804c7e56ec3b8d21a Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 5 Aug 2015 22:28:57 +0200 Subject: [PATCH] API: Use message-per-value for apihelp-query+exturlusage-param-prop Use message-per-value for message apihelp-query+exturlusage-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: Ic06bb9ea651958c6e842f895bd837b11905d05bd --- includes/api/ApiQueryExtLinksUsage.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/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 3f65a19e8f..38eba12c73 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -155,7 +155,8 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { 'ids', 'title', 'url' - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'offset' => array( ApiBase::PARAM_TYPE => 'integer', diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..1471891a01 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -633,7 +633,10 @@ "apihelp-query+extlinks-example-simple": "Get a list of external links on Main Page.", "apihelp-query+exturlusage-description": "Enumerate pages that contain a given URL.", - "apihelp-query+exturlusage-param-prop": "Which pieces of information to include:\n;ids:Adds the ID of page.\n;title:Adds the title and namespace ID of the page.\n;url:Adds the URL used in the page.", + "apihelp-query+exturlusage-param-prop": "Which pieces of information to include:", + "apihelp-query+exturlusage-paramvalue-prop-ids": "Adds the ID of page.", + "apihelp-query+exturlusage-paramvalue-prop-title": "Adds the title and namespace ID of the page.", + "apihelp-query+exturlusage-paramvalue-prop-url": "Adds the URL used in the page.", "apihelp-query+exturlusage-param-protocol": "Protocol of the URL. If empty and $1query is set, the protocol is http. Leave both this and $1query empty to list all external links.", "apihelp-query+exturlusage-param-query": "Search string without protocol. See [[Special:LinkSearch]]. Leave empty to list all external links.", "apihelp-query+exturlusage-param-namespace": "The page namespaces to enumerate.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..bb40aaa32b 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -588,7 +588,10 @@ "apihelp-query+extlinks-param-expandurl": "{{doc-apihelp-param|query+extlinks|expandurl}}", "apihelp-query+extlinks-example-simple": "{{doc-apihelp-example|query+extlinks}}", "apihelp-query+exturlusage-description": "{{doc-apihelp-description|query+exturlusage}}", - "apihelp-query+exturlusage-param-prop": "{{doc-apihelp-param|query+exturlusage|prop}}", + "apihelp-query+exturlusage-param-prop": "{{doc-apihelp-param|query+exturlusage|prop|paramvalues=1}}", + "apihelp-query+exturlusage-paramvalue-prop-ids": "{{doc-apihelp-paramvalue|query+exturlusage|prop|ids}}", + "apihelp-query+exturlusage-paramvalue-prop-title": "{{doc-apihelp-paramvalue|query+exturlusage|prop|title}}", + "apihelp-query+exturlusage-paramvalue-prop-url": "{{doc-apihelp-paramvalue|query+exturlusage|prop|url}}", "apihelp-query+exturlusage-param-protocol": "{{doc-apihelp-param|query+exturlusage|protocol}}", "apihelp-query+exturlusage-param-query": "{{doc-apihelp-param|query+exturlusage|query}}", "apihelp-query+exturlusage-param-namespace": "{{doc-apihelp-param|query+exturlusage|namespace}}", -- 2.20.1