Extension:ImageTagging

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear app error.png
ImageTagging

Release status: unstable

Taggingdemo.png
Implementation Special page, User interface
Description Lets a user select regions of an image and associate an article with that region
Author(s) Tristan Harris
Tomasz Klim
Jack Phoenix
Latest version 2.0
MediaWiki 1.23+
Database changes Yes
License GNU General Public License 2.0 or later
Download
Hooks used
UnknownAction

ArticleFromTitle
LoadExtensionSchemaUpdates
RenameUserSQL

Translate the ImageTagging extension if it is available at translatewiki.net

Check usage and version matrix; code metrics
Warning Warning: Right now the JavaScript part is buggy on several — likely all — major browsers (see gerrit:164586 for more details). I don't know how to fix it, so if you're a JavaScript guru, please contact me if you know what the bug is and/or how to fix it, or just grab a copy of the sources and hack away!

ImageTagging extension lets a user select regions of an embedded image and associate an article with that region. Images can be viewed by tag. Tagging is shown in a new tag log.

Installation[edit | edit source]

  • Download and extract the tarball in your extensions/ folder. It should generate a new folder called ImageTagging directly inside your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/ImageTagging/ImageTagging.php";
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

Usage[edit | edit source]

Go to a image page on your wiki. You should see "Tag this imageNew!" next to "Links" in the header. Clicking on the "Tag this image" pops out the usage info. Now you can click on any part on the picture (e.g. a person) to tag it. You can use interwiki links in the tag, too. It is useful if you would like to link to an article about Jimmy Wales that doesn't exist locally but exists on Wikipedia or another wiki in the interwiki map.

After you are done, click "Done tagging" and the ImageTagging menu is dismissed. Below the file size & MIME type info, you can see all existing tags that the image has. Clicking on "images" allows to see more pictures tagged with the same tag and "remove tag" allows to remove an existing tag. Image tag additions and removal are logged to image tagging log (Special:Log/tag) which is a bit buggy at the moment.

You can view all tagged images on Special:TaggedImages.