Board Thread:Support Requests - Getting Technical/@comment-5396085-20141125064158

I wanted to make a simpler way to add references to a wiki I help edit, so I made a template

http://kubera.wikia.com/wiki/Template:Ref

that calls this module

http://kubera.wikia.com/wiki/Module:ReferenceCode

As you can see in the template, the reference code (other than the wikitext link in the middle) is being printed where I'd like an actual citation instead. Is there a simple solution to this problem? Thanks in advance. 