MediaWiki:Common.js: Difference between revisions
no edit summary
imported>Sumpy m (5 revisions) |
imported>Sumpy No edit summary |
||
Line 1: | Line 1: | ||
importScriptPage('MediaWiki:ScreamerWarn.js', 'screamers'); | importScriptPage('MediaWiki:ScreamerWarn.js', 'screamers'); | ||
importScriptPage('MediaWiki:Maintenance.js', 'screamers'); | importScriptPage('MediaWiki:Maintenance.js', 'screamers'); | ||
/* Replaces {{USERNAME}} with the name of the user browsing the page. | |||
Requires copying Template:USERNAME. */ | |||
function UserNameReplace() { | |||
if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; | |||
$("span.insertusername").html(wgUserName); | |||
} | |||
addOnloadHook(UserNameReplace); | |||
/* End of the {{USERNAME}} replacement */ |