Template:Image exists
(Redirected from Template:No image)
Jump to navigation
Jump to search
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[edit source]
{{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[edit source]
{{Image exists|file=ITM anticrack firewall.png|width=360px}}
{{Image exists|file=This image does not exist.png}}
Template data[edit source]
This is the TemplateData documentation for this template used by VisualEditor and other tools.
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[edit source]
The following templates redirect to this template:
- {{No image}}
This template is based on Template:Imageexists from The Cutting Room Floor, which is published under the Creative Commons CC-BY 3.0 license. |