It may be the way that the email split that line. Everything from
document.write till the end should be on the same line (no line
breaks).
Tim
-------- Original Message --------
Subject: Re: [Mediawiki-l] How to change "Main Page" displayed on home
page?
From: Tim Ware <tim(a)hyperarts.com>
Date: Sun, November 26, 2006 2:09 pm
To: "MediaWiki announcements and site admin list"
<mediawiki-l(a)Wikimedia.org>
Thanks. This is probably the correct approach. But how do we escape
the curly brackets? After I edited Monobook.js to include this code
and the loaded the home page and did a "view source", it showed that
the script's document.write ends after the ending curly bracket on
the style.
Tim
Another option is to disable the display of the
"Main Page" header on
the Main Page only. That should allow you to place any other
heading on
the page that you like, without actually changing the name of the
page.
To do this, edit the page MediaWiki:Monobook.js and add the following
text:
if (isMainPage && !isDiff)
{
document.write('<style type="text/css">/*<![CDATA[*/ #lastmod,
#siteSub,
#contentSub, h1.firstHeading { display: none !important; }
/*]]>*/</style>'); }
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l