Widget:Twitter

This widget allows you to embed Twitter feed (HTML version) on your wiki page.

Created by Sergey Chernyshev

Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy [ full source code] of this page to your wiki as  article. function twitterCallback(id,C){var A=[];for(var D=0;D]*[^.,;'">\:\s\<\>\)\]\!])/g,function(F){return''+F+""}).replace(/\B@([_a-z0-9]+)/ig,function(F){return F.charAt(0)+''+F.substring(1)+""});A.push(" "+B+' '+relative_time(C[D].created_at)+"")}document.getElementById(id).innerHTML=A.join("")}function relative_time(C){var B=C.split(" ");C=B[1]+" "+B[2]+", "+B[5]+" "+B[3];var A=Date.parse(C);var D=(arguments.length>1)?arguments[1]:new Date;var E=parseInt((D.getTime-A)/1000);E=E+(D.getTimezoneOffset*60);if(E<60){return"less than a minute ago"}else{if(E<120){return"about a minute ago"}else{if(E<(60*60)){return(parseInt(E/60)).toString+" minutes ago"}else{if(E<(120*60)){return"about an hour ago"}else{if(E<(24*60*60)){return"about "+(parseInt(E/3600)).toString+" hours ago"}else{if(E<(48*60*60)){return"1 day ago"}else{return(parseInt(E/86400)).toString+" days ago"}}}}}}};twitter=[]; twitter[]=function(data){twitterCallback('tf', data);};s=document.createElement('script');s.type='text/javascript';s.id='twcall';s.src='http://twitter.com/statuses/user_timeline/.json?callback=twitter[]'+String.fromCharCode(38)+'count=';document.getElementsByTagName('head')[0].appendChild(s);