Wikipedia:Gallery tag

From Wikipedia, the free encyclopedia

Shortcut:
WP:GALLERY

As of version 1.4, MediaWiki supports making image galleries. This is an easy way of displaying a large number of images.

[edit] Syntax

The extended syntax is (see Gallery tag help and below for full list of parameters):

<gallery caption="Sample gallery" widths="180px" heights="120px" perrow="3">
Image:Wiki.png|Caption text.
[...]
</gallery>

The basic syntax is:

<gallery>
Image:Wiki.png
Image:Wiki.png|Captioned
Image:Wiki.png
Image:Wiki.png|[[Help:Contents/Links|Links]] can be put in captions.
Image:Wiki.png
Image:Wiki.png|Full [[MediaWiki]]<br />[[syntax]] may now 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.

[edit] See also

MediaWiki wiki has a page about this at:
Languages