Forum:Image Collapse Open as Default

Hey, hoping to get some help. I'd like the images in this table to be closed by default like it is here. It was fine when there was one image, but when I started adding the others they stayed open by default. Please and thank you.


 * You will have to investigate the show/hide code that OnePiece uses, ask one of their admins. They use different JS code than Penguindrum. See w:c:onepiece:MediaWiki:Common.js vs. w:c:penguindrum:MediaWiki:Common.js. -- Fandyllic (talk &middot; contr) 7 Oct 2011 3:45 PM Pacific


 * Haha, I am one of the admins at One Piece wiki, and I can tell you that out of us active admins, I probably know the most about codes, and that isn't much.


 * I just tried copy+pasting but nothing's changed... :(

Hey Yazzy! I saw the bug, but now seems gone... do you still see it? Maybe we should consider to import the script from Wiki Dev, since the code there are regularly checked to avoid bugs (but we I like +/- more then show/hide text, but I think it can be customized).


 * Hey, Leviathan! Yeah, I still see it showing images by default. :( What's Wiki Dev?

Thanks for the link, for what I've seen it shouldn't be expanded by default since you didn't declared it "collapsed", try to add  to the first div of Template:TLref. Wikia dev is a wiki meant to collect useful codes for wikis, like the ShowHide code. Read the ShowHide documentation to learn more on how to use this code.

Usually one use the script importScriptPage('ShowHide/code.js', 'dev'); to import the script from that wiki, this way you don't have to do "maintenance", there are some customizable parameters, it's all explained in the documentation.


 * Oh that! Yes, I've been looking at it for a solution, but I admit to not reading it thoroughly. >_> But I did now, and I found the problem! Thanks for the help. :D