[Mediawiki-l] Hacking the <gallery>

Magnus Manske magnusmanske at googlemail.com
Mon Jul 16 15:04:31 UTC 2007


On 7/16/07, Getzke, John <jgetzke at ptc.com> wrote:
> Greetings wiki gurus
>
> We have been using the <gallery> tags to create psudo photo org charts
> on our company wiki.  I was wondering if anyone knows how to change the
> default settings of this feature to allow 5 pictures per row instead of
> just 4.  If anyone knows where to look or could throw me a link on how
> to manage this feature it would be much appreciated.

You could adapt my JavaScript:
http://commons.wikimedia.org/wiki/MediaWiki:ResizeGalleries.js

It rearranges galleries to fill the maximum width of the screen with
thumbnails. Shouldn't be too hard to set it to 5 per row.

Cheers,
Magnus



More information about the MediaWiki-l mailing list