This template is called by mal2html.page.linktrails.trail to output the links in a trail. Link trails returned by mal.link.linktrails are returned as nested link elements. This template takes one of those elements, outputs an HTML a element, then calls itself recursively on the child link element, if it exists.
The $direction parameter specifies the current text directionality. If not provided, it is computed automatically with l10n.direction. It determines the separators used between links.