Forum:Wikia Template help

Recently, a new Wikia Media update, 1.18 has tampered with the templates for the Medal of Honor Wiki. Specifically, jQuery to 1.8.1. More information here

Some examples of templates here This change causes the show/hide selector not function at all. I am no good at coding, and would appreciate a fix or at least some sort of substitution to this problem.
 * Example 1
 * Example 2
 * Example 3

Qw3rty! (talk) 02:04, October 12, 2012 (UTC)


 * As you can see on the Dev talk page you linked, this problem has already been resolved... The reason it's not working on your wiki is because you aren't using the fix. You have copy/pasted the ShowHide JavaScript into your MediaWiki:Common.js. This is ill-advised because any bug fixes/changes made to the Developer's Wiki version of the script will not automatically go out to your wiki (since your wiki has its own copy). Instead of copy/pasting the JavaScript, you should instead import the script from the Developer's Wiki.


 * In w:c:medalofhonor:MediaWiki:Common.js, delete all this:


 * And replace it with:


 * And that should solve your problem.


 * P.S. You should phase out usage of ShowHide script, as it's functionality is now supported in core MediaWiki software. See Help:Collapsing for more information. Long story short:


 * 1) DON'T use class="collapsible" or class="collapsed"
 * 2) DO use class="mw-collapsible" or class="mw-collapsed"
 * 3) When all of your wikis collapsible elements are using mw-collapsible (core MediaWiki software) instead of the now deprecated collapsible (ShowHide script, deprecated) you should remove the JavaScript from your MediaWiki:Common.js altogether.