Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/250686
Change subject: ApiParse: Support parameter variant ...................................................................... ApiParse: Support parameter variant The parameter variant is already supported but it generates the warning: > "warnings": "Unrecognized parameter: 'variant'" Bug: T117549 Change-Id: I8a31dfd3cf2a3e8f768907084d26a77f198ccbe3 --- M includes/api/ApiParse.php M includes/api/i18n/en.json 2 files changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/86/250686/1 diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index fcab9be..f27bbc7 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -818,7 +818,8 @@ ), 'contentmodel' => array( ApiBase::PARAM_TYPE => ContentHandler::getContentModels(), - ) + ), + 'variant' => null ); } diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 450d83a..d20fc22 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -322,6 +322,7 @@ "apihelp-parse-param-disabletoc": "Omit table of contents in output.", "apihelp-parse-param-contentformat": "Content serialization format used for the input text. Only valid when used with $1text.", "apihelp-parse-param-contentmodel": "Content model of the input text. If omitted, $1title must be specified, and default will be the model of the specified title. Only valid when used with $1text.", + "apihelp-parse-param-variant": "Variant of the language. Only works if the page content language supports variant conversion.", "apihelp-parse-example-page": "Parse a page.", "apihelp-parse-example-text": "Parse wikitext.", "apihelp-parse-example-texttitle": "Parse wikitext, specifying the page title.", -- To view, visit https://gerrit.wikimedia.org/r/250686 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8a31dfd3cf2a3e8f768907084d26a77f198ccbe3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits