Thread:Project:Support desk/ How to use within parser function?/reply (5)

You can hack into the Cite extension if you know what are you doing.

Otherwise, I'd just recommend you to add a parameter on that template and fill it manually on each page that contains ref tags, since someone had to put that template or ref tags already on the page. Basically, you're trying to automate things that already needs manual intervention.