This can't be done easily. DokuWiki caches pages and the same cache is used for all users.
There's a
variable plugin, but it doesn't work for titles, links and other substitution patterns. You'd have to hack DokuWiki's source to make it possible.
However, in templates you have all the freedom of PHP. The variable $_SERVER['REMOTE_USER'] contains the name of the currently logged in user.