FANDOM


Help icon  Contents → Image markup

This page is a tutorial for using Memory Alpha's image-formatting syntax. There are a number of features available to make the presentation of images in an article cleaner and more attractive.

Basic syntaxEdit

Moon

The Moon

The basic format for displaying an image is [[File:Image name.ext|<options>|Caption text]]

Format optionsEdit

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.
thumb, thumbnail 
Generates an automatically resized thumbnail image, normally on the right, with the caption text displayed directly underneath. An "info" icon is added. Example: [[File:Moon.jpg|thumbnail|The Moon]]

Horizontal alignment optionsEdit

right 
Makes the image right-aligned; can be used either with or without specifying "thumb".
left 
Same as above, but left-aligned.
center 
Same as above, but centered.
none 
The image will be rendered inline, even if the thumbnail option is set.

Style optionsEdit

sizepx 
Renders a thumbnail version of the image that is [size] pixels wide (e.g. "150px"). Height is computed to maintain the aspect ratio (i.e. the shape of the image). Specifying this overrides the preferred thumbnail size set in user preferences, so do not use this option except on list articles, when it must be set to 150px.

Link optionsEdit

link=<target> 
Allows one to change the target (to an arbitrary page title, or URL) of the generated link, activable on the rendered image surface; e.g. [[File:Example.jpg|20px|link=http://www.wikipedia.org]] renders as Example (an external link), or [[File:Example.jpg|20px|link=MediaWiki]] renders as Example (an internal link).

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. Note that the caption text should describe the image and should not end with a period, as in the examples above.

Images can be linked to without displaying the image by putting a colon in front of the image link, like this: [[:File:Uchu cover.jpg]] which is displayed as: File:Uchu cover.jpg. These can also use pipes like standard links, like this: [[:File:Uchu cover.jpg|text here]], resulting in text here.

See alsoEdit

Community content is available under CC-BY-NC unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+