starcitizenwiki / picture-html-support
There is no license information available for the latest version (1.0.0) of this package.
A MediaWiki extension that wraps thumbnails with picture elements, and allows adding additional source elements
Package info
github.com/StarCitizenWiki/mediawiki-extensions-PictureHtmlSupport
Type:mediawiki-extension
pkg:composer/starcitizenwiki/picture-html-support
1.0.0
2023-08-07 17:37 UTC
Requires (Dev)
- dev-master
- 1.0.0
- dev-dependabot/composer/mediawiki/mediawiki-codesniffer-50.0.0
- dev-dependabot/composer/mediawiki/minus-x-2.0.1
- dev-dependabot/github_actions/styfle/cancel-workflow-action-0.13.0
- dev-dependabot/github_actions/actions/cache-5
- dev-dependabot/github_actions/actions/checkout-6
- dev-dependabot/github_actions/tj-actions/changed-files-47
This package is auto-updated.
Last update: 2026-03-11 02:37:04 UTC
README
The PictureHtmlSupport enhances MediaWiki thumbnails on wiki page with <picture> elements. It does these things:
- Wrap thumbnail
<img>element with<picture>element - Move resposive image definition to
<source>element if enabled - Introduce the
PictureHtmlSupportBeforeProduceHtmlhook for users to add additional<source>elements - Add a hidden
<a>element next to the thumbnail HTML so web crawlers can crawl the original resolution image (https://phabricator.wikimedia.org/T54647)
Installation
-
Add the following line to
LocalSettings.php:wfLoadExtension( 'PictureHtmlSupport' );
-
Replace
includes/media/ThumbnailImage.php(make a backup!) withincludes/ThumbnailImage.phpfrom this extension.