Add help link to three rather important pages
authorFederico Leva <federicoleva@tiscali.it>
Wed, 4 Mar 2015 23:25:56 +0000 (00:25 +0100)
committerFederico Leva <federicoleva@tiscali.it>
Wed, 4 Mar 2015 23:25:56 +0000 (00:25 +0100)
* 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

includes/page/CategoryPage.php
includes/specials/SpecialPreferences.php
includes/specials/SpecialSpecialpages.php

index 03a5b89..2edf1af 100644 (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' );
        }
 }
index cea00fa..ef61f94 100644 (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' ) );
 
index eff06f4..ed3ad5b 100644 (file)
@@ -45,6 +45,7 @@ class SpecialSpecialpages extends UnlistedSpecialPage {
                        return;
                }
 
+               $out->addHelpLink( 'Help:Special pages' );
                $this->outputPageList( $groups );
        }