The GetUserName extension allows to obtain the current user's name from wgUser and insert it on a page.