mal.link.sorttitle
Parameters
- $node
The page or section element to output a sort title for.
- $role
A space-separated list of link roles, used to select the appropriate title.
This template returns a sort title for a page or section as a normalized string. If $node defines a sort title in its info element, the value of that title is always used first. Otherwise, if $role is defined and $node has a link title with a matching role, that title is used. Otherwise, if $node has a link title with no role, that title is used. Otherwise, the primary title is used.