jenkins-bot has submitted this change and it was merged.
Change subject: API: Use message-per-value for
apihelp-query+categorymembers-param-prop
......................................................................
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
---
M includes/api/ApiQueryCategoryMembers.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 16 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/api/ApiQueryCategoryMembers.php
b/includes/api/ApiQueryCategoryMembers.php
index 4042bd7..6dcfe0e 100644
--- a/includes/api/ApiQueryCategoryMembers.php
+++ b/includes/api/ApiQueryCategoryMembers.php
@@ -314,7 +314,8 @@
'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 ae7a9c6..2a3927e 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 <kbd>{{ns:category}}:</kbd> prefix.
Cannot be used together with <var>$1pageid</var>.",
"apihelp-query+categorymembers-param-pageid": "Page ID of the category
to enumerate. Cannot be used together with <var>$1title</var>.",
- "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 <kbd>$1type=subcat</kbd> or <kbd>$1type=file</kbd>
may be used instead of <kbd>$1namespace=14</kbd> or <kbd>6</kbd>.",
"apihelp-query+categorymembers-param-type": "Which type of category
members to include. Ignored when <kbd>$1sort=timestamp</kbd> 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 95562d8..7533dd9 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}}",
--
To view, visit https://gerrit.wikimedia.org/r/229490
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3ba291ca6b3aac962b99ff2d0f44beaac13867ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits