MediaWiki:Gadget-lbox

mw.loader.load('//darkandlight.gamepedia.com/index.php?title=MediaWiki:Colorbox-min.js&action=raw&ctype=text/javascript');

$("ul.gallery").each(function(index) { $(this).attr("rel","gallery-"+index); }); $("ul.gallery a").each(function(index) { $(this).attr("rel",$(this).parents("ul.gallery").attr("rel")); }); $("ul.gallery a").colorbox({href: function { 	url = $(this).find("img").attr("src").replace("/thumb","");	return url.substring(0,url.lastIndexOf("/")); }, title: function {	return ''+$(this).parents("li.gallerybox").find("div.gallerytext").text+''; } });