Memory Alpha
Advertisement
Memory Alpha
Help ContentsImage markup → Image gallery

In addition to adding individual images to an article, you can also create image galleries. This is an easy way of displaying a large number of images.

Syntax[]

The basic syntax of an image gallery is:

<gallery>
File:Memory Alpha.svg
File:Memory Alpha.svg|Captioned
File:Memory Alpha.svg
File:Memory Alpha.svg|{{ma|About|Links}} can be put in captions
File:Memory Alpha.svg
File:Memory Alpha.svg|Full {{h|Wiki markup|MediaWiki markup}}<br>syntax may be used…
</gallery>

Which produces:

Notice that there are no brackets except for links within captions. Captions are optional. Images are separated by new lines.

It is also possible to alter the maximum width of all images within a gallery with widths, define how many columns of images there should be with columns, and specify a header caption for the entire gallery with caption. For example,

<gallery widths="100" columns="2" caption="performing gallery features">
File:Memory Alpha.svg|Caption
File:Memory Alpha.svg|Caption
File:Memory Alpha.svg|Caption
File:Memory Alpha.svg|Caption
</gallery>

renders as:

See also[]

Advertisement