Search code examples
htmlmediawikititleskin

For MediaWiki Skin Setting HTML Title to "[Site Name]" instead of "Main Page - [Site Name]"


I'm using a custom version of the monobook skin. How do I set the HTML title to "[Site Name]" instead of "Main Page - [Site Name]"?


Solution

  • You should be able to put something like the following in your common.js, and get it to execute on only the Main Page.

    if {{{{PAGENAME}}=="Main Page"
      {
      document.title = "{{SITENAME}}";
      }
    

    It's not totally correct because I don't know javascript.