From e2e2859ec207dcc4810da46b8b4c96f8355202a6 Mon Sep 17 00:00:00 2001 From: Federico Leva Date: Thu, 5 Mar 2015 00:25:56 +0100 Subject: [PATCH] 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 --- includes/page/CategoryPage.php | 4 +++- includes/specials/SpecialPreferences.php | 2 ++ includes/specials/SpecialSpecialpages.php | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/page/CategoryPage.php b/includes/page/CategoryPage.php index 03a5b89a0d..2edf1af19a 100644 --- a/includes/page/CategoryPage.php +++ b/includes/page/CategoryPage.php @@ -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' ); } } diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index cea00fa6e0..ef61f9475b 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -55,6 +55,8 @@ class SpecialPreferences extends SpecialPage { ); } + $out->addHelpLink( 'Help:Preferences' ); + $htmlForm = Preferences::getFormObject( $this->getUser(), $this->getContext() ); $htmlForm->setSubmitCallback( array( 'Preferences', 'tryUISubmit' ) ); diff --git a/includes/specials/SpecialSpecialpages.php b/includes/specials/SpecialSpecialpages.php index eff06f4603..ed3ad5bf7e 100644 --- a/includes/specials/SpecialSpecialpages.php +++ b/includes/specials/SpecialSpecialpages.php @@ -45,6 +45,7 @@ class SpecialSpecialpages extends UnlistedSpecialPage { return; } + $out->addHelpLink( 'Help:Special pages' ); $this->outputPageList( $groups ); } -- 2.20.1