Template:BreakLink

Breaks wikilink into parts. If there is a pipeline, then either part can be returned by using second parameter (1 = link, 2 = text after pipeline). If there is no pipeline, the second parameter is ignored.

With pipeline
Result:

Result:

Without pipeline
Result:

Result:

Not a link
Result:

Result: