Help:Image gallery
From Memory Alpha, the free Star Trek reference.
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.
[edit] Syntax
The basic syntax of an image gallery is:
<gallery> Image:Wiki.png Image:Wiki.png|Captioned Image:Wiki.png Image:Wiki.png|[[Memory Alpha:About|Links]] can be put in captions. Image:Wiki.png Image:Wiki.png|Full [[Help:Wiki markup|MediaWiki markup]]<br/>syntax may be used… </gallery>
Which produces:
Links can be put in captions. |
|||
Full MediaWiki markup |
Notice that there are no brackets except for links within captions. Captions are optional. Images are separated by new lines.
As of newer MediaWiki versions it is now possible to alter the thumbnail's maximum height and width as well as how many images per row.
-
heightsadjusts the maximum height,widthsadjusts the maximum width of all thumbnails within a gallery -
perrowadjusts the number of images per row. -
captiongives the gallery a caption
This example...
<gallery heights="200" widths="200" perrow="2" caption="performing gallery features"> Image:Wiki.png|Caption Image:Wiki.png|Caption Image:Wiki.png|Caption Image:Wiki.png|Caption </gallery>
...is rendered as...



