Wikipedia:Extended Image Syntax

Wikipedia:Extended Image Syntax

In brief, the syntax for displaying an image is (see Multimedia syntax below for extra syntax for sound and multimedia files):

]

Only Name is required. Most images should use "]" and should not specify a size. The other details are optional and can be placed in any order.

Type
"thumb" (or "thumbnail"; either can be followed by "=filename"), "frame" (or "framed"), or "frameless". Display the image with specific formatting (see below).
Border
"border". Put a small border around the image.
Location
"right", "left", "center" or "none". Determine the horizontal placement of the image on the page. This defaults to "right" for thumbnails.
Alignment
"baseline", "middle", "sub", "super", "text-top", "text-bottom", "top", or "bottom". Vertically align the image with respect to adjacent text. This defaults to "middle".
Size
"Widthpx" or "xHeightpx" or "WidthxHeightpx" or "upright" or "upright=Factor". Scale the image to be no greater than the given width and/or height, keeping its aspect ratio. With "upright", scale a thumbnail from its default size by the given factor (default 0.75), rounding the result to the nearest multiple of 10 pixels. Size is disabled when the image is 'framed'.
Link
Link the image to a different resource, or to nothing. Must not be set for non-public domain images unless attribution is provided in some other fashion.
Alt
Specify the alt text for the image. This is intended for visually impaired readers. See WP:ALT for how this should typically differ from the caption.
Caption
Specify the image's caption. This is visible only if "frame" or "thumb" attribute is used, but may be displayed on mouseover in other cases.

It does not matter whether the file is from Wikimedia Commons or on Wikipedia; the same syntax is used.

Read more about Wikipedia:Extended Image Syntax:  Detailed Syntax, How To Display An Image in Uploaded Size, With A Caption, How To Display An Image With No Caption or Formatting, New Syntax For Images, Thumbnail With Caption Text Underneath That Has One or More Links, Additional Caption Formatting Options, Overlaying Annotations On An Image, Compatibility Considerations, Cancelling Floating-around-image Mode, Linking To The Image Description Page, Images That Link Somewhere Other Than The Image Description Page, Multimedia Syntax

Famous quotes containing the word image:

    Our ego ideal is precious to us because it repairs a loss of our earlier childhood, the loss of our image of self as perfect and whole, the loss of a major portion of our infantile, limitless, ain’t-I-wonderful narcissism which we had to give up in the face of compelling reality. Modified and reshaped into ethical goals and moral standards and a vision of what at our finest we might be, our dream of perfection lives on—our lost narcissism lives on—in our ego ideal.
    Judith Viorst (20th century)