Nemo bis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/194414
Change subject: Add help link to three rather important pages
......................................................................
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
---
M includes/page/CategoryPage.php
M includes/specials/SpecialPreferences.php
M includes/specials/SpecialSpecialpages.php
3 files changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/14/194414/1
diff --git a/includes/page/CategoryPage.php b/includes/page/CategoryPage.php
index 03a5b89..2edf1af 100644
--- a/includes/page/CategoryPage.php
+++ b/includes/page/CategoryPage.php
@@ -113,6 +113,8 @@
$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 cea00fa..ef61f94 100644
--- a/includes/specials/SpecialPreferences.php
+++ b/includes/specials/SpecialPreferences.php
@@ -55,6 +55,8 @@
);
}
+ $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 eff06f4..ed3ad5b 100644
--- a/includes/specials/SpecialSpecialpages.php
+++ b/includes/specials/SpecialSpecialpages.php
@@ -45,6 +45,7 @@
return;
}
+ $out->addHelpLink( 'Help:Special pages' );
$this->outputPageList( $groups );
}
--
To view, visit https://gerrit.wikimedia.org/r/194414
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7445419864e85685b3ca0cf8333f38b284c71111
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits