There is no way to test links in templates before one saves the page. E.g. in a template where I can add Wikitext as an argument, I can see the link after being done with the template but the link is not clickable.
If there were a whole page preview or something like that, it would also work.