mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-12-18 11:02:15 +00:00
3c6dba3707
Depends-On: Ifd4001e312a5fa4b7beaad63ba8c4e79e3201b9b Change-Id: I132330414018cb7d3adbd4c1c4e05af91ffeec2d
55 lines
2 KiB
Plaintext
55 lines
2 KiB
Plaintext
!! Version 2
|
|
|
|
!! test
|
|
PageImages with one image
|
|
!! options
|
|
property=page_image_free
|
|
!! config
|
|
wgParserEnableLegacyMediaDOM=false
|
|
!! wikitext
|
|
[[File:Foobar.jpg]]
|
|
!! metadata
|
|
property[page_image_free]=Foobar.jpg
|
|
!! html
|
|
<p><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" class="mw-file-element" /></a></span>
|
|
</p>
|
|
!! end
|
|
|
|
!! test
|
|
PageImages with two images
|
|
!! options
|
|
property=page_image_free
|
|
!! config
|
|
wgParserEnableLegacyMediaDOM=false
|
|
!! wikitext
|
|
[[File:Thumb.png]]
|
|
[[File:Foobar.jpg]]
|
|
!! metadata
|
|
property[page_image_free]=Foobar.jpg
|
|
!! html
|
|
<p><span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Thumb.png" class="mw-file-description"><img src="http://example.com/images/e/ea/Thumb.png" decoding="async" width="135" height="135" class="mw-file-element" /></a></span>
|
|
<span class="mw-default-size" typeof="mw:File"><a href="/wiki/File:Foobar.jpg" class="mw-file-description"><img src="http://example.com/images/3/3a/Foobar.jpg" decoding="async" width="1941" height="220" class="mw-file-element" /></a></span>
|
|
</p>
|
|
!! end
|
|
|
|
!! test
|
|
PageImages with best excluded by wgPageImagesLeadSectionOnly
|
|
!! options
|
|
property=page_image_free
|
|
disabled
|
|
!! metadata
|
|
property[page_image_free]=Thumb.png
|
|
!! 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>
|
|
!! end
|