Difference between revisions of "Template:ImageWithNotes"

From Birocapedia
Jump to navigationJump to search
(Created page with '<includeonly>{{subst:</includeonly><includeonly>void|<span class="error">'''You forgot to subst this template. Replace {{ImageWithNotes}} with {{subst:ImageWithNot...')
 
 
Line 10: Line 10:
 
<pre><nowiki>{{</nowiki>subst:ImageWithNotes|img=''image link''<nowiki>}}</nowiki></pre>
 
<pre><nowiki>{{</nowiki>subst:ImageWithNotes|img=''image link''<nowiki>}}</nowiki></pre>
  
This template can be used to switch on the ''[[MediaWiki talk:Gadget-ImageAnnotator.js|ImageAnnotator]]'' on a page other than the file description page. This can be used e.g. on the nomination pages for [[COM:FPC|featured picture candidates]].
+
This template can be used to switch on the ''[[MediaWiki talk:Gadget-ImageAnnotator.js|ImageAnnotator]]'' on a page other than the file description page.
  
 
''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 ooccurrences of the template on one page (for instance, as the result of transcluding several pages), only note viewing is allowed.
 
''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 ooccurrences 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 [[COM:FPC|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.
+
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.  
  
 
Note that this template must be '''subst'''ed! It won't work otherwise!
 
Note that this template must be '''subst'''ed! 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. <tt><nowiki>[[File:Example.jpg|thumb|300px]]</nowiki></tt> won't work: ''ImageAnnotator'' will ''not'' work with such thumbnails, but <tt><nowiki>[[File:Example.jpg|300px]]</nowiki></tt> will work.
 
 
</noinclude>
 
</noinclude>

Latest revision as of 13:24, 14 November 2009

Usage

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

This template can be used to switch on the ImageAnnotator on a page other than the file description page.

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 ooccurrences 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.

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