[Mediawiki-l] Change Design for single page?

George Alexandru Dudău george.dudau at mobexpert.ro
Tue Jan 19 06:00:35 UTC 2010


Pe 17.01.2010 14:00, mediawiki-l-request at lists.wikimedia.org a scris:
> Is it possible (maybe with an extension?) to change the design for a
> single page?
>
> T4b
>    
The most simple way is to edit the css file of your skin.
Example:
You have a page "Main Page". In your source code you'll see something 
like this:

<body  class="mediawiki  ltr ns-0 ns-subject page-Main_Page">  where page-Main_page is the css class for your page "Main Page"

All you have to do is to add all css rules with class page-Main_Page in front of every declaration.

.page-Main_Page #sidebar-left {margin: 10px 0 10px 10px;}
.page-Main_Page #sidebar-right {margin: 10px 10px 10px 0;} ...

Add css declarations only for elements do you want to modify.

All other page will remain unchanged.


Sorry for my bad english

Geo



-- 
George Alexandru Dudău
CORE IT MEX - Grupul de firme MOBEXPERT
Network administrator | proiecte web | proiecte speciale

Tel : +40 21 2421040-1139
http://www.itmex.ro




More information about the MediaWiki-l mailing list