Template:Image exists/doc
Given an image, it will either show that image if it exists or a placeholder that links to Special:Upload with the filename pre-set. After uploading an image with the matching name, the image will immediateloy display the new image.
Usage
{{Image exists | file = filename.png | width = 256px | caption = Caption text | mcat = Articles with missing images }}
- 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.
Examples
{{Image exists|file=ITM anticrack firewall.png|width=360px}}
{{Image exists|file=This image does not exist.png}}
Template data
TemplateData for Image exists
Checks if an image exists, and either displays the image (if it exists) or a placeholder (if it doesn't).
Parameter | Description | Type | Status | |
---|---|---|---|---|
file | file | The file name of the image | File | required |
caption | caption | The caption for the image | String | optional |
width | width | The width of the image | Unknown | optional |
category if missing | mcat | The category to add the page to if the file does not exist
| Page name | optional |
Redirects
The following templates redirect to this template:
- {{No image}}
This template uses material from the The Cutting Room Floor template Template:Imageexists, which is released under the Commons Attribution-ShareAlike 3.0 Unported license (view authors). |