承接 starcitizenwiki/picture-html-support 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Wrap thumbnail <img> element with <picture> element
  2. Move resposive image definition to <source> element if enabled
  3. Introduce the PictureHtmlSupportBeforeProduceHtml hook for users to add additional <source> elements
  4. 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

  1. Add the following line to LocalSettings.php:

    wfLoadExtension( 'PictureHtmlSupport' );
  2. Replace includes/media/ThumbnailImage.php (make a backup!) with includes/ThumbnailImage.php from this extension.

统计信息

  • 总下载量: 837
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-07-31