ThumbGallery plugin adds a command (:thumbgallery:) into the wiki notation. This command can operate in two modes: show all attached images or only selected files.
Syntax
(:thumbgallery [params]:)
or
(:thumbgallery [params]:)
[Attach:]picture_1 [| Comment]
[Attach:]picture_2 [| Comment]
...
(:thumbgalleryend:)
Parameters
- cols = ... An integer value. The number of columns in the table. If cols = 0 or not specified, then the gallery will be a sequence of thumbnails without splitting into rows and columns.
- px = ... An integer value. Specifies the size of the thumbnails (on the larger side). If px = 0, or the parameter is not specified, the default value from the program settings.
Examples
Creating a gallery of all attached files
(:thumbgallery:)
Creating a gallery of all attached files with a given thumbnails size
(:thumbgallery px=150:)
Creating a gallery of all attached files as a table design
(:thumbgallery px= 150 cols=3:)
Creating a gallery of the selected files as a table design
(:thumbgallery cols=3 px=150:)
Attach:DSC_0567.jpg
Attach:DSC_0604.jpg
Attach:klyazma_2011_07.jpg
Attach:smoke.jpg
Attach:sunset_1.jpg
Attach:sev_beach2.jpg
(:thumbgalleryend:)
Creating a gallery of the selected files with comments
(:thumbgallery cols=3 px=150:)
DSC_0567.jpg
DSC_0604.jpg
klyazma_2011_07.jpg | Klyazma river
smoke.jpg | Smoky summer in Moscow
sunset_1.jpg
sev_beach2.jpg | Black Sea. Sevastopol
(:thumbgalleryend:)