Like on the wikipedia main page, I don't want to
show the page name as
a >top heading. Mediawiki does this by default, and I could
not find a
directive that turns this off. Anyone know how?
Thanks.
Add the following code to your monobook.js file (Mediawiki:monobook.js):
/* BEGIN */
// Remove "Main Page" title from just that page
var mpTitle = "Main Page";
var isMainPage = (document.title.substr(0, document.title.lastIndexOf("
- ")) == mpTitle);
var isDiff = (document.location.search &&
(document.location.search.indexOf("diff=") != -1 ||
document.location.search.indexOf("oldid=") != -1));
if (isMainPage && !isDiff)
{
document.write('<style type="text/css">/*<![CDATA[*/ #lastmod,
#siteSub,
#contentSub, h1.firstHeading { display: none !important; }
/*]]>*/</style>');
}
/* END */
-Justin
PRIVACY NOTICE
This email and any attachments may be confidential and/or privileged. Use of the
information contained in this email by anyone other than the intended recipient is
strictly prohibited. If you have received this email in error, please notify the sender by
replying to this message and delete this email.