Passing title objects to addLink() and addTemplate() instead of NS/DBK pairs