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:

    As death, when we come to consider it closely, is the true goal of our existence, I have formed during the last few years such close relations with this best and truest friend of mankind, that his image is not only no longer terrifying to me, but is indeed very soothing and consoling! And I thank my God for graciously granting me the opportunity ... of learning that death is the key which unlocks the door to our true happiness.
    Wolfgang Amadeus Mozart (1756–1791)