As proposed on [[Wikipedia:Village pump (technical)#Why does the "pipe trick"
not work on place names?]], the attached patch makes the pre-save context link
expansion (see [[Help:Pipe trick]]) trigger on commas as well as parentheses.
This means, in particular, that:
- [[Foo, Bar|]] will expand to [[Foo, Bar|Foo]], and
- [[|Foo]] on page named [[Foobar, Baz]] will expand to [[Foo, Baz|Foo]].
Due the expansion being done during the PST, this change will not affect
existing content in any way. Also, since the "empty pipe" syntax does not
conflict with normal link syntax, users are unlikely to run afoul of this effect
by accident. That said, there is one case where the new behavior may be
unexpected and perhaps, in some cases, unwanted: the syntax [[Ns:Foo, Bar|]],
which used to expand to [[Ns:Foo, Bar|Foo, Bar]] will after the change expand to
[[Ns:Foo, Bar|Foo]] instead.
Version: 1.7.x
Severity: enhancement