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

Description

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
https://sr.wikipedia.org/w/api.php?action=parse&format=jsonfm&formatversion=2&page=HTTP&variant=sr-el

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

https://gerrit.wikimedia.org/r/250686

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.