Thread:SW8573/@comment-4795804-20120627201909/@comment-3153244-20120629065722

Perfect, you fixed it!

Thanks to the people on Wikia Community Central who helped me! :P

''However, I have one more issue for you, if you are interested in. The template doesn't work, if it is used within a link, while other templates like work, so I hope, that it is generally posible to fix it:''

Dunno, I'm pretty sure Template:SITENAME doesn't rely on MediaWiki:Common.js, however Template:USERNAME does. Turns out there was another line of code there which was messing everything up as it wasn't javascript.