ApiParse: Do not generate warning on parameter `variant`
Open, LowPublic


API action=parse supports the URL parameter variant. Compare
https://sr.wikipedia.org/w/api.php?action=parse&format=jsonfm&formatversion=2&page=HTTP&variant=sr-ec and

But it generates the warning:

"warnings": "Unrecognized parameter: 'variant'"

So remove the warning and support the parameter officially.

Fomafix created this task.Nov 3 2015, 2:52 PM
Fomafix updated the task description. (Show Details)
Fomafix raised the priority of this task from to Low.
Fomafix claimed this task.
Fomafix added a project: MediaWiki-API.
Fomafix added subscribers: Reedy, Aklapper, Fomafix.

Change 250686 had a related patch set uploaded (by Gerrit Patch Uploader):
ApiParse: Support parameter variant


cscott added a subscriber: cscott.Feb 28 2018, 6:20 PM

Quick cross-reference: the variant parameter is only documented here in phab: T44356#439479 and T34906#381101
The patch in gerrit seems to be stuck based on resolution of caching issues. Note that caching is apparently currently broken in some cases if you use this API parameter as a logged-in user, so beware.

Anomie added a subscriber: Anomie.Jul 11 2018, 5:48 PM

Resolving T44240: LanguageConverter should not inspect global state to determine the variant would make it easier to progress on this task, since then the API can have more direct control over the variant used (or at least better knowledge of how the variant is going to be determined).