From: Kunal Mehta Date: Tue, 23 Jun 2015 21:23:07 +0000 (-0700) Subject: API: Use ApiBase::PARAM_HELP_MSG_PER_VALUE for 'prop' in query+watchlist X-Git-Tag: 1.31.0-rc.0~10868^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=96092399c15d4e6dd12cc684838956a87bf50633;p=lhc%2Fweb%2Fwiklou.git API: Use ApiBase::PARAM_HELP_MSG_PER_VALUE for 'prop' in query+watchlist Change-Id: I5e956f4b4dccb2b109d514332e4347252ce846c4 --- diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 3eb57fd53e..648d25965d 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -451,6 +451,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { 'prop' => array( ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|title|flags', + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ApiBase::PARAM_TYPE => array( 'ids', 'title', diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 792febc6ec..907950ac3a 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -986,7 +986,20 @@ "apihelp-query+watchlist-param-user": "Only list changes by this user.", "apihelp-query+watchlist-param-excludeuser": "Don't list changes by this user.", "apihelp-query+watchlist-param-limit": "How many total results to return per request.", - "apihelp-query+watchlist-param-prop": "Which additional items to get:\n;ids:Adds revision IDs and page IDs.\n;title:Adds title of the page.\n;flags:Adds flags for the edit.\n;user:Adds the user who made the edit.\n;userid:Adds user ID of whom made the edit.\n;comment:Adds comment of the edit.\n;parsedcomment:Adds parsed comment of the edit.\n;timestamp:Adds timestamp of the edit.\n;patrol:Tags edits that are patrolled.\n;sizes:Adds the old and new lengths of the page.\n;notificationtimestamp:Adds timestamp of when the user was last notified about the edit.\n;loginfo:Adds log information where appropriate.", + "apihelp-query+watchlist-param-prop": "Which additional properties to get:", + "apihelp-query+watchlist-paramvalue-prop-ids": "Adds revision IDs and page IDs.", + "apihelp-query+watchlist-paramvalue-prop-title": "Adds title of the page.", + "apihelp-query+watchlist-paramvalue-prop-flags": "Adds flags for the edit.", + "apihelp-query+watchlist-paramvalue-prop-user": "Adds the user who made the edit.", + "apihelp-query+watchlist-paramvalue-prop-userid": "Adds user ID of whoever made the edit.", + "apihelp-query+watchlist-paramvalue-prop-comment": "Adds comment of the edit.", + "apihelp-query+watchlist-paramvalue-prop-parsedcomment": "Adds parsed comment of the edit.", + "apihelp-query+watchlist-paramvalue-prop-timestamp": "Adds timestamp of the edit.", + "apihelp-query+watchlist-paramvalue-prop-patrol": "Tags edits that are patrolled.", + "apihelp-query+watchlist-paramvalue-prop-sizes": "Adds the old and new lengths of the page.", + "apihelp-query+watchlist-paramvalue-prop-notificationtimestamp": "Adds timestamp of when the user was last notified about the edit.", + "apihelp-query+watchlist-paramvalue-prop-loginfo": "Adds log information where appropriate.", + "apihelp-query+watchlist-param-show": "Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set $1show=minor|!anon.", "apihelp-query+watchlist-param-type": "Which types of changes to show:\n;edit:Regular page edits.\n;external:External changes.\n;new:Page creations.\n;log:Log entries.", "apihelp-query+watchlist-param-owner": "Used along with $1token to access a different user's watchlist.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 051ef0774a..2b05bf3e59 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -905,7 +905,19 @@ "apihelp-query+watchlist-param-user": "{{doc-apihelp-param|query+watchlist|user}}", "apihelp-query+watchlist-param-excludeuser": "{{doc-apihelp-param|query+watchlist|excludeuser}}", "apihelp-query+watchlist-param-limit": "{{doc-apihelp-param|query+watchlist|limit}}", - "apihelp-query+watchlist-param-prop": "{{doc-apihelp-param|query+watchlist|prop}}", + "apihelp-query+watchlist-param-prop": "{{doc-apihelp-param|query+watchlist|prop|paramvalues=1}}", + "apihelp-query+watchlist-paramvalue-prop-ids": "{{doc-apihelp-paramvalue|query+watchlist|prop|ids}}", + "apihelp-query+watchlist-paramvalue-prop-title": "{{doc-apihelp-paramvalue|query+watchlist|prop|title}}", + "apihelp-query+watchlist-paramvalue-prop-flags": "{{doc-apihelp-paramvalue|query+watchlist|prop|flags}}", + "apihelp-query+watchlist-paramvalue-prop-user": "{{doc-apihelp-paramvalue|query+watchlist|prop|user}}", + "apihelp-query+watchlist-paramvalue-prop-userid": "{{doc-apihelp-paramvalue|query+watchlist|prop|userid}}", + "apihelp-query+watchlist-paramvalue-prop-comment": "{{doc-apihelp-paramvalue|query+watchlist|prop|comment}}", + "apihelp-query+watchlist-paramvalue-prop-parsedcomment": "{{doc-apihelp-paramvalue|query+watchlist|prop|parsedcomment}}", + "apihelp-query+watchlist-paramvalue-prop-timestamp": "{{doc-apihelp-paramvalue|query+watchlist|prop|timestamp}}", + "apihelp-query+watchlist-paramvalue-prop-patrol": "{{doc-apihelp-paramvalue|query+watchlist|prop|patrol}}", + "apihelp-query+watchlist-paramvalue-prop-sizes": "{{doc-apihelp-paramvalue|query+watchlist|prop|sizes}}", + "apihelp-query+watchlist-paramvalue-prop-notificationtimestamp": "{{doc-apihelp-paramvalue|query+watchlist|prop|notificationtimestamp}}", + "apihelp-query+watchlist-paramvalue-prop-loginfo": "{{doc-apihelp-paramvalue|query+watchlist|prop|loginfo}}", "apihelp-query+watchlist-param-show": "{{doc-apihelp-param|query+watchlist|show}}", "apihelp-query+watchlist-param-type": "{{doc-apihelp-param|query+watchlist|type}}", "apihelp-query+watchlist-param-owner": "{{doc-apihelp-param|query+watchlist|owner}}",