Jump to content

Template:Scalable image

From Meta, a Wikimedia project coordination wiki
Template documentation

Usage

[edit]

Includes a large image preventing it to overflow.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
File name1

Name of a file hosted at Commons

Filerequired
Wrap in a frameframe border

Whether the image should be display inside a frame with a border.

Booleanoptional
Alignalign 5

Image alignment in the layout.

Suggested values
left right center
Stringoptional
Frame widthframe width 4

Width CSS property for wrapping frame.

Example
12ex
Stringoptional
Image widthwidth 2

Maximum expected image width to display in the page.

Example
1200px
Stringrequired
Captioncaption 3

Caption content to display below the image.

Example
Sunset
Contentsuggested
Display a tooltiptooltip

Whether to display a tooltip while hovering the image. The caption value will be used as tooltip.

Default
1
Example
no
Booleanoptional
Textual alternativealt

Text to use as a machine-readable alternative when the image cannot be displayed, especially for screen readers to help blind readers. Do not duplicate caption information.

Stringrequired
Caption alignmentalign-cap

Text-align CSS property for caption content.

Suggested values
left right center
Example
right
Stringoptional