MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/** Username replace function (template:USERNAME) ******************************* * Inserts user name into * Originally by Splarka * New version by Spang */ function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $('span.insertusername').each(function {       $(this).text(wgUserName);    }); } addOnloadHook(UserNameReplace);

function ts_makeSortable(table){ var firstRow; if(table.rows&&table.rows.length>0){ if(table.tHead&&table.tHead.rows.length>0){ firstRow=table.tHead.rows[table.tHead.rows.length-1]; }else{ firstRow=table.rows[0]; }	}	if(!firstRow) return; for(var i=0;i' +' '					+' '; }	}	if(ts_alternate_row_colors){ ts_alternate(table); } }