[Mediawiki-l] Baisser le cadre principal

Alexis Moinet alexis.moinet at fpms.ac.be
Mon Oct 9 12:09:52 UTC 2006


Loïc Bertron a écrit :
> Bonjour,
> 
> Je souhaiterais baisser le cadre central dans lequel sont affichés les
> articles afin de pouvoir ajouter une banniere en haut du site.
> Comment puis-je faire ?

ajoutez le code php ou html de votre bannière dans le fichiers /skins/monobook.php (si vous utilisez le skin par défaut de mediawiki : monobook (le même que sur wikipedia), sinon un autre)
	
je pense que vous devez l'insérer juste après le tag <div id="globalWrapper"> ou juste après le tag <div id="column-content"> (pour Mediawiki 1.7.1)

Il me semble que vous devrez également modifier le fichier /skins/monobook/main.css pour repositionner les onglets (article, discussion, edit, history) correctement dans firefox (il faut modifier la valeur "top:" dans #p-cactions)
pour afficher correctement ces onglets dans IE, vous devez modifier /skins/monobook/IExxFixes.css (xx = versionde IE) (il faut ajouter une valeur "top:" dans #p-cactions et probablement lui donner une valeur différente de celle pour Firefox ci-dessus)
pour afficher correctement dans Opera, vous devez changer /skins/monobook/OperaxFixes.css (x = 6 ou 7, mais le 7 applique aussi les correction à Opera 8 et 9) (correction : cf.IE)
Pour d'autre browsers internet, je ne sais pas.


> I would like to set up a top banner in my mediawiki.
> 
> So I would like to go down the article windows and mitres.
> 
> How can I do ?

add your banner code in /skins/monobook.php just after <div id="globalWrapper"> or <div id="column-content"> tag (Mediawiki 1.7.1)

Then, I think you have to change the #p-cactions properties in /skins/monobook/main.css to align properly the action tabs (article, discussion, edit, history) in Firefox.
IE alignment of the action tabs need to be fixed using /skins/monobook/IExxFixes.css instead. (add a "top: " value in #p-cactions)
Opera tabs alignment can be changed using  /skins/monobook/OperaxFixes.css instead. (x is 6 or 7, but 7 also fixes Opera 8 and 9)(fix : cf. IE)
I don't know much about any other browser (e.g. MacOS/Safari)




More information about the MediaWiki-l mailing list