From: umherirrender Date: Sat, 25 Jul 2015 19:46:33 +0000 (+0200) Subject: API: Use message-per-value for apihelp-query+usercontribs-param-prop X-Git-Tag: 1.31.0-rc.0~10366^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=36979267dbe3d920309b246966ad2e69977c471c;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 480a1ab36b..e30309444d 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -491,7 +491,8 @@ class ApiQueryContributions extends ApiQueryBase { '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 6c7ce81688..dec255a016 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: $2show=!minor.\n\nIf $2show=patrolled or $2show=!patrolled is set, revisions older than [[mw:Manual:$wgRCMaxAge|$wgRCMaxAge]] ($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 95562d8f1d..d1f8f228b9 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}}",