In addition to adding individual images to and article, you can also create image galleries. This is an easy way of displaying a large number of images.
Syntax
Edit
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|[[Memory Alpha:About|Links]] can be put in captions File:Memory Alpha.svg File:Memory Alpha.svg|Full [[Help: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 thumbnails' maximum height and width, define how many images should be displayed per row, and specify a header caption for the entire gallery:
-
heights
adjusts the maximum height andwidths
adjusts the maximum width of all thumbnails within a gallery -
perrow
adjusts the number of images per row -
caption
gives the gallery a caption
This example...
<gallery heights="200" widths="200" perrow="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>
...is rendered as...
Go • Search • Namespaces • Page names • Shortcuts (keyboard) • Links (backlinks • piped • interwiki • redirects) • Categories • Supported browsers
New pages • Editing • Sections • Templates • Special characters • ISBN links • Edit summary • Minor edits • Edit conflicts
Wiki markup (HTML) • Tables (sorting) • Sections • Images (galleries) • Formulas • Poems and lyrics
Recent changes (enhanced) • Related changes • Watching pages • Diff • Page history • Edit summary • User contributions • Minor edits
Starting a new page • Renaming a page • Merging two pages • Protecting a page • Deleting a page • Edit conflicts