mal2html.links.links
Parameters
- $node
A links, page, or section element to link from.
- $depth
The depth level for the HTML header element.
- $links
A list of links, as from a template in mal-link.
- $role
A space-separated list of link roles, used to select the appropriate title.
- $divs
Whether to default to divs instead of a list.
- $title
A default title to use if no title element is found.
This is a common formatting template used by some links element handlers. It selects an appropriate way to render the links based on style hints and extension attributes on $node. This template (or the templates it calls) will pass through class and data-* attributes found on the link elements to the top-level container element of each output link.
This template handles link sorting.
If $node is a links element with a title element, that title element will be processed as the title. Otherwise, the optional $title parameter will be used if provided.