I recently added a Userstats template. Template:Userstats. come to me if u need help because i have specific coding, feel free to look at my user page to see how i did it. (source)