Yelp

(The Help System)

mal.link.target

Output the target URL for a link or other linking element.

Parameters

node

The link or other element creating the link.

action

The action attribute of node.

xref

The xref attribute of node.

href

The href attribute of node.

This template outputs a URL for a link element or another element using linking attributes. If xref points to a valid page or section, it uses a file name based on the ID of the target page plus mal.link.extension. Otherwise, the link will point to href.

For inline links, node should be the link element. For links from a links element, node should be that links element, or the containing element when the links element is implicit.

This template first calls mal.link.target.custom with the same arguments. If that template returns a non-empty string, it is used as the return value, overriding any other behavior of this template.

If xref contains a / or : character, this template calls mal.link.target.extended, which by default just uses href instead. Override that template to provide extended xref behavior.

Calls Templates