Board Thread:Support Requests - Getting Technical/@comment-4316832-20130308111559/@comment-3335785-20130313142130

I'm not going to build and maintain a script which is going to change as you decide what you want. There comes point when you have to learn about things yourself, ignoring the fact I've never attempted anything like a collapsing script. I don't mind helping out with quick fixes, but this is something else entirely.

However, it is relatively straightforward to adapt the existing template to do what you wanted. In terms of HTML, you'd need to wrap the tag in  tags, to stop the image linking to the file page. You'd probably need to remove the link to the file page in the process. The description can largely stay as it is. If you want an idea of how to go about it, take a look at Splarka's tricks, I believe there's a collapsible portlet script for monobook in there somewhere which still works. It's unmaintained (as is pretty much everything Splarka wrote from back then) so don't quote me on it working. But you'd be surprised how much of it stands up today, such as the mark all redirects in Special:AllPages. Wikipedia also has a collapsible table script, see wikipedia:MediaWiki:Common.js, which should be maintained.

But by far the best advice I can give is to use google. Not sure how to go about something? Having trouble getting the last little bit to work? Google a short description of your problem and chances are it'll come up with a fix, or something close. Stackoverflow is usually quite high in the results, and has a huge community of javascript gurus. But again, they're unlikely to write the entire script for you. It's where I go when I'm having trouble (I feel bad spamming certain users talk pages when I can get there myself if I look hard enough).