Description
Details
- Reference
- bz52190
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Protect -{...}- variant constructs in galleries | mediawiki/core | master | +133 -1 |
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Open | None | T54661 Preprocessor/Parser irregularities with -{...}- variant constructs. | ||
Resolved | cscott | T54190 <gallery> with |link=<external link> doesn't work on wikis with LanguageConverter | ||
· · · |
Event Timeline
Change 76341 had a related patch set uploaded by Liangent:
LanguageConverter fixes to eliminate parser test failures
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.
Change 76341 had a related patch set uploaded (by Bartosz Dziewoński):
LanguageConverter fixes to eliminate parser test failures
Change 311849 had a related patch set uploaded (by C. Scott Ananian):
WIP: protect language converter markup in the preprocessor.