r74201 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74200‎ | r74201 | r74202 >
Date:12:11, 3 October 2010
Author:catrope
Status:resolved (Comments)
Tags:
Comment:
Per r69587 CR, mention which languages support variant conversion in the API help for the converttitles parameter
Modified paths:
  • /trunk/phase3/includes/api/ApiQuery.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuery.php
@@ -641,7 +641,8 @@
642642 'generator' => array( 'Use the output of a list as the input for other prop/list/meta items',
643643 'NOTE: generator parameter names must be prefixed with a \'g\', see examples' ),
644644 'redirects' => 'Automatically resolve redirects',
645 - 'converttitles' => "Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion.",
 645+ 'converttitles' => array( "Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion.",
 646+ 'Languages that support variant conversion are kk, ku, gan, tg, sr, zh' ),
646647 'indexpageids' => 'Include an additional pageids section listing all returned page IDs',
647648 'export' => 'Export the current revisions of all given or generated pages',
648649 'exportnowrap' => 'Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export',

Follow-up revisions

RevisionCommit summaryAuthorDate
r74247Per r74201 CR, make it clear that the list of languages supporting variant co...catrope09:11, 4 October 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69587Followup to r69237: clarify documentation to avoid confusion with title norma...catrope09:24, 20 July 2010

Comments

#Comment by Nikerabbit (talk | contribs)   13:48, 3 October 2010

This list might easily get out of date.

#Comment by Catrope (talk | contribs)   13:50, 3 October 2010

That's true; maybe we should add language indicating they're examples (e.g. "Languages that support variant conversion include kk, ku, ...")?

#Comment by Nikerabbit (talk | contribs)   13:56, 3 October 2010

Or generate the list automatically? I have no strong opinions.

#Comment by Catrope (talk | contribs)   13:57, 3 October 2010

There is currently no convenient way to generate the list automatically.

#Comment by Brion VIBBER (talk | contribs)   22:47, 3 October 2010

If a conveniently-queriable method can't be easily added, I'd agree with the suggestion to use the 'include' variant above.

Status & tagging log