The module 'mediawiki.toc' is not needed anymore because it is
superseded by the style module 'mediawiki.toc.styles'.
In the skin the module 'mediawiki.toc' may be used by self-build TOCs
from the content.
Change-Id: I53cd6f222c77a1902b89913fe45c92c105dec022
'mediawiki.apihelp',
] );
if ( !empty( $options['toc'] ) ) {
- $out->addModules( 'mediawiki.toc' );
$out->addModuleStyles( 'mediawiki.toc.styles' );
}
$out->setPageTitle( $context->msg( 'api-help-title' ) );
$out->addReturnTo( SpecialPage::getTitleFor( 'Watchlist' ) );
} elseif ( $this->toc !== false ) {
$out->prependHTML( $this->toc );
- $out->addModules( 'mediawiki.toc' );
$out->addModuleStyles( 'mediawiki.toc.styles' );
}
}