Template:Logout

.

Usage
Place it at the top of your user page/whatever. Credit goes to The General for the original code.