User talk:Ais523/bracketmatch.js

Issue with no preview
Interesting script. Of course, the first thing I noticed that non-admins cannot use it on protected templates :) —AlexSm 15:00, 14 May 2008 (UTC)
 * Fixed. Lots of my other scripts stopped it working when I tried to use it as a non-admin on a protected template, though; it worked when I disabled all scripts but it. --ais523 17:29, 14 May 2008 (UTC)

Onclick
I think a good additional feature would be to highlight (with background color, for example) the matching braces on mouse click (for several seconds). —AlexSm 15:00, 14 May 2008 (UTC)
 * OK, I've implemented that as well; if you click a set of braces, both it and the set it matches are higlighted in black for 3 seconds. --ais523 17:44, 14 May 2008 (UTC)

bm_callback not called
This isn't working for me...

The text is sent to the screen in the created div, but there appears to be no alterations whatsoever.

I looked through the script, and I think the problem is that the function bm_callback is never actually called!

The only time this function is referenced outside itself is here: var p='action=expandtemplates&generatexml=1&format=json&callback=bm_callback&text='+encodeURIComponent(t); (from bm_parsebrackets)

But there appears to be nothing anywhere else to fetch that url, see that it includes "&callback=...", and have it call the function.
 * It's called by the eval in bm_apirespond. (The format=json&callback= cause the Wikimedia server to return a JavaScript object wrapped in a call to bm_callback, so that it can be parsed using eval.) The alterations are in the colour of the brackets of template calls, although the text should be the same; try it on show1, for instance, and you should see the braces around the and  in a different colour. --ais523 14:24, 30 July 2008 (UTC)

Legacy JavaScript
Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include  needs to be replaced with  ;  all wgGlobalVariables need to be properly gotten with  ; and   needs to be called with. Please see ResourceLoader/Legacy JavaScript for details. Thank you. —  20:28, 19 January 2015 (UTC)