mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-12-22 12:53:19 +00:00
ccdb93f3c1
Including regression test for T299798. Bug: T299798 Depends-On: Idc4ac4eb4e20d8e3e2fdbd093ff75f26d3af0d57 Change-Id: I89fa346651e756d1981a950a8b778020359b86a2
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
!! Version 2
|
|
|
|
!! test
|
|
PageImages with one image
|
|
!! options
|
|
property=page_image_free
|
|
!! wikitext
|
|
[[File:Foobar.jpg]]
|
|
!! html
|
|
<p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a>
|
|
</p>
|
|
property[page_image_free]=Foobar.jpg
|
|
!! end
|
|
|
|
!! test
|
|
PageImages with two images
|
|
!! options
|
|
property=page_image_free
|
|
!! wikitext
|
|
[[File:Thumb.png]]
|
|
[[File:Foobar.jpg]]
|
|
!! html
|
|
<p><a href="/wiki/File:Thumb.png" class="image"><img alt="Thumb.png" src="http://example.com/images/e/ea/Thumb.png" decoding="async" width="135" height="135" /></a>
|
|
<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a>
|
|
</p>
|
|
property[page_image_free]=Foobar.jpg
|
|
!! end
|
|
|
|
!! test
|
|
PageImages with best excluded by wgPageImagesLeadSectionOnly
|
|
!! options
|
|
property=page_image_free
|
|
!! wikitext
|
|
[[File:Thumb.png]]
|
|
|
|
== Section ==
|
|
|
|
[[File:Foobar.jpg]]
|
|
!! html
|
|
<p><a href="/wiki/File:Thumb.png" class="image"><img alt="Thumb.png" src="http://example.com/images/e/ea/Thumb.png" decoding="async" width="135" height="135" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Section">Section</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
|
|
<p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" /></a>
|
|
</p>
|
|
property[page_image_free]=Thumb.png
|
|
!! end
|