Template:Image exists/doc

Given an image, it will either show that image (if it exists) or a placeholder (if it doesn't) that links to Special:Upload with the filename pre-set. Upon uploading it the image will display the new upload.

Usage

 * file - The name of the image, not including the File: prefix.
 * width - width of the image (note that the placeholder will always be default size)
 * caption - Caption for the image
 * mcat - The category to place the page into if the file does not exist.

Template data
{	"params": { "file": { "description": "The file name of the image", "type": "wiki-file-name", "required": true },		"width": { "description": "The width of the image" },		"caption": { "description": "The caption for the image", "type": "string" },		"mcat": { "label": "category if missing", "description": "The category to add the page to if the file does not exist", "example": "Articles with missing images", "type": "wiki-page-name", "default": "Articles with missing images" }	},	"paramOrder": [ "file", "caption", "width", "mcat" ],	"description": "Checks if an image exists, and either displays the image (if it exists) or a placeholder (if it doesn't)." }

Redirects
The following templates redirect to this template:
 * No image