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

Release status:Extension status unstable

ImplementationTemplate:Extension#type Special page, User interface
DescriptionTemplate:Extension#description Lets a user select regions of an image and associate an article with that region
Author(s)Template:Extension#username Tristan Harris
Tomasz Klim
Jack Phoenix
Latest versionTemplate:Extension#version 2.0
MediaWikiTemplate:Extension#mediawiki 1.23+
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Hooks usedTemplate:Extension#hook

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

Check usage and version matrix.
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.


  • Download and place the file(s) in a directory called ImageTagging in 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.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


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.