global $wgParser;
$this->setHeaders();
+ $this->addHelpLink( 'Help:ExpandTemplates' );
$request = $this->getRequest();
$titleStr = $request->getText( 'wpContextTitle' );
}
$config = $this->getConfig();
- if ( $config->get( 'UseTidy' ) && $options->getTidy() ) {
+ if ( MWTidy::isEnabled() && $options->getTidy() ) {
$tmp = MWTidy::tidy( $tmp );
+ } else {
+ wfDeprecated( 'disabling tidy', '1.33' );
}
$out->addHTML( $tmp );
*
* @param string $title Value for context title field
* @param string $input Value for input textbox
- * @return string
*/
private function makeForm( $title, $input ) {
$fields = [
'size' => 60,
'default' => $title,
'autofocus' => true,
- 'cssclass' => 'mw-ui-input-inline',
],
'input' => [
'type' => 'textarea',
'rows' => 10,
'default' => $input,
'id' => 'input',
- // The following classes can be used here:
- // * mw-editfont-monospace
- // * mw-editfont-sans-serif
- // * mw-editfont-serif
- 'cssclass' => 'mw-editfont-' . $this->getUser()->getOption( 'editfont' ),
+ 'useeditfont' => true,
],
'removecomments' => [
'type' => 'check',
],
];
- $this->getOutput()->addModuleStyles( 'mediawiki.editfont.styles' );
-
$form = HTMLForm::factory( 'ooui', $fields, $this->getContext() );
$form
->setSubmitTextMsg( 'expand_templates_ok' )