Difference between revisions of "Image markup"
From Sonic Retro
Scarred Sun (talk | contribs) |
Scarred Sun (talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
'''← [[Help: Contents]]''' | '''← [[Help: Contents]]''' | ||
Line 5: | Line 4: | ||
==Basic Syntax== | ==Basic Syntax== | ||
− | The basic format for displaying an image inline is still [[Image: | + | The basic format for displaying an image inline is still [[Image:Hedgehog.jpg|Caption text]] (<nowiki>[[Image:Hedgehog.jpg|Caption text]]</nowiki>). |
==Available Styles== | ==Available Styles== | ||
− | ; thumbnail, thumb : generates an automatically resized thumbnail image, normally on the right, with the caption text displayed directly underneath. An "enlarge"-icon is added. Example: [[Image: | + | ; thumbnail, thumb : generates an automatically resized thumbnail image, normally on the right, with the caption text displayed directly underneath. An "enlarge"-icon is added. Example: [[Image:Hedgehog.jpg|thumbnail|Caption text]] (<nowiki>[[Image:Hedgehog.jpg|thumbnail|Caption text]]</nowiki>) |
; frame : The image will have a frame, regardless of whether it is a thumb, and the caption text will be included as a visible caption. | ; frame : The image will have a frame, regardless of whether it is a thumb, and the caption text will be included as a visible caption. | ||
; right : make the image right-aligned, can be used with and without specifying thumb | ; right : make the image right-aligned, can be used with and without specifying thumb | ||
Line 16: | Line 15: | ||
Vertical bars (the pipe "|" character) are used to separate options from each other and from the caption text. Unknown options are ignored and the final parameter is used as the caption text. | Vertical bars (the pipe "|" character) are used to separate options from each other and from the caption text. Unknown options are ignored and the final parameter is used as the caption text. | ||
+ | |||
+ | [[Category:Help]] |
Revision as of 15:46, 8 June 2007
This page is a tutorial for using the wiki image-formatting syntax available). The image markup is backwards-compatible, so old instances of images do not need to be upgraded — they already meet the current standards. However, there are a number of additional features available to make the presentation of images in an article cleaner and more attractive.
Basic Syntax
The basic format for displaying an image inline is still ([[Image:Hedgehog.jpg|Caption text]]).
Available Styles
- thumbnail, thumb
- generates an automatically resized thumbnail image, normally on the right, with the caption text displayed directly underneath. An "enlarge"-icon is added. Example: ([[Image:Hedgehog.jpg|thumbnail|Caption text]])
- frame
- The image will have a frame, regardless of whether it is a thumb, and the caption text will be included as a visible caption.
- right
- make the image right-aligned, can be used with and without specifying thumb
- left
- same as above, but left aligned.
- none
- The image will be rendered inline, even if the thumbnail-option is set
- sizepx
- render a thumbnail version of the image that's [size] pixels wide (e.g. "150px"). Height is computed to keep aspect ratio (i.e. the shape of the image).
Vertical bars (the pipe "|" character) are used to separate options from each other and from the caption text. Unknown options are ignored and the final parameter is used as the caption text.