Forum:Display the current user's username?

Is there any code to render a current user's username (ex. for me it would say iggyvolz)? I want to implement this code, perhaps, in a situation where it would display the edit links only for admins. If this can only be done by JS or CSS, I'm okay with that. Iggyvolz 18:11, May 13, 2012 (UTC)


 * You might find the information in this forum topic helpful: Forum:User rights check for displaying content. --Gardimuer { ʈalk } 15:17, May 14, 2012 (UTC)


 * Thanks, this is perfect. Iggyvolz 20:07, May 18, 2012 (UTC)


 * Did I do something wrong? w:c:trackersinterface:Template:Username Iggyvolz 20:37, May 18, 2012 (UTC)

Sorry, Monchoman45's code in the link above is for conditionally displaying content depending upon whether the viewer is an admin, bureaucrat, etc. which is what you said you needed. In your template it looks like you just want to display the viewer's name. For that, you should copy some code from Wookiepedia's Common.js and use their Template:USERNAME: --Gardimuer { ʈalk } 21:43, May 18, 2012 (UTC)