Template:Rootlink/doc

This utility template takes an arbitrary string and returns all characters from the beginning up to, but not including, the first pipe symbol. Its primary use is to return the link portion of a wikilink that may have alternate text specified.

Example
For example:

Returns:

Typically this output is then fed to Unlink to remove the square brackets.