Template:Image

From Remilia Wiki
Jump to navigation Jump to search

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Wiki filefile 1

Uploaded media filename, with or without File:. Use this or archive sources.

Filesuggested
Archive sitesite

Published PreservationArchive site slug.

Stringoptional
Object SHA-256sha256

Exact lowercase SHA-256 of the archived image object.

Stringoptional
Source filenamefilename

Exact source-record filename for this occurrence; verified against the archived object and used for filename-derived alternative text.

Fileoptional
Frame modeframe

MediaWiki file presentation mode.

Suggested values
none thumb frame frameless
Default
none
Stringoptional
Alignmentalign

Optional MediaWiki horizontal alignment. Any explicit value uses block presentation; none requests an un-floated block, while omission keeps an unframed image inline.

Suggested values
left right center none
Stringoptional
Captioncaption

Optional wikitext caption. Block or framed presentation displays it; inline presentation uses its plain text as the file-link title and fallback alternative text.

Contentoptional
Alternative textalt

Alternative text. Omission or an empty non-decorative value derives accessible text from the filename.

Stringoptional
Decorativedecorative

Set to yes only for an evidenced decorative image and leave alt empty.

Default
no
Booleanoptional
Widthwidth

Maximum display width in whole pixels, from 1 to 16384.

Numberoptional
Heightheight

Maximum display height in whole pixels, from 1 to 16384.

Numberoptional