Difference between revisions of "Template:ImageWithNotes"
(Created page with '<includeonly>{{subst:</includeonly><includeonly>void|<span class="error">'''You forgot to subst this template. Replace {{ImageWithNotes}} with {{subst:ImageWithNot...') |
(→Usage) |
||
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 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 | + | 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! | ||
− | |||
− | |||
</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!