विकिपीडिया:Image markup

विकिपीडिया, मुक्‍त ज्ञानकोशातून

Syntax to use an image in uploaded size, with a caption[संपादन]

To use an image as uploaded with a caption use [[Image:Westminstpalace.jpg|frame|none|caption text]]. This is the syntax you should use to update images which used the original image markup of the form [[Image:Westminsterpalace.jpg|caption]].

caption text

Syntax for images with no automatic caption or formatting[संपादन]

The old syntax for images without captions is [[Image:Westminstpalace.jpg|alt text]]. This is rendered inline, and the specified text is used as the image's alt attribute (alternate text for programs which cannot display images, such as screen readers) and as the title attribute (supplementary text, often displayed as a tool tip when the mouse is over the image).

See Wikipedia:Image markup with HTML for an old, deprecated, way of putting a caption under the image using HTML code. Please use the new way of associating captions with images, as described on this page.

See Wikipedia:Captions for discussion of appropriate caption text. See Wikipedia:Alternative text for images for discussion of appropriate alt text. Unfortunately, it is not possible to specify different text for these two purposes.

Example[संपादन]

caption text

New syntax for images without caption text displayed underneath, and for thumbnails[संपादन]

The Palace of Westminster

The new syntax is backward compatible, so articles don't have to be changed. Parameters indicating how to render the image can be given, using the syntax [[Image:Westminstpalace.jpg|options|caption text]].

Available options are:

thumbnail, thumb
generates an automatically resized thumbnail image (either reduced or enlarged, see below), normally on the right, with the caption text displayed directly underneath. An "enlarge"-icon is added. Example: [[Image:Westminstpalace.jpg|thumbnail|The Palace of Westminster]]
right
make the image right-aligned, can be used with and without specifying thumb
left
same as above, but left aligned.
center
same as above, but centered.
none
The image