Template:ImageWithNotes

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:ImageWithNotes/doc.

Usage edit

{{subst:ImageWithNotes|img=''image link''}}

This template can be used to switch on the ImageAnnotator on a page other than the file description page. This can be used e.g. on the nomination pages for featured picture candidates.

ImageAnnotator recognizes this template, and switches on note display for any images so encapsulated, even if the image is displayed on an arbitrary page. If the page contains exactly one ImageWithNotes template and is visited directly (as opposed to being viewed on yet another page through transclusion), ImageAnnotator even switches on adding and editing notes. If there are multiple occurrences of the template on one page (for instance, as the result of transcluding several pages), only note viewing is allowed.

This can be used to create "local" notes stored on some page other than the file description page and visible only when that other page is viewed, without interfering with any notes the image might have on its file description page. At featured picture candidates, this feature is used to enable the creation of notes that are pertinent only to the nomination discussion. The notes added there get stored on the nomination page, and thus they are visible and editable only on these nomination pages, but they don't appear at all on the file description pages.

Note that this template must be substed! It won't work otherwise!

A sample usage can be found in Template:FPCnom/Basic. The img parameter must be a simple image link (possibly with a size), but it must not be a thumbnail. [[File:Example.jpg|thumb|300px]] won't work: ImageAnnotator will not work with such thumbnails, but [[File:Example.jpg|300px]] will work.