Last modified: 2013-08-09 03:01:38 UTC
See https://zh.wikipedia.org/w/index.php?title=Wikipedia:%E6%B2%99%E7%9B%92&oldid=27947167 https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=566143595
Change 76341 had a related patch set uploaded by Liangent: LanguageConverter fixes to eliminate parser test failures https://gerrit.wikimedia.org/r/76341
The root cause is that: <gallery> File:foobar.jpg|caption|link=http://google.com </gallery> is expanded to: <gallery> File:foobar.jpg|caption|link=<a rel="nofollow" class="external free" href="http://google.com">-{R|http://google.com}-</a> </gallery> and then the embedded | in the link text screws up the caption parsing. What does -{R|...}- do? It doesn't seem to be documented at https://www.mediawiki.org/wiki/Writing_systems/Syntax
(In reply to comment #2) > The root cause is that: > > <gallery> > File:foobar.jpg|caption|link=http://google.com > </gallery> > > is expanded to: > <gallery> > File:foobar.jpg|caption|link=<a rel="nofollow" class="external free" > href="http://google.com">-{R|http://google.com}-</a> > </gallery> > > and then the embedded | in the link text screws up the caption parsing. > > What does -{R|...}- do? It doesn't seem to be documented at > https://www.mediawiki.org/wiki/Writing_systems/Syntax https://www.mediawiki.org/w/index.php?title=Writing_systems/Syntax&diff=759781&oldid=667003 It's usually used in auto-generated -{ }- tags, in case some text already contains a pipe in it triggering other syntax.