how to get the node author link In the node.tpl, how do i just get the $author profile page url?

with the $submitted, it prints out other things, all i need is just something like this:

&lt;a href="$url"&gt;$author&lt;/a&gt;


I've also used $name, but this only gives the name without a link.

I would also like to get the link to the current user's profile. Again, just need the username with their profile url only.
$url = l("user/" . $node-&gt;uid);