jenkins-bot has submitted this change and it was merged.

Change subject: API: Use message-per-value for 
apihelp-query+usercontribs-param-prop
......................................................................


API: Use message-per-value for apihelp-query+usercontribs-param-prop

Use message-per-value for message
apihelp-query+usercontribs-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: I9b1bd1afc4d0c6047f0fb7b85ffe83298c24e7ed
---
M includes/api/ApiQueryUserContributions.php
M includes/api/i18n/en.json
M includes/api/i18n/qqq.json
3 files changed, 24 insertions(+), 3 deletions(-)

Approvals:
  Anomie: Looks good to me, but someone else must approve
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/api/ApiQueryUserContributions.php 
b/includes/api/ApiQueryUserContributions.php
index 480a1ab..e303094 100644
--- a/includes/api/ApiQueryUserContributions.php
+++ b/includes/api/ApiQueryUserContributions.php
@@ -491,7 +491,8 @@
                                        'flags',
                                        'patrolled',
                                        'tags'
-                               )
+                               ),
+                               ApiBase::PARAM_HELP_MSG_PER_VALUE => array(),
                        ),
                        'show' => array(
                                ApiBase::PARAM_ISMULTI => true,
diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json
index 6c7ce81..dec255a 100644
--- a/includes/api/i18n/en.json
+++ b/includes/api/i18n/en.json
@@ -972,7 +972,17 @@
        "apihelp-query+usercontribs-param-user": "The users to retrieve 
contributions for.",
        "apihelp-query+usercontribs-param-userprefix": "Retrieve contributions 
for all users whose names begin with this value. Overrides $1user.",
        "apihelp-query+usercontribs-param-namespace": "Only list contributions 
in these namespaces.",
-       "apihelp-query+usercontribs-param-prop": "Include additional pieces of 
information:\n;ids:Adds the page ID and revision ID.\n;title:Adds the title and 
namespace ID of the page.\n;timestamp:Adds the timestamp of the 
edit.\n;comment:Adds the comment of the edit.\n;parsedcomment:Adds the parsed 
comment of the edit.\n;size:Adds the new size of the edit.\n;sizediff:Adds the 
size delta of the edit against its parent.\n;flags:Adds flags of the 
edit.\n;patrolled:Tags patrolled edits.\n;tags:Lists tags for the edit.",
+       "apihelp-query+usercontribs-param-prop": "Include additional pieces of 
information:",
+       "apihelp-query+usercontribs-paramvalue-prop-ids": "Adds the page ID and 
revision ID.",
+       "apihelp-query+usercontribs-paramvalue-prop-title": "Adds the title and 
namespace ID of the page.",
+       "apihelp-query+usercontribs-paramvalue-prop-timestamp": "Adds the 
timestamp of the edit.",
+       "apihelp-query+usercontribs-paramvalue-prop-comment": "Adds the comment 
of the edit.",
+       "apihelp-query+usercontribs-paramvalue-prop-parsedcomment": "Adds the 
parsed comment of the edit.",
+       "apihelp-query+usercontribs-paramvalue-prop-size": "Adds the new size 
of the edit.",
+       "apihelp-query+usercontribs-paramvalue-prop-sizediff": "Adds the size 
delta of the edit against its parent.",
+       "apihelp-query+usercontribs-paramvalue-prop-flags": "Adds flags of the 
edit.",
+       "apihelp-query+usercontribs-paramvalue-prop-patrolled": "Tags patrolled 
edits.",
+       "apihelp-query+usercontribs-paramvalue-prop-tags": "Lists tags for the 
edit.",
        "apihelp-query+usercontribs-param-show": "Show only items that meet 
these criteria, e.g. non minor edits only: <kbd>$2show=!minor</kbd>.\n\nIf 
<kbd>$2show=patrolled</kbd> or <kbd>$2show=!patrolled</kbd> is set, revisions 
older than <var>[[mw:Manual:$wgRCMaxAge|$wgRCMaxAge]]</var> ($1 
{{PLURAL:$1|second|seconds}}) won't be shown.",
        "apihelp-query+usercontribs-param-tag": "Only list revisions tagged 
with this tag.",
        "apihelp-query+usercontribs-param-toponly": "Only list changes which 
are the latest revision.",
diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json
index 95562d8..d1f8f22 100644
--- a/includes/api/i18n/qqq.json
+++ b/includes/api/i18n/qqq.json
@@ -896,7 +896,17 @@
        "apihelp-query+usercontribs-param-user": 
"{{doc-apihelp-param|query+usercontribs|user}}",
        "apihelp-query+usercontribs-param-userprefix": 
"{{doc-apihelp-param|query+usercontribs|userprefix}}",
        "apihelp-query+usercontribs-param-namespace": 
"{{doc-apihelp-param|query+usercontribs|namespace}}",
-       "apihelp-query+usercontribs-param-prop": 
"{{doc-apihelp-param|query+usercontribs|prop}}",
+       "apihelp-query+usercontribs-param-prop": 
"{{doc-apihelp-param|query+usercontribs|prop|paramvalues=1}}",
+       "apihelp-query+usercontribs-paramvalue-prop-ids": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|ids}}",
+       "apihelp-query+usercontribs-paramvalue-prop-title": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|title}}",
+       "apihelp-query+usercontribs-paramvalue-prop-timestamp": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|timestamp}}",
+       "apihelp-query+usercontribs-paramvalue-prop-comment": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|comment}}",
+       "apihelp-query+usercontribs-paramvalue-prop-parsedcomment": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|parsedcomment}}",
+       "apihelp-query+usercontribs-paramvalue-prop-size": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|size}}",
+       "apihelp-query+usercontribs-paramvalue-prop-sizediff": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|sizediff}}",
+       "apihelp-query+usercontribs-paramvalue-prop-flags": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|flags}}",
+       "apihelp-query+usercontribs-paramvalue-prop-patrolled": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|patrolled}}",
+       "apihelp-query+usercontribs-paramvalue-prop-tags": 
"{{doc-apihelp-paramvalue|query+usercontribs|prop|tags}}",
        "apihelp-query+usercontribs-param-show": 
"{{doc-apihelp-param|query+usercontribs|show|params=* $1 - Value of 
[[mw:Manual:$RCMaxAge|$RCMaxAge]]|paramstart=2}}",
        "apihelp-query+usercontribs-param-tag": 
"{{doc-apihelp-param|query+usercontribs|tag}}",
        "apihelp-query+usercontribs-param-toponly": 
"{{doc-apihelp-param|query+usercontribs|toponly}}",

-- 
To view, visit https://gerrit.wikimedia.org/r/227009
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9b1bd1afc4d0c6047f0fb7b85ffe83298c24e7ed
Gerrit-PatchSet: 2
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: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to