mAllowedRedirectParams = array( 'width', 'height' ); } // implement by redirecting through Special:Redirect/file function getRedirect( $par ) { $file = $par ?: $this->getRequest()->getText( 'file' ); return SpecialPage::getSafeTitleFor( 'Redirect', 'file/' . $file ); } protected function getGroupName() { return 'media'; } }