ThumbGallery plugin. Creating a gallery of the attached pictures | jenyay.net

ThumbGallery plugin. Creating a gallery of the attached pictures

ThumbGallery plugin designed to create galleries of the attached files on wiki pages.

ThumbGallery 1.4.1 (Required OutWiker version: 3.0.0.868 and above)

ThumbGallery 1.6.2 (Required OutWiker version: 3.2.0.922 and above)

Using

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. To facilitate the use of commands when you click on the plugin button (or by selecting the appropriate menu item) to open the dialog shown in the following figure:

The syntax of the command (:thumbgallery:) to show all attached images as follows:

(:thumbgallery [params]:)

(:thumbgallery:) command can take the following 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.

In the gallery you can also place the selected images, this is the following syntax:

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

Possible parameters in this case are the same as described above. Comments on the use of images is not required. Also, do not necessarily write Attach: before the file name.

Examples

More clearly using the command (: thumbgallery :) will be seen in the following examples.

Creating a gallery from the specified files without splitting into columns

(:thumbgallery:)
    Attach:"DSC_0457.jpg"
    Attach:"DSC_0487.jpg"
    Attach:"DSC_0518.jpg"
    Attach:"DSC_0595.jpg"
    Attach:"subdir/subdir2/DSC_0124.jpg"
    Attach:"subdir/subdir2/DSC_0126.jpg"
    Attach:"subdir/subdir2/DSC_0129.jpg"
    Attach:"subdir/DSC_0679.jpg"
    Attach:"subdir/DSC_0684.jpg"
(:thumbgalleryend:)

thumbgallery_01.png: 996x909, 643k (25.06.2022 14:24)

Creating a gallery from the specified files with a splitting into columns and specifying the thumbnail size

(:thumbgallery cols=3 px=180:)
    Attach:"DSC_0457.jpg"
    Attach:"DSC_0487.jpg"
    Attach:"DSC_0518.jpg"
    Attach:"DSC_0595.jpg"
    Attach:"subdir/subdir2/DSC_0124.jpg"
    Attach:"subdir/subdir2/DSC_0126.jpg"
    Attach:"subdir/subdir2/DSC_0129.jpg"
    Attach:"subdir/DSC_0679.jpg"
    Attach:"subdir/DSC_0684.jpg"
(:thumbgalleryend:)

thumbgallery_05.png: 998x899, 369k (25.06.2022 14:24)

Creating a gallery from the specified files with a splitting into columns and captions for pictures

(:thumbgallery cols=3 px=180:)
    Attach:"DSC_0457.jpg" | First comment
    Attach:"DSC_0487.jpg" | Second comment
    Attach:"DSC_0518.jpg"
    Attach:"DSC_0595.jpg"
    Attach:"subdir/DSC_0679.jpg" | Yet another comment
    Attach:"subdir/DSC_0684.jpg"
(:thumbgalleryend:)

thumbgallery_06_en.png: 993x920, 268k (25.06.2022 16:12)

Creating a gallery from all attached files, ignoring files in subfolders without splitting into columns

(:thumbgallery px=200:)
    *
(:thumbgalleryend:)

or

(:thumbgallery px=200:)
    *.*
(:thumbgalleryend:)

or

(:thumbgallery px=200:)
    Attach:"*"
(:thumbgalleryend:)

thumbgallery_02.png: 994x903, 473k (25.06.2022 14:24)

Creating a gallery from all attached files, taking into account files in subfolders without splitting into columns

((:thumbgallery px=200:)
    **/*
(:thumbgalleryend:)

or

((:thumbgallery px=200:)
    Attach:"**/*"
(:thumbgalleryend:)

thumbgallery_03.png: 995x903, 648k (25.06.2022 14:24)

Create a gallery from all files in a subfolder (not including nested subfolders)

(:thumbgallery px=200 cols=3:)
    subdir/*
(:thumbgalleryend:)

or

(:thumbgallery px=200 cols=3:)
    Attach:"subdir/*"
(:thumbgalleryend:)

thumbgallery_04.png: 994x902, 219k (25.06.2022 14:24)

Create a gallery from all files in a subfolder, including nested subfolders

(:thumbgallery px=200 cols=3:)
    subdir/**/*
(:thumbgalleryend:)

or

(:thumbgallery px=200 cols=3:)
    Attach:"subdir/**/*"
(:thumbgalleryend:)

Creating a gallery from files selected by mask

(:thumbgallery px=200 cols=3:)
    *.png
(:thumbgalleryend:)

or

(:thumbgallery px=200 cols=3:)
    Attach:"*.png"
(:thumbgalleryend:)

Enjoy the use of plugin!

Versions history

1.6.2 (December 24, 2023)

  • Updated the German localization.

1.6.1 (May 03, 2023)

  • Migrate to new API.

1.6 (June 26, 2022)

  • Added the ability to select files by mask.
  • Added the ability to select attachments in nested folders with the dialog.

1.5 (May 28, 2022)

  • Added the supporting subdirectories in attachments.

1.4.1 (July 04, 2021)

  • Code optimization.

1.4 (October 19, 2019)

  • Migrate to new API.

1.3 (August 26, 2018)

  • Add German localization.

1.2.1 (May 26, 2018)

  • Updated the Ukrainian localization.

1.2 (February 15, 2018)

  • Add OutWiker 2.1 support. Migrate to Python 3.

1.1.5 (October 17, 2016)

  • Added OutWiker 2.0 supporting.

1.1.4 (August 20, 2016)

  • Added the Swedish translation.

1.1.3 (May 30, 2016)

  • Bug fixes.

1.1.2 (January 20, 2015)

  • Minor interface improvements.
  • Cleanup code.

1.0 (July 03, 2012)

  • The first version.

Вы можете подписаться на новости сайта через RSS, Группу Вконтакте или Канал в Telegram.
1 stars

Рейтинг 1.0/5. Всего 1 голос(а, ов)




Subscribe
Name:
Title:
 Comment
 
 
Enter code 312