'legacy format has been used for the output. This format is deprecated, and in ' .
'the future, a default value will be set for the prop parameter, causing the new' .
'format to always be used.' );
'legacy format has been used for the output. This format is deprecated, and in ' .
'the future, a default value will be set for the prop parameter, causing the new' .
'format to always be used.' );
} else {
$title_obj = Title::newFromText( $params['title'] );
if ( !$title_obj || $title_obj->isExternal() ) {
} else {
$title_obj = Title::newFromText( $params['title'] );
if ( !$title_obj || $title_obj->isExternal() ) {
if ( isset( $prop['parsetree'] ) || $params['generatexml'] ) {
$wgParser->startExternalParse( $title_obj, $options, Parser::OT_PREPROCESS );
$dom = $wgParser->preprocessToDom( $params['text'] );
if ( isset( $prop['parsetree'] ) || $params['generatexml'] ) {
$wgParser->startExternalParse( $title_obj, $options, Parser::OT_PREPROCESS );
$dom = $wgParser->preprocessToDom( $params['text'] );
$entry['sortkey'] = $sortkey;
ApiResult::setContentValue( $entry, 'category', (string)$category );
$categories_result[] = $entry;
$entry['sortkey'] = $sortkey;
ApiResult::setContentValue( $entry, 'category', (string)$category );
$categories_result[] = $entry;
!isset( $prop['jsconfigvars'] ) && !isset( $prop['encodedjsconfigvars'] ) ) {
$this->setWarning( "Property 'modules' was set but not 'jsconfigvars' " .
"or 'encodedjsconfigvars'. Configuration variables are necessary " .
!isset( $prop['jsconfigvars'] ) && !isset( $prop['encodedjsconfigvars'] ) ) {
$this->setWarning( "Property 'modules' was set but not 'jsconfigvars' " .
"or 'encodedjsconfigvars'. Configuration variables are necessary " .
$result->addValue( null, $this->getModuleName(), $retval );
}
public function getAllowedParams() {
$result->addValue( null, $this->getModuleName(), $retval );
}
public function getAllowedParams() {
ApiBase::PARAM_TYPE => 'text',
ApiBase::PARAM_REQUIRED => true,
ApiBase::PARAM_TYPE => 'text',
ApiBase::PARAM_REQUIRED => true,
ApiBase::PARAM_TYPE => 'boolean',
ApiBase::PARAM_DEPRECATED => true,
ApiBase::PARAM_TYPE => 'boolean',
ApiBase::PARAM_DEPRECATED => true,
'action=expandtemplates&text={{Project:Sandbox}}'
=> 'apihelp-expandtemplates-example-simple',
'action=expandtemplates&text={{Project:Sandbox}}'
=> 'apihelp-expandtemplates-example-simple',