'Record a template link between documents, and then call super().'

def _hook_template(self, parser, space, name):

    params = name.split('|')
    template = get_object_fallback(Document, ('Template:' + params[0]), locale=self.locale, is_template=True)
    if template:
        self.current_doc.add_link_to(template, 'template')
    return super(WhatLinksHereParser, self)._hook_template(parser, space, name)
