From: umherirrender Date: Wed, 5 Aug 2015 20:18:27 +0000 (+0200) Subject: API: Use message-per-value for apihelp-query+categorymembers-param-prop X-Git-Tag: 1.31.0-rc.0~10371^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=7971a6502055e4bbc3121c69326da5bf9c64dc2b;p=lhc%2Fweb%2Fwiklou.git API: Use message-per-value for apihelp-query+categorymembers-param-prop Use message-per-value for message apihelp-query+categorymembers-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: I3ba291ca6b3aac962b99ff2d0f44beaac13867ef --- diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index 4042bd74bd..6dcfe0eb00 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -314,7 +314,8 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { 'sortkeyprefix', 'type', 'timestamp', - ) + ), + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'namespace' => array( ApiBase::PARAM_ISMULTI => true, diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index ae7a9c6818..2a3927ec0c 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -553,7 +553,13 @@ "apihelp-query+categorymembers-description": "List all pages in a given category.", "apihelp-query+categorymembers-param-title": "Which category to enumerate (required). Must include the {{ns:category}}: prefix. Cannot be used together with $1pageid.", "apihelp-query+categorymembers-param-pageid": "Page ID of the category to enumerate. Cannot be used together with $1title.", - "apihelp-query+categorymembers-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;sortkey:Adds the sortkey used for sorting in the category (hexadecimal string).\n;sortkeyprefix:Adds the sortkey prefix used for sorting in the category (human-readable part of the sortkey).\n;type:Adds the type that the page has been categorised as (page, subcat or file).\n;timestamp:Adds the timestamp of when the page was included.", + "apihelp-query+categorymembers-param-prop": "Which pieces of information to include:", + "apihelp-query+categorymembers-paramvalue-prop-ids": "Adds the page ID.", + "apihelp-query+categorymembers-paramvalue-prop-title": "Adds the title and namespace ID of the page.", + "apihelp-query+categorymembers-paramvalue-prop-sortkey": "Adds the sortkey used for sorting in the category (hexadecimal string).", + "apihelp-query+categorymembers-paramvalue-prop-sortkeyprefix": "Adds the sortkey prefix used for sorting in the category (human-readable part of the sortkey).", + "apihelp-query+categorymembers-paramvalue-prop-type": "Adds the type that the page has been categorised as (page, subcat or file).", + "apihelp-query+categorymembers-paramvalue-prop-timestamp": "Adds the timestamp of when the page was included.", "apihelp-query+categorymembers-param-namespace": "Only include pages in these namespaces. Note that $1type=subcat or $1type=file may be used instead of $1namespace=14 or 6.", "apihelp-query+categorymembers-param-type": "Which type of category members to include. Ignored when $1sort=timestamp is set.", "apihelp-query+categorymembers-param-limit": "The maximum number of pages to return.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 95562d8f1d..7533dd9538 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -516,7 +516,13 @@ "apihelp-query+categorymembers-description": "{{doc-apihelp-description|query+categorymembers}}", "apihelp-query+categorymembers-param-title": "{{doc-apihelp-param|query+categorymembers|title}}", "apihelp-query+categorymembers-param-pageid": "{{doc-apihelp-param|query+categorymembers|pageid}}", - "apihelp-query+categorymembers-param-prop": "{{doc-apihelp-param|query+categorymembers|prop}}", + "apihelp-query+categorymembers-param-prop": "{{doc-apihelp-param|query+categorymembers|prop|paramvalues=1}}", + "apihelp-query+categorymembers-paramvalue-prop-ids": "{{doc-apihelp-param|query+categorymembers|prop|ids}}", + "apihelp-query+categorymembers-paramvalue-prop-title": "{{doc-apihelp-param|query+categorymembers|prop|title}}", + "apihelp-query+categorymembers-paramvalue-prop-sortkey": "{{doc-apihelp-param|query+categorymembers|prop|sortkey}}", + "apihelp-query+categorymembers-paramvalue-prop-sortkeyprefix": "{{doc-apihelp-param|query+categorymembers|prop|sortkeyprefix}}", + "apihelp-query+categorymembers-paramvalue-prop-type": "{{doc-apihelp-param|query+categorymembers|prop|type}}", + "apihelp-query+categorymembers-paramvalue-prop-timestamp": "{{doc-apihelp-param|query+categorymembers|prop|timestamp}}", "apihelp-query+categorymembers-param-namespace": "{{doc-apihelp-param|query+categorymembers|namespace}}", "apihelp-query+categorymembers-param-type": "{{doc-apihelp-param|query+categorymembers|type}}", "apihelp-query+categorymembers-param-limit": "{{doc-apihelp-param|query+categorymembers|limit}}",