MediaWiki:ShowHide.js

/* Custom show/hide function */ /* For usage in the template HideButton */

$('.showhide').click(function {   if ($(this).html === 'show') {        $(this).html('hide');    } else {        $(this).html('show');    } });