[Mediawiki-l] How to change "Main Page" displayed on home page?

Tim Ware tim at hyperarts.com
Sun Nov 26 20:09:24 UTC 2006


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>'); }






More information about the MediaWiki-l mailing list