16,975
edits
No edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
if ($(this).parent().css('margin-top') < '15px') | if ($(this).parent().css('margin-top') < '15px') | ||
$(this).parent().css('margin', '15px auto'); | $(this).parent().css('margin', '15px auto'); | ||
}); | |||
/* Username inserts for the USERNAME template */ | |||
$(function() { | |||
if (typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || mw.config.get('wgUserName') == null) return; | |||
$('span.insertusername').each(function() { | |||
$(this).text(mw.config.get('wgUserName')); | |||
}); | |||
}); | }); | ||
Line 36: | Line 44: | ||
mediaWiki.util.addPortletLink('p-tb', subpagesLink, 'User subpages', 't-subpages', 'Subpages of this page'); | mediaWiki.util.addPortletLink('p-tb', subpagesLink, 'User subpages', 't-subpages', 'Subpages of this page'); | ||
} | } | ||
}); | }); | ||