Jump to content

User:Mdd4696/Image Autotagger

From Wikipedia, the free encyclopedia
Abandoned: Feel free to borrow the code and make use of it.

The Image Autotagger is a script that makes it easier to tag images with the proper copyright templates. It was originally designed for use on the Untagged images project. The current release is in the pre-alpha development stage. It has only been tested on Firefox.

To begin using this script, copy the following to your monobook.js:

// [[User:Mdd4696/Image Autotagger/script.js]]
document.write(
	"<script type='text/javascript' "
	+ "src='http://en.wikipedia.org/w/index.php?title=User:Mdd4696/Image Autotagger/script.js"
	+ "&action=raw&ctype=text/javascript&dontcountme=s'></script>"
);

If you do not already have the addlilink(), addTab(), and addToolboxLink() library functions in your monobook.js, you should copy the following as well:

// [[User:Mdd4696/Image Autotagger/lib.js]]
document.write(
	"<script type='text/javascript' "
	+ "src='http://en.wikipedia.org/w/index.php?title=User:Mdd4696/Image Autotagger/lib.js"
	+ "&action=raw&ctype=text/javascript&dontcountme=s'></script>"
);

Usage

[edit]

There are two components to the Image Autotagger: the fast tagger, and the main tool. The fast tagger is simply a tab that appears on image pages, and is pretty self-explanatory.

To use the main tagging tool, click the Image Autotagger link in your toolbox on the left. A box should display on your screen with several input fields. You can close it by clicking the × in the upper-right hand corner, or by navigating to another page.

Use the text box in the upper-right hand corner with the Load button next to it to load a list of images. Enter the location of the list and click Load (for example, if the list was on User:Mdd4696/Sandbox, enter User:Mdd4696/Sandbox. The list must be formatted like the following:

 # [[:Image:Image1.jpg]]
 # [[:Image:Image2.jpg]]
 # [[:Image:Image3.jpg]]

A list of images should then display. Double-click an image name to load it into the editor. A window should popup showing the image, and the image's description page should be loaded into the text area. Select a tag from the drop-down, modify the edit summary if you like, and then click "Tag Image". The "Spawn image viewer" button just opens the image preview window, if you closed it.

You may test the tool on Image:TestImage.jpg. Please revert any changes when you are done.

To Do

[edit]

I have a new version of the autotagger in my monobook.js, but I'm still working some bugs out. It will allow you to move the tagging box around on screen, and load the image preview directly in the box.

  • Update license lists
  • Automatic uploader notification
  • Automatically remove tagged images from list
  • Load all images uploaded by a particular user
  • Image preview in tagger instead of seperate window
  • Destroy tagger on close instead of hiding it
  • Improve message logic
  • Improve layout
  • IE compatibility
  • Reformat code (configurable variables, seperate styles)
  • Turn into javascript "plug-in"
  • Documentation

Bugs

[edit]

See also

[edit]