Nächste Überarbeitung | Vorhergehende Überarbeitung |
hilfe:gallery_plugin_syntax [2008/12/03 00:31] – angelegt vehtoh (admin) | hilfe:gallery_plugin_syntax [2011/09/25 01:48] (aktuell) – Externe Bearbeitung 127.0.0.1 |
---|
A basic gallery can be added by selecting a namespace like this: | A basic gallery can be added by selecting a namespace like this: |
| |
{{gallery>namespace}} | {{gallery>namespace}} |
| |
All imagefiles in the selected namespace will be added to the image gallery. Note: those images need to be a valid pagename, eg. all lowercase. | All imagefiles in the selected namespace will be added to the image gallery. Note: those images need to be a valid pagename, eg. all lowercase. |
Instead of using a whole namespace of images, you can also specify a single image – this makes most sense when combined with the lightbox mode (see below). | Instead of using a whole namespace of images, you can also specify a single image – this makes most sense when combined with the lightbox mode (see below). |
| |
{{gallery>namespace:someimage.jpg}} | {{gallery>namespace:someimage.jpg}} |
| |
The created gallery can be aligned by using whitespace (defaults to centered): | The created gallery can be aligned by using whitespace (defaults to centered): |
| |
{{gallery> namespace}} (right aligned) | {{gallery> namespace}} (right aligned) |
{{gallery>namespace }} (left aligned) | {{gallery>namespace }} (left aligned) |
{{gallery> namespace }} (centered) | {{gallery> namespace }} (centered) |
| |
You can define the wanted thumbnail size by adding its dimension as parameter: | You can define the wanted thumbnail size by adding its dimension as parameter: |
| |
{{gallery>namespace?150x150}} | {{gallery>namespace?150x150}} |
| |
The default is a dimension of 120×120 pixels. | The default is a dimension of 120×120 pixels. |
You can define the number of columns as well: | You can define the number of columns as well: |
| |
{{gallery>namespace?6}} | {{gallery>namespace?6}} |
| |
The default number of columns is 5 and can be configured in the config manager. If you specify a 0 no table is used instead all thumbnails are added in a sequence. | The default number of columns is 5 and can be configured in the config manager. If you specify a 0 no table is used instead all thumbnails are added in a sequence. |
To have the filename displayed below the thumbnails add the showname parameter (if this is made the default in the config, you may disable it with noshowname): | To have the filename displayed below the thumbnails add the showname parameter (if this is made the default in the config, you may disable it with noshowname): |
| |
{{gallery>namespace?showname}} | {{gallery>namespace?showname}} |
| |
If you want the files sorted in the reverse order use the reverse keyword (if this is made the default in the config, you may disable it with noreverse): | If you want the files sorted in the reverse order use the reverse keyword (if this is made the default in the config, you may disable it with noreverse): |
| |
{{gallery>namespace?reverse}} | {{gallery>namespace?reverse}} |
| |
If you don't want to link to the image detail pages but directly to the image itself use the direct parameter (if this is made the default in the config, you may disable it with nodirect): | If you don't want to link to the image detail pages but directly to the image itself use the direct parameter (if this is made the default in the config, you may disable it with nodirect): |
| |
{{gallery>namespace?direct}} | {{gallery>namespace?direct}} |
| |
For fancy JavaScript based inline browsing of the images use the lightbox keyword 1). This feature implicitly sets the direct parameter. If this is made the default in the config, you may disable it with nolightbox. | For fancy JavaScript based inline browsing of the images use the lightbox keyword 1). This feature implicitly sets the direct parameter. If this is made the default in the config, you may disable it with nolightbox. |
| |
{{gallery>namespace?lightbox}} | {{gallery>namespace?lightbox}} |
| |
All params can be combined: | All params can be combined: |
| |
{{gallery>namespace?150x150&6&showname}} | {{gallery>namespace?150x150&6&showname}} |
| |
You can also specify the size of lightbox images. It is done the same way as with thumbnails, except using a capital 'X'. The default is 800×600. | You can also specify the size of lightbox images. It is done the same way as with thumbnails, except using a capital 'X'. The default is 800×600. |
| |
{{gallery>namespace?lightbox&500X400}} | {{gallery>namespace?lightbox&500X400}} |
| |
IMPORTANT: When you have added your pictures they may not show up in the gallery: add '&purge=true' to the end of the URL to clear the cache - and then you should see them. | IMPORTANT: When you have added your pictures they may not show up in the gallery: add '&purge=true' to the end of the URL to clear the cache - and then you should see them. |