Add help link for 8 more special pages
* Links can now be customised on-wiki via system message:
e928d5bdd0
* Most help pages chosen here are good for any MediaWiki install
and have been imported on MediaWiki.org. Their license has been
noted in the appropriate template, only future contributions
will be in public domain (CC-0) unless we reach old authors.
An update/discussion was opened at the project talk:
https://www.mediawiki.org/wiki/Project_talk:PD_help
* The 6 pages on MediaWiki.org have been marked for translation;
import of previous translations is ongoing. 2 pages are left on Meta
because importing translatable pages with all translation units may
be overkill.
Bug: T45591
Change-Id: I5dd91a0b7233556f2da06b65205fee72ea65a55f
This commit is contained in:
parent
a96465f40a
commit
8d08910bfa
8 changed files with 11 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -295,6 +295,7 @@ class SpecialExport extends SpecialPage {
|
|||
$form .= Xml::closeElement( 'form' );
|
||||
|
||||
$out->addHTML( $form );
|
||||
$this->addHelpLink( 'Help:Export' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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' ) ) {
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ class LinkSearchPage extends QueryPage {
|
|||
$htmlForm->setAction( wfScript() );
|
||||
$htmlForm->setMethod( 'get' );
|
||||
$htmlForm->prepareForm()->displayForm( false );
|
||||
$this->addHelpLink( 'Help:Linksearch' );
|
||||
|
||||
if ( $target != '' ) {
|
||||
$this->setParams( array(
|
||||
|
|
|
|||
|
|
@ -57,6 +57,10 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
|
|||
return;
|
||||
}
|
||||
|
||||
$this->addHelpLink(
|
||||
'//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes',
|
||||
true
|
||||
);
|
||||
parent::execute( $subpage );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage {
|
|||
|
||||
$this->setHeaders();
|
||||
$this->outputHeader();
|
||||
$this->addHelpLink( 'Help:What links here' );
|
||||
|
||||
$opts = new FormOptions();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue