No edit summary |
(Copied and pasted info from Wikipedia: Extended Image Syntax) |
||
Line 1: | Line 1: | ||
In brief, the syntax for displaying an image is: | |||
:'''<nowiki>[[Image:{name}|{type}|{location}|{size}|{caption}]]</nowiki>''' | |||
Only '''<nowiki>[[Image:{name}]]</nowiki>''' is required. Most images should use '''<nowiki>[[Image:{name}|thumb|Example image caption]]</nowiki>'''. The other details are optional and can be placed in any order. | |||
; Type : 'thumb' / 'thumbnail' or 'frame'. Causes image to be displayed with specific formatting (see below). | |||
; Location : 'right', 'left', 'center' or 'none'. Determines placement of the image on the page. | |||
; Size : {width}px (e.g. 50px), scales the image to the given width, keeping its aspect ratio. | |||
; Caption : Any element which cannot be identified as one of the above is assumed to be caption text. | |||
===External Links=== | |||
* [[wikipedia:Wikipedia:Extended_image_syntax| Wikipedia: Extended Image Syntax]] |
Revision as of 01:23, 5 June 2006
In brief, the syntax for displaying an image is:
- [[Image:{name}|{type}|{location}|{size}|{caption}]]
Only [[Image:{name}]] is required. Most images should use [[Image:{name}|thumb|Example image caption]]. The other details are optional and can be placed in any order.
- Type
- 'thumb' / 'thumbnail' or 'frame'. Causes image to be displayed with specific formatting (see below).
- Location
- 'right', 'left', 'center' or 'none'. Determines placement of the image on the page.
- Size
- {width}px (e.g. 50px), scales the image to the given width, keeping its aspect ratio.
- Caption
- Any element which cannot be identified as one of the above is assumed to be caption text.