dimanche 28 novembre 2010

Howto add a header banner to MediaWiki


This article describes a solution to add a header banner in MediaWiki.



vocabulary


  • The banner is a png file called fronton.png,
  • the wiki directory is /var/www/wiki/,
  • the wiki skin is Monobook.

show the banner 

edit skins/Monobook.php. Instead of:
........<div id="globalWrapper">.......
write:
........<div id="p-banner"><img src="/wiki/fronton.png"></div><div id="globalWrapper">.......
put the site under the banner
Edit skins/monobook/main.css. Add or modify the following lines:
#p-banner
{
    position: relative;
}
#globalWrapper
{
    ...
    position: relative;
    ...
}

Aucun commentaire:

Enregistrer un commentaire