* prop=info now adds the content model and page language of the title.
* New upload log entries will now contain information on the relavent
image (sha1 and timestamp).
-* (bug 49239) action=parse now can parse in preview mode.
+* (bug 49239) action=parse now can parse in preview and section preview modes.
* (bug 49259) action=patrol now accepts revision ids.
=== Languages updated in 1.22===
$popts = $pageObj->makeParserOptions( $this->getContext() );
$popts->enableLimitReport( !$params['disablepp'] );
- $popts->setIsPreview( $params['preview'] );
- $popts->setIsSectionPreview( $params['preview'] && $this->section !== false );
+ $popts->setIsPreview( $params['preview'] || $params['sectionpreview'] );
+ $popts->setIsSectionPreview( $params['sectionpreview'] );
wfProfileOut( __METHOD__ );
return $popts;
'disablepp' => false,
'generatexml' => false,
'preview' => false,
+ 'sectionpreview' => false,
'contentformat' => array(
ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(),
),
'disablepp' => 'Disable the PP Report from the parser output',
'generatexml' => 'Generate XML parse tree (requires prop=wikitext)',
'preview' => 'Parse in preview mode',
+ 'sectionpreview' => 'Parse in section preview mode (enables preview mode too)',
'contentformat' => 'Content serialization format used for the input text',
'contentmodel' => 'Content model of the new content',
);