Template:Image
Display an image using a wiki file or verified archive sources.
Usage
{{Image|file=Milady.jpg|frame=thumb|alt=Milady avatar|caption=Milady avatar}}
For an uploaded file, supply file (or positional parameter 1). MediaWiki supplies the file link and its native image or media presentation. Use ordinary [[File:...]] syntax when a reusable template is unnecessary.
For a source held in an archive, omit file and supply the archive identity parameters below. Source filenames and SHA-256 values must match the archive's retained records; imports should fill these fields from verified source bindings. The storage backend does not change the template's purpose.
Parameters
Display an image using a wiki file or verified archive sources.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Wiki file | file 1 | Uploaded media filename, with or without File:. Use this or archive sources. | File | suggested |
| Archive site | site | Published PreservationArchive site slug. | String | optional |
| Object SHA-256 | sha256 | Exact lowercase SHA-256 of the archived image object. | String | optional |
| Source filename | filename | Exact source-record filename for this occurrence; verified against the archived object and used for filename-derived alternative text. | File | optional |
| Frame mode | frame | MediaWiki file presentation mode.
| String | optional |
| Alignment | align | Optional MediaWiki horizontal alignment. Any explicit value uses block presentation; none requests an un-floated block, while omission keeps an unframed image inline.
| String | optional |
| Caption | caption | Optional wikitext caption. Block or framed presentation displays it; inline presentation uses its plain text as the file-link title and fallback alternative text. | Content | optional |
| Alternative text | alt | Alternative text. Omission or an empty non-decorative value derives accessible text from the filename. | String | optional |
| Decorative | decorative | Set to yes only for an evidenced decorative image and leave alt empty.
| Boolean | optional |
| Width | width | Maximum display width in whole pixels, from 1 to 16384. | Number | optional |
| Height | height | Maximum display height in whole pixels, from 1 to 16384. | Number | optional |