Yelp

(The Help System)

mal.link.desc

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 desc.

$info

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

This template outputs the secondary desc text content for a link. If $xref points to a valid page or section, the desc from that page or section will be used. The mal.link.content.mode mode is applied to the contents of that desc. Stylesheets using this template should map that mode to inline processing.

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.desc.custom with the same arguments. If that template returns a non-empty result, it is used as the return value, overriding any other behavior of this template.

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

Calls Modes