Erweiterung:ImageCompare
Diese Erweiterung ist mit der MediaWiki 1.38 oder neueren Veröffentlichung inkompatibel! Du wirst davon abgeraten, diese Erweiterung auf einer Live-Seite zu verwenden. Volunteer developers are invited to pledge their efforts to updating this extension to make it compatible with MediaWiki 1.41 by replacing the {{Incompatible }} template with {{Incompatible |version=1.38|pledge=~~~~}} . |
A request to archive this extension has been made on Phabricator. See task T353968 for the archival request and the rationale for the request, and to leave comments about the request. |
Diese Erweiterung wird derzeit nicht aktiv gepflegt! Obwohl sie möglicherweise immer noch funktioniert, werden Fehlerberichte oder Featureanfragen höchstwahrscheinlich ignoriert. Wenn Du die Aufgabe übernehmen möchtest, diese Erweiterung zu entwickeln und zu verwalten, kannst Du Du kannst den Besitz der Quelle anfordern. Du kannst höflichkeitshalber den Autor kontaktieren. Du solltest auch diese Vorlage entfernen und angeben, dass die Erweiterung in der Infobox {{Vorlage:Erweiterung }} der Seite beibehalten werden soll. |
ImageCompare Freigabestatus: ohne Wartung |
|
---|---|
Einbindung | Tag |
Beschreibung | Adds a tag to interactively compare two images using a slider |
Autor(en) | Leduyquang03Diskussion |
Letzte Version | 0.0.3 (2018-12-11) |
MediaWiki | 1.29+ |
PHP | Any |
Datenbankänderungen | Nein |
Lizenz | MIT-Lizenz |
Herunterladen | |
imgcomp |
|
Quarterly downloads | 2 (Ranked 138th) |
Übersetze die ImageCompare-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
This extension adds the <imgcomp>
tag which displays an interactive slider for comparing two images side by side.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
ImageCompare
im Ordnerextensions/
ablegen.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageCompare - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'ImageCompare' );
- Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Verwendung
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.
- Beispiele
Um JPEG example.jpg mit PNG example.png zu vergleichen:
<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 />