Extension:ImageCompare
この拡張機能は、MediaWiki 1.38 以降のあらゆるバージョンのリリースと互換性がありません! 本番環境のサイトではこの拡張機能を使用しないよう勧告します。 Volunteer developers are invited to pledge their efforts to updating this extension to make it compatible with MediaWiki 1.39 by replacing the {{Incompatible }} template with {{Incompatible |version=1.38|pledge=~~~~}} . |
現在、この拡張機能は積極的な保守が行われていません! それでも機能する可能性はありますが、バグ報告や機能の要望は無視される可能性が高くなります。 この拡張機能の開発や保守の作業を引き受けることに興味がある場合は、リポジトリの所有権を申請できます。 礼儀として、作者に問い合わせることをお勧めします。 保守を引き継いだ場合、このテンプレートは除去すべきです。また、拡張機能ページの {{extension}} 基礎情報ボックス内のリストにあなたの名前を保守担当者として追加してください。 |
![]() リリースの状態: 保守されていない |
|
---|---|
![]() |
|
実装 | タグ |
説明 | Adds a tag to interactively compare two images using a slider |
作者 | Leduyquang03トーク |
最新バージョン | 0.0.3 (2018-12-11) |
MediaWiki | 1.29+ |
PHP | Any |
データベースの変更 | いいえ |
ライセンス | MIT ライセンス |
ダウンロード | |
imgcomp |
|
Quarterly downloads | 1 (Ranked 169th) |
translatewiki.net で翻訳を利用できる場合は、ImageCompare 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
This extension adds the <imgcomp>
tag which displays an interactive slider for comparing two images side by side.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のImageCompare
という名前のディレクトリ内に配置します。 - 以下のコードを
LocalSettings.php
の末尾に追加します:wfLoadExtension( 'ImageCompare' );
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
使用法
To add two images to compare, use the <imgcomp>
tag with these attributes (bold ones are required):
- img1: The title of the image to the left ("before").
- img2: The title of the image to the right ("after").
- width: A number specifying the width for compared images in pixels.
By default, images are added with their highest resolution.
- mobilewidth: A number specifying the width of the images for the mobile version, also in pixels. If not specified, it will be 320 or the specified width if it is smaller.
The titles must not have the File: namespace. The inner content of the tag will be ignored.
Ideally, the two images should have the same width and height.
- 例
To compare JPEG example.jpg with PNG example.png:
<imgcomp img1='JPEG example.jpg' img2='PNG example.png' />
To compare Draft.png and Colored.png, with each image having the width of 400px:
<imgcomp img1='Draft.png' img2='Colored.png' width=400 />