Template:Format link/doc

This template formats a link for use in hatnote templates. It accepts two positional parameters, the link, and an optional display value. Links to categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section.

This template doesn't work with subst.

Usage
Link only:

Link plus display:

If the link or display values contain an equals sign, you will need to specify the parameter names like this:

Examples

 * → Lion →
 * → Lion § Etymology →
 * → Category:Lions →
 * → Etymology of lion →