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:"filename_1.jpg"
Attach:"filename_2.jpg"
Attach:"filename_3.jpg"
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
filename_1.jpg
filename_2.jpg
filename_3.jpg
(:thumbgalleryend:)
Creating a gallery of the selected files with comments
(:thumbgallery cols=3 px=150:)
Attach:"filename_1.jpg"
Attach:"filename_2.jpg"
Attach:"filename_3.jpg" | Comment for filename_3
Attach:"filename_4.jpg" | Comment for filename_4
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
filename_1.jpg
filename_2.jpg
filename_3.jpg | Comment for filename_3
filename_4.jpg | Comment for filename_4
(:thumbgalleryend:)
Select files in nested folders
(:thumbgallery cols=3 px=150:)
Attach:"folder/subfolder/filename_1.jpg"
Attach:"folder/subfolder/filename_2.jpg"
Attach:"folder/subfolder/filename_3.jpg" | Comment for filename_3
Attach:"folder/subfolder/filename_4.jpg" | Comment for filename_4
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
folder/subfolder/filename_1.jpg
folder/subfolder/filename_2.jpg
folder/subfolder/filename_3.jpg | Comment for filename_3
folder/subfolder/filename_4.jpg | Comment for filename_4
(:thumbgalleryend:)
Select files by mask
Select all images files in __attach folder
(:thumbgallery cols=3 px=150:)
*
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
*.*
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
Attach:"*"
(:thumbgalleryend:)
Select images by mask files in __attach folder
(:thumbgallery cols=3 px=150:)
*.png
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
Attach:"*.png"
(:thumbgalleryend:)
Select images by mask files in __attach folder and all subfolders
(:thumbgallery cols=3 px=150:)
**/*.png
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
Attach:"**/*.png"
(:thumbgalleryend:)
Select images by mask files in single folder
(:thumbgallery cols=3 px=150:)
folder_name/*.jpg
(:thumbgalleryend:)
or
(:thumbgallery cols=3 px=150:)
Attach:"folder name/*.jpg"
(:thumbgalleryend:)