C. Scott Ananian has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/396067 )
Change subject: WIP: Expose a bug with interwiki links in native galleries ...................................................................... WIP: Expose a bug with interwiki links in native galleries Change-Id: I1062934896b2029ef637fc11a4ebd96f2c565ed1 --- M tests/parserTests.txt 1 file changed, 25 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid refs/changes/67/396067/1 diff --git a/tests/parserTests.txt b/tests/parserTests.txt index 05f5281..2cf1b2d 100644 --- a/tests/parserTests.txt +++ b/tests/parserTests.txt @@ -20925,6 +20925,31 @@ !! end !! test +Gallery override link with interwiki link +!! options +parsoid={ + "nativeGallery": true +} +!! wikitext +<gallery> +File:Foobar.jpg|alt=galleryalt|link=meatball:Link +</gallery> +!! html/php +<ul class="gallery mw-gallery-traditional"> + <li class="gallerybox" style="width: 155px"><div style="width: 155px"> + <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.usemod.com/cgi-bin/mb.pl?Link"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div> + <div class="gallerytext"> + </div> + </div></li> +</ul> + +!! html/parsoid +<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery" about="#mwt2" data-parsoid='{"dsr":[0,70,2,2]}' data-mw='{"name":"gallery","attrs":{},"body":{}}'> +<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width: 150px; height: 150px;"><figure-inline typeof="mw:Image"><a href="http://www.usemod.com/cgi-bin/mb.pl?Link"><img alt="galleryalt" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" data-file-width="1941" data-file-height="220" data-file-type="bitmap" height="14" width="120"/></a></figure-inline></div><div class="gallerytext"></div></li> +</ul> +!! end + +!! test Gallery override link with absolute external link (T36852) !! options parsoid={ -- To view, visit https://gerrit.wikimedia.org/r/396067 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1062934896b2029ef637fc11a4ebd96f2c565ed1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: C. Scott Ananian <canan...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits