Add help link to three rather important pages

* Specialpages is a useful hub, but not so visited. The help
  page is currently not that good, but is not controversial either.
* Preferences should obviously be better, but may be better than
  nothing. Some explanations and links there are definitely useful.
* Categories don't worry much and there's no doubt they require more
  education to be really understandable and useful for users. They
  are however sort of content pages, if users start thinking they can
  get help about the contents of the categories of specific wikis
  we'll need to remove the link.

Bug: T45591
Change-Id: I7445419864e85685b3ca0cf8333f38b284c71111
This commit is contained in:
Federico Leva 2015-03-05 00:25:56 +01:00
parent ade66c04e9
commit e2e2859ec2
3 changed files with 6 additions and 1 deletions

View file

@ -113,6 +113,8 @@ class CategoryPage extends Article {
$until,
$reqArray
);
$this->getContext()->getOutput()->addHTML( $viewer->getHTML() );
$out = $this->getContext()->getOutput();
$out->addHTML( $viewer->getHTML() );
$out->addHelpLink( 'Help:Categories' );
}
}

View file

@ -55,6 +55,8 @@ class SpecialPreferences extends SpecialPage {
);
}
$out->addHelpLink( 'Help:Preferences' );
$htmlForm = Preferences::getFormObject( $this->getUser(), $this->getContext() );
$htmlForm->setSubmitCallback( array( 'Preferences', 'tryUISubmit' ) );

View file

@ -45,6 +45,7 @@ class SpecialSpecialpages extends UnlistedSpecialPage {
return;
}
$out->addHelpLink( 'Help:Special pages' );
$this->outputPageList( $groups );
}