User:Yair rand/fillcategory.js

function filltopiccat(qwe) {

document.getElementById('wpTextbox1').value='{'+'{topic cat|'+((wgTitle.indexOf(':')!=-1)?wgTitle.substr(0,wgTitle.indexOf(':')):'en')+'|'+wgTitle.substr(wgTitle.indexOf(':')+1)+'}}' if(qwe) {document.getElementById('wpSave').click}

}

if(wgNamespaceNumber==14&&wgCurRevisionId==0) { $(function{ document.getElementById("firstHeading").innerHTML+=' [create topic cat|(don\'t autosave)] ' }) }