[Mediawiki-l] Sidebar Customization

Frederick Grose fgrose at gmail.com
Thu Apr 7 16:56:38 UTC 2011


On Tue, Apr 5, 2011 at 1:13 AM, Frederick Grose <fgrose at gmail.com> wrote:

> On Tue, Apr 5, 2011 at 12:19 AM, John Durant <johndur at comcast.net> wrote:
>
>> Does anyone know of a technique or extension that would allow me to
>> customize the Sidebar? Following the example shown on
>> Manual:Interface/Sidebar does not return the results shown.
>>
>> The manual page further states:
>>
>> " The link target can be the name of an interface message (page in the
>> MediaWiki namespace) or wiki page, or an external link. In either case, the
>> link can be internal, interwiki, or external. In some cases (such as links
>> with the "&" character), an interface message is necessary. The link target
>> cannot be made dependent on the interface language set in the preferences."
>>
>> After trying every permutation of link and link text the Sidebar does not
>> perform as stated. What am I missing here?
>>
>> Further down the page examples using Javascript and PHP. Are these my only
>> recourse?
>>
>> Thanks,
>> John
>>
>
> An example might be helpful,
> http://wiki.sugarlabs.org/index.php?title=MediaWiki:Sidebar&action=edit
>
> The centered language links are accomplished by this MediaWiki:Common.css:
>
> #p-Google_translations.portlet li,
> #p-Google_translations.portal li {
>
>   text-align: center;
> }
> #panel div#p-Google_translations div.body,
> #mw-panel div#p-Google_translations div.body {
>   margin-left: 0px;
> }
>
>       --Fred
>

Forwarded conversation
Subject: [Mediawiki-l] Sidebar Customization
------------------------
----------
From: *John Durant* <johndur at comcast.net>
Date: Tue, Apr 5, 2011 at 6:11 PM
To: Frederick Grose <fgrose at gmail.com>

Thanks for pointing me to your site Fred. This looks very much like what I
am trying to do. Other than the code in Mediawiki:Common.js, is there
anything else I would need for a working prototype on my site?

Regards,

John

----------
From: *Frederick Grose* <fgrose at gmail.com>
Date: Tue, Apr 5, 2011 at 7:59 PM
To: John Durant <johndur at comcast.net>


You can check the Special:Version page of a MediaWiki site,
http://wiki.sugarlabs.org/go/Special:Version
to see what software is running.

In our case, we are just using the Vector skin with UsabilityInitiative
extension in MediaWiki 1.16.0

The MediaWiki:Sidebar content,
http://wiki.sugarlabs.org/go/MediaWiki:Sidebar
and  MediaWiki:Common.css (the sections I extracted below),
http://wiki.sugarlabs.org/go/MediaWiki:Common.css
and the Google Translate and other external or internal links are the only
customizations to our sidebar.

Best wishes,
       --Fred
----------
From: *John Durant* <johndur at comcast.net>
Date: Tue, Apr 5, 2011 at 11:00 PM
To: Frederick Grose <fgrose at gmail.com>

As suggested, went through the various components. It appears to be working,
more tests in the morning.

 Will keep you posted.

 Thanks,

----------
From: *John Durant* <johndur at comcast.net>
Date: Wed, Apr 6, 2011 at 8:55 PM
To: Frederick Grose <fgrose at gmail.com>


Compared Special:Version pages, removed other extensions that could possibly
conflict, verified Vector, checked Mediawiki:Sidebar and still no
collapsing.  Looking at the code with Firebug, the functions all load and
run. Any ideas?

Thanks,

----------
From: *Frederick Grose* <fgrose at gmail.com>
Date: Wed, Apr 6, 2011 at 9:21 PM
To: John Durant <johndur at comcast.net>


Oh sorry, I forgot about the collapsing feature.

You may need also some MediaWiki:Common.js,
http://wiki.sugarlabs.org/go/MediaWiki:Common.js
or, its good to take from the source,
http://www.mediawiki.org/wiki/MediaWiki:Common.js

But I'm not certain at the moment.

I would feel better if this discussion were on-list, so others could
contribute and benefit.

Any objections to forward all back to the original thread?

         --Fred

----------
From: *John Durant* <johndur at comcast.net>
Date: Thu, Apr 7, 2011 at 8:23 AM
To: Frederick Grose <fgrose at gmail.com>

No, please do.


More information about the MediaWiki-l mailing list