Mediawiki et CSS
De Banane Atomic
Aller à la navigationAller à la recherche
Links
Add CSS for all the pages
Add CSS to the page MediaWiki:Common.css.
Add CSS for mobile
Add CSS to the page MediaWiki:Mobile.css
Change the skin CSS
/usr/share/webapps/mediawiki/skins/MonSkin/SkinMonSkin.php |
function setupSkinUserCss( OutputPage $out ) { ... // ajout des fichiers css $out->addStyle( $this->stylename . '/custom.css', 'screen' ); $out->addStyle( $this->stylename . '/geshi.css', 'screen' ); } |
Add CSS for a specific user
- for all the pages → Special:MyPage/common.css
- for a specific style → Special:MyPage/monobook.css