Merge "Add help link for 8 more special pages"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 1 Jun 2015 23:47:09 +0000 (23:47 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 1 Jun 2015 23:47:09 +0000 (23:47 +0000)
includes/specials/SpecialContributions.php
includes/specials/SpecialExport.php
includes/specials/SpecialImport.php
includes/specials/SpecialLinkSearch.php
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialRecentchangeslinked.php
includes/specials/SpecialWatchlist.php
includes/specials/SpecialWhatlinkshere.php

index 6b918e9..a2304e3 100644 (file)
@@ -38,6 +38,7 @@ class SpecialContributions extends IncludableSpecialPage {
                $this->outputHeader();
                $out = $this->getOutput();
                $out->addModuleStyles( 'mediawiki.special' );
+               $this->addHelpLink( 'Help:User contributions' );
 
                $this->opts = array();
                $request = $this->getRequest();
index c30d962..dfc7cdd 100644 (file)
@@ -295,6 +295,7 @@ class SpecialExport extends SpecialPage {
                $form .= Xml::closeElement( 'form' );
 
                $out->addHTML( $form );
+               $this->addHelpLink( 'Help:Export' );
        }
 
        /**
index 8124f10..f9b8ac3 100644 (file)
@@ -303,6 +303,7 @@ class SpecialImport extends SpecialPage {
                $action = $this->getPageTitle()->getLocalURL( array( 'action' => 'submit' ) );
                $user = $this->getUser();
                $out = $this->getOutput();
+               $this->addHelpLink( '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Import', true );
                $importSources = $this->getConfig()->get( 'ImportSources' );
 
                if ( $user->isAllowed( 'importupload' ) ) {
index f5218ac..7ffaf48 100644 (file)
@@ -155,6 +155,7 @@ class LinkSearchPage extends QueryPage {
                $htmlForm->setAction( wfScript() );
                $htmlForm->setMethod( 'get' );
                $htmlForm->prepareForm()->displayForm( false );
+               $this->addHelpLink( 'Help:Linksearch' );
 
                if ( $target != '' ) {
                        $this->setParams( array(
index 7dc1158..96d512c 100644 (file)
@@ -57,6 +57,10 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
                        return;
                }
 
+               $this->addHelpLink(
+                       '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes',
+                       true
+               );
                parent::execute( $subpage );
        }
 
index 3ad9f0f..3c403fe 100644 (file)
@@ -244,6 +244,7 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges {
                        Xml::check( 'showlinkedto', $opts['showlinkedto'], array( 'id' => 'showlinkedto' ) ) . ' ' .
                        Xml::label( $this->msg( 'recentchangeslinked-to' )->text(), 'showlinkedto' ) );
 
+               $this->addHelpLink( 'Help:Related changes' );
                return $extraOpts;
        }
 
index df9d363..20f5776 100644 (file)
@@ -43,6 +43,7 @@ class SpecialWatchlist extends ChangesListSpecialPage {
 
                $output = $this->getOutput();
                $request = $this->getRequest();
+               $this->addHelpLink( 'Help:Watching pages' );
 
                $mode = SpecialEditWatchlist::getMode( $request, $subpage );
                if ( $mode !== false ) {
index 0b3175a..be77e62 100644 (file)
@@ -46,6 +46,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage {
 
                $this->setHeaders();
                $this->outputHeader();
+               $this->addHelpLink( 'Help:What links here' );
 
                $opts = new FormOptions();