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.

Examples:

With pipeline

{{BreakLink|[[Peter Parker (Earth-616)|Spider-Man]]}}

Result: Peter Parker (Earth-616)


{{BreakLink|[[Peter Parker (Earth-616)|Spider-Man]]|2}}

Result: Spider-Man

Without pipeline

{{BreakLink|[[Peter Parker (Earth-616)]]}}

Result: Peter Parker (Earth-616)


{{BreakLink|[[Peter Parker (Earth-616)]]|2}}

Result: Peter Parker (Earth-616)

Not a link

{{BreakLink|Peter Parker (Earth-616)}}

Result: Peter Parker (Earth-616)


{{BreakLink|Peter Parker (Earth-616)|2}}

Result: Peter Parker (Earth-616)


Community content is available under CC-BY-SA unless otherwise noted.