MediaWiki:Gadget-Tables.js

//

$(document).ready(function{	// Allows tables to have a horizontal scrollbar. See CSS.	// There doesn't seem to be a good way to achieve this by styling the table element itself	$('.wikitable:not(.infobox)').wrap(' ');	// Turn table rows with IDs into clickable links	// Gives readers a way to discover and share section links that aren't covered in the table of contents	$("tr[id], tr:has([id])").click(function { window.location.hash = $(this).attr("id") || $(this).find("[id]").attr("id") }) });