Forum:Hide template

I wanted to create a template on the Call of Duty wiki that lets blog comment containing spoilers to be hidden. A user helped me add some stuff to the common.js, we then tried to create a template (and here). But neither of them worked. Xd1358 said that it was either "1) javascript is slow 2) I'm missing something 3) some other js brokes the hide js". So I wondered if any one could help make it work. Thanks, --N7 Talk 10:15, May 22, 2011 (UTC)
 * Most likely the second. Unfortunately, it's not throwing any errors and it won't let me breakpoint it to figure out what's actually wrong.
 * It's copied from http://tinyurl.com/4yy45y6. Anything I'm missing? -- Xd1358(Talk) 18:12, May 22, 2011 (UTC)
 * I'm not sure how to fix your problem, but I have the showhide extension working on the Saints Row Wiki, so perhaps you can copy it to your wiki.
 * One line is added to common.js
 * You only need add class="collapsible collapsed" to existing box templates, or you can create a new template:Template:ShowHide
 * More information: ShowHide @ dev.wikia
 * I hope this helps! -User452 22:16, May 22, 2011 (UTC)
 * Fixed in IRC. A couple of functions were missing.