On Thu, 05 Jul 2007 06:29:17 -0600 Alexis Moinet alexis.moinet@fpms.ac.be wrote:
Daniel Israel a écrit :
I seem to remember there being a simple way to move the sidebar to the right side of the page, but I can't remember. If someone
knows
how to set that for the default, please let me know. Thanks.
basically : in main.css (or [[Mediawiki:Monobook.css]] or [[Mediawiki:Common.css]]), change the following properties
#column-content { width: 100%; float: left;/*this has the side-effect to put the sidebar on the right side*/
...
Then you probably will have to change some borders, margins, etc...
I could do this. But I thought the bar side switched for right to left languages. Doesn't this mean the functionality is already there? Is there a way to set that switch without mucking about in all the settings?
-- Daniel M. Israel dmi1@cornell.edu
On 7/5/07, Daniel Israel dmi1@hushmail.com wrote:
On Thu, 05 Jul 2007 06:29:17 -0600 Alexis Moinet alexis.moinet@fpms.ac.be wrote:
Daniel Israel a écrit :
I seem to remember there being a simple way to move the sidebar to the right side of the page, but I can't remember. If someone
knows
how to set that for the default, please let me know. Thanks.
basically : in main.css (or [[Mediawiki:Monobook.css]] or [[Mediawiki:Common.css]]), change the following properties
#column-content { width: 100%; float: left;/*this has the side-effect to put the sidebar
on the
right side*/
...
Then you probably will have to change some borders, margins, etc...
I could do this. But I thought the bar side switched for right to left languages. Doesn't this mean the functionality is already there? Is there a way to set that switch without mucking about in all the settings?
No.
--
Daniel M. Israel dmi1@cornell.edu
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MinuteElectron.
Daniel Israel wrote :
I could do this. But I thought the bar side switched for right to left languages. Doesn't this mean the functionality is already there?
yes, in skins/monobook/rtl.css
Is there a way to set that switch without mucking about in all the settings?
yes, insert it in monobook.php :
look for :
if($this->data['usercss' ]) { ?> <style type="text/css"><?php $this->html('usercss' ) ?></style> <?php }
change it to
if($this->data['usercss' ]) { ?> <style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/rtl.css?<?php echo $GLOBALS['wgStyleVersion'] ?>";<?php $this->html('usercss' ) ?></style> <?php }
*but* the text will also be aligned on the right, the tabs are inverted, etc ..., so it might be a starting point, but you'll have to change things anyway
for instance, if you want the text aligned on the left, change it in rtl.css (or do it in [[Mediawiki:Monobook.css]])
body { direction: ltr; /*instead of : direction: rtl;*/ ... }
or in [[Mediawiki:Monobook.css]] / [[Mediawiki:Common.css]] edit and add (it will overwrite rtl.css property for body direction):
body { direction: ltr; }
and so on for all the css specific to rtl languages.
mediawiki-l@lists.wikimedia.org