Yelp

(The Help System)

mal.link.tooltip

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.

$role

A space-separated list of link roles, used to select the appropriate title.

$info

An info element that overrides the info found in a target node.

This template outputs a text-only tooltip for a link. If $xref points to a valid page or section, the text title from that page or section will be used. If the target does not specify a text title, the primary title is used.

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.tooltip.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 only $href is provided, that URL is used as the tooltip. If a target page or section cannot be found, $xref is used as the text content. Special tooltips may be provided for certain URI schemes.

Normally, this template automatically looks up information from a targret node according to the $xref parameter. However, if the $info parameter is given, information in that node set is used instead. This is useful for external info links, where the target information is provided as child elements to the link element.

Calls Keys