Forum:How can I create a template that can show others' usernames?

I've seen wikis with templates that can have whatever user is looking at it's username. I keep wondering how they do that. Any help?
 * Have a look here. 05:29, September 3, 2012 (UTC)