Forum:Collapsible galleries css code?

Is there some sort of css code or perhaps a template to make galleries collapsible? -- Light Daxter -  Talk  19:48, July 17, 2010 (UTC)


 * You can find code for collapsible tables on Wikipedia: Wikipedia:Help:Collapsing To make this work you would need to copy the relevant section of Wikipedia's MediaWiki:Common.js and paste it into the Common.js of your wiki. Then you would create a table template that uses the class "collapsible."
 * I recently saw a collapsible gallery template on Encyclopedia Dramatica... I'll save your eyes from the horror and just copy it here as an example of how it could work. ~ Gardimuer { ʈalk } 00:08, July 18, 2010 (UTC)


 * I apologize for assuming you wanted to remove all of the "add photo" buttons. That is my personal preference, but I suppose some people find them useful. ~ Gardimuer { ʈalk } 23:32, July 19, 2010 (UTC)

Thanks for the help guys. While I was indeed looking for the latter code, I might as well hide all of them (we'll talk about it on our wiki), depending on how annoying it'll be to implement the latter code. I still really hope for Wikia to just fix their damn galleries and add a collapse option. -- Light Daxter -  Talk  00:17, July 20, 2010 (UTC)


 * Uh ... so there is an option to remove the button per gallery, it was added last week. It's not in the UI options, but it's listed on the help page. 08:47, July 21, 2010 (UTC)

Why isn't the option in the UI? But nice to know there's a normal way that doesn't require css, thanks Kirkburn. -- Light Daxter -  Talk  09:29, July 21, 2010 (UTC)


 * We didn't want to overload the new UI, plus it's for use in fairly specific circumstances. It may move into the UI in future though. 13:10, July 21, 2010 (UTC)

expand/collapse individual images in a gallery style list of thumbnails
I think the fact that a few sample images are suggested as a preview of what else is in a gallery speaks to a fundamental flaw in the gallery feature design. The gallery of thumbnails is supposed to allow a compact preview of the images that might be viewed by a reader. The trouble is that for a reader to view an enlarged image of any member of that list of thumbnails they must navigate away to a different wiki page within the File: namespace.

So perhaps only indirectly related to the feature requested in this forum post is yet another way to apply the ShowHide JS code to the gallery concept ... ... the application of a pair of mutually exclusive NavContent DIV blocks can allow each thumbnail to be expanded or collapsed by the reader ... Demonstrated at this wiki page. Some wiki designers might prefer those enlarged images to appear in a popup window and no doubt that could be achieved via some other JS code. -- najevi 15:54, August 5, 2010 (UTC)