User:Msh210/templatelist.js

// DOES NOT WORK YET function templatelist {//hide the template list beneath the edit window div=getElementsByClassName(document,'div','templatesUsed'); if (!div || div.length==0) return; var ith; for (i=0; i<div[0].childNodes.length; i++) { ith=div[0].childNodes[i]; if (ith.nodeType!=1 || ith.nodeName.toLowerCase!='ul') continue; ith.style.display='none'; break; } header=getElementsByClassName(document,'div','mw-templatesUsedExplanation'); header[0].style.color='blue'; header[0].style.cursor='pointer'; addClickHandler(header[0],function display(ith) {ith.style.display='block';}); //FF doesn't know what that ith is.---^ I don't know what to do about this. } $(templatelist);