User:Anomie/uw-templates
From Wikipedia, the free encyclopedia
This page is intended to be used with Special:Recentchangeslinked.
/* If you edit this page and then execute the following code (e.g. via Firebug's console), it should ideally regenerate the table */ importScript('User:Anomie/util.js'); var start=(new Date()).toUTCString().replace(/^[^,]*, /,''); var out=''; var q={action:'query',list:'allpages',apprefix:'Uw-',apnamespace:10,aplimit:500}; function func(){ var r=api(q); if(!r.query || !r.query.allpages) throw new Error("Bad response"); q.apfrom=r['query-continue']?r['query-continue'].allpages.apfrom:''; r=r.query.allpages; for(var i in r) out+='|-\n|\x5b\x5b'+r[i].title+'\x5d\x5d || \x5b\x5b'+r[i].title.replace(/^Template:/,'Template talk:')+'\x5d\x5d\n'; if(q.apfrom){ setTimeout(func, 5000); } else { var end=(new Date()).toUTCString().replace(/^[^,]*, /,''); var t=document.getElementById('wpTextbox1'); t.value=t.value.substr(0,t.value.indexOf('\x3c/div\x3e')+7)+'\x3csmall\x3eLast update happened between '+start+' and '+end+'\x3c/small\x3e\n{| class="wikitable"\n'+out+'|}'; } } func(); void(0);
/* The following (in combination with [[User:Anomie/linkclassifier.js]]) can help when * checking redirect targets */ Array.forEach(getElementsByClassName(document,'A','redirect'), function(a){ var p=a.parentNode, n=a.nextSibling; p.insertBefore(document.createElement('BR'),n); p.insertBefore(document.createTextNode('→ '+a.title),n); });
/* The following (in combination with [[User:Anomie/linkclassifier.js]]) can help when * checking for talk pages that need redirection */ Array.forEach(document.getElementsByTagName('A'), function(a){ if(a.parentNode.nodeName!='TD') return; if(a.href.indexOf('/Template_talk:')<0) return; if(a.title!='Wikipedia talk:Template messages/User talk namespace') return; var r; for(r=a.parentNode; r.nodeName!='TR'; r=r.parentNode); r.style.display='none'; });
Last update happened between 09 Jun 2008 01:55:16 GMT and 09 Jun 2008 01:55:16 GMT

