starcitizenwiki/picture-html-support
最新稳定版本:1.0.0
Composer 安装命令:
composer require starcitizenwiki/picture-html-support
包简介
A MediaWiki extension that wraps thumbnails with picture elements, and allows adding additional source elements
README 文档
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.
统计信息
- 总下载量: 837
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-07-31