* EditPage::spamPage() was deprecated since 1.17 and has been removed.
* action=parse&prop=languageshtml was deprecated in 1.18 and will be removed in
MediaWiki 1.24.
+* action=parse now has disabletoc flag to disable table of contents in output.
=== Languages updated in 1.23===
$result_array['redirects'] = $redirValues;
}
+ if ( $params['disabletoc'] ) {
+ $p_result->setTOCEnabled( false );
+ }
+
if ( isset( $prop['text'] ) ) {
$result_array['text'] = array();
ApiResult::setContent( $result_array['text'], $p_result->getText() );
'generatexml' => false,
'preview' => false,
'sectionpreview' => false,
+ 'disabletoc' => false,
'contentformat' => array(
ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(),
),
'generatexml' => "Generate XML parse tree (requires contentmodel=$wikitext)",
'preview' => 'Parse in preview mode',
'sectionpreview' => 'Parse in section preview mode (enables preview mode too)',
+ 'disabletoc' => 'Disable table of contents in output',
'contentformat' => array(
'Content serialization format used for the input text',
"Only valid when used with {$p}text",