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. 

<b>Syntax</b>

(:thumbgallery [params]:)

or

(:thumbgallery [params]:)
[Attach:]picture_1 [| Comment]
[Attach:]picture_2 [| Comment]
...
(:thumbgalleryend:)

<b>Parameters</b>
<ul>
<li><i>cols = ...</i> An integer value. The number of columns in the table. If <i>cols = 0</i> or not specified, then the gallery will be a sequence of thumbnails without splitting into rows and columns.</li>

<li><i>px = ...</i> An integer value. Specifies the size of the thumbnails (on the larger side). If <i>px = 0</i>, or the parameter is not specified, the default value from the program settings.</li>
</ul>

<b>Examples</b>

<u>Creating a gallery of all attached files</u>

(:thumbgallery:)


<u>Creating a gallery of all attached files with a given thumbnails size</u>

(:thumbgallery px=150:)


<u>Creating a gallery of all attached files as a table design</u>

(:thumbgallery px= 150 cols=3:)


<u>Creating a gallery of the selected files as a table design</u>

(:thumbgallery cols=3 px=150:)
&nbsp;&nbsp;&nbsp;Attach:"filename_1.jpg"
&nbsp;&nbsp;&nbsp;Attach:"filename_2.jpg"
&nbsp;&nbsp;&nbsp;Attach:"filename_3.jpg"
(:thumbgalleryend:)

or

(:thumbgallery cols=3 px=150:)
&nbsp;&nbsp;&nbsp;filename_1.jpg
&nbsp;&nbsp;&nbsp;filename_2.jpg
&nbsp;&nbsp;&nbsp;filename_3.jpg
(:thumbgalleryend:)


<u>Creating a gallery of the selected files with comments</u>

(:thumbgallery cols=3 px=150:)
&nbsp;&nbsp;&nbsp;Attach:"filename_1.jpg"
&nbsp;&nbsp;&nbsp;Attach:"filename_2.jpg"
&nbsp;&nbsp;&nbsp;Attach:"filename_3.jpg" | Comment for filename_3
&nbsp;&nbsp;&nbsp;Attach:"filename_4.jpg" | Comment for filename_4
(:thumbgalleryend:)

or

(:thumbgallery cols=3 px=150:)
&nbsp;&nbsp;&nbsp;filename_1.jpg
&nbsp;&nbsp;&nbsp;filename_2.jpg
&nbsp;&nbsp;&nbsp;filename_3.jpg | Comment for filename_3
&nbsp;&nbsp;&nbsp;filename_4.jpg | Comment for filename_4
(:thumbgalleryend:)


<u>Select files in nested folders</u>

(:thumbgallery cols=3 px=150:)
&nbsp;&nbsp;&nbsp;Attach:"folder/subfolder/filename_1.jpg"
&nbsp;&nbsp;&nbsp;Attach:"folder/subfolder/filename_2.jpg"
&nbsp;&nbsp;&nbsp;Attach:"folder/subfolder/filename_3.jpg" | Comment for filename_3
&nbsp;&nbsp;&nbsp;Attach:"folder/subfolder/filename_4.jpg" | Comment for filename_4
(:thumbgalleryend:)

or

(:thumbgallery cols=3 px=150:)
&nbsp;&nbsp;&nbsp;folder/subfolder/filename_1.jpg
&nbsp;&nbsp;&nbsp;folder/subfolder/filename_2.jpg
&nbsp;&nbsp;&nbsp;folder/subfolder/filename_3.jpg | Comment for filename_3
&nbsp;&nbsp;&nbsp;folder/subfolder/filename_4.jpg | Comment for filename_4
(:thumbgalleryend:)


<u>Select files by mask</u>

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:)

