Template:Articleimage

This template makes it easier to add an image to an article, that automatically displays a default image when incorrect. This also automatically categorizes the article under Category:Articles with a missing image when the specified image doesn't exist, or under Category:Articles without an image when no image or an empty value was given.

Parameters

 * 1) The filename of an image from Category:Images or a subcategory (no parameter name but filename is case sensitive, defaults to an empty image)
 * 2) The text to show in the tooltip, when hovering the image (no parameter name but text is case sensitive, defaults to "Image of  ")
 * nocat: Whether or not to suppress categorization in case of any invalid image (defaults to false, which means auto categorization).

Note: Both filenames of nonexisting files and of files that don't have a description page yet, will result in the default image to be displayed instead.

Examples
Common use includes both the filename and text parameters:


 * [[Image:Twinsen.jpg|frameless|center|This is an image for: ]](hover the image to see the tooltip)

When a nonexisting file is specified (which raises the Articles with a missing image maintenanance task), a default image is displayed with error information in the tooltip:


 * [[Image:Divers.gif|frameless|center|The image &quot;My Nonexisting Image.png&quot; is missing or has no description page]](hover the image to see the tooltip)

When no file is specified at all, is empty or is left out (which raises the Articles without an image maintenance task), a default image is displayed with error information in the tooltip as well:


 * [[Image:Divers.gif|frameless|center|No image was specified for this article]](hover the image to see the tooltip)

The nocat parameter may be used to suppress automatic categorization like this (any value will do):

This would render the same result as the last example above, but would not categorize under Category:Articles without an image. This feature works on both maintenance tasks mentioned above.