Extension:Gadget-ImageAnnotator

From Biowikifarm Metawiki
Revision as of 20:56, 8 April 2011 by LiaVeja (Talk | contribs) (Created page with "ImageAnnotator is a JavaScript extension of the MediaWiki user interface, allowing users to place comments onto images shown on file description pages, similar to the "photo note...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ImageAnnotator is a JavaScript extension of the MediaWiki user interface, allowing users to place comments onto images shown on file description pages, similar to the "photo notes" on Flickr. This works on all image files for which the MediaWiki software displays a preview image on the file description page, i.e., PNG, JPG, GIF, and SVG files. Currently, the Annotator is installed on testwiki and Open Media repository.

Installation

ImageAnnotator might be installed like Gadget (per-user usage state - then an entrance into MediaWiki:Gadget-definition is necessary) or like any other JavaScript extension, by installing into MediaWiki: namespace component files. For emergencies cases(unexpected behavior or system crashes) the gadget MediaWiki:Gadget-DisableImageAnnotator.js is necessary to be enabled into MediaWiki:Gadget-definition. For annotation edition, ImageAnnotator makes use of templates. JavaScript files to be copied:

  • MediaWiki:Gadget-ImageAnnotator.js
  • MediaWiki:ImageAnnotatorConfig.js
  • MediaWiki:LAPI.js
  • MediaWiki:TextCleaner.js
  • MediaWiki:Tooltips.js
  • MediaWiki:UIElements.js
  • MediaWiki:AjaxSubmit.js
  • MediaWiki:Gadget-DisableImageAnnotator.js

Templates to be copied:

  • Template:ImageNote (replace "File" as appropriate)
  • Template:ImageNoteEnd
  • Template:ImageWithNotes