Wikipedia:Gallery tag
From Wikipedia, the free encyclopedia
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:
Links can be put in captions. |
|||
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:
- m:Help:Images and other uploaded files#Gallery tag, category, table of images
- m:Template:gallery (backlinks, edit)
- More Gallery Options: See the drop-down box for more CSS gallery code