Jeremy's Notes

The Reverie of a Techie


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:gallery_syntax [2020/12/31 01:25] – created Jeremy McReynoldswiki:gallery_syntax [2021/01/09 15:47] (current) – external edit 127.0.0.1
Line 2: Line 2:
 ===== Basic Syntax ===== ===== Basic Syntax =====
 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>:wiki}} +{{gallery>:wiki:gallery_syntax}} 
-<code>{{gallery>:wiki}}</code>+<code>{{gallery>:wiki:gallery_syntax}}</code>
  
 All image files in the selected namespace will be added to the image gallery. Don't forget the “:” in front of the namespace. All image files in the selected namespace will be added to the image gallery. Don't forget the “:” in front of the namespace.
  
 Instead of using a whole namespace of images, you can also specify a single image – this makes more 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 more sense when combined with the lightbox mode (see below).
-{{gallery>:wiki:dokuwiki-128.png}} +{{gallery>:wiki:gallery_syntax:hockinghills01.jpg}} 
-<code>{{gallery>:wiki:dokuwiki-128.png}}</code>+<code>{{gallery>:wiki:gallery_syntax:hockinghills01.jpg}}</code>
  
 The created gallery can be aligned by using white space (defaults to centered): The created gallery can be aligned by using white space (defaults to centered):
-{{gallery> :wiki}} +{{gallery> :wiki:gallery_syntax}} 
-{{gallery>:wiki }} +{{gallery>:wiki:gallery_syntax }} 
-{{gallery> :wiki }} +{{gallery> :wiki:gallery_syntax }} 
-<code>{{gallery> namespace}} (right aligned) +<code>{{gallery> :wiki:gallery_syntax}} (right aligned) 
-{{gallery>namespace }} (left aligned) +{{gallery>namespace:wiki:gallery_syntax }} (left aligned) 
-{{gallery> namespace }} (centered)</code>+{{gallery> :wiki:gallery_syntax }} (centered)</code>
  
 Instead of a namespace, you can also give an HTTP(s) URL to any [[https://en.wikipedia.org/wiki/Media%20RSS|Media RSS]] or ATOM feed with enclosures (as produced by most photo sharing sites like Flickr). The images will then be pulled from that feed instead: Instead of a namespace, you can also give an HTTP(s) URL to any [[https://en.wikipedia.org/wiki/Media%20RSS|Media RSS]] or ATOM feed with enclosures (as produced by most photo sharing sites like Flickr). The images will then be pulled from that feed instead:
-{{gallery>http://www.23hq.com/rss/schabloni}} +<code>{{gallery>https://www.flickr.com/services/feeds/photos_public.gne?format=rss2}}</code>
-<code>{{gallery>http://www.23hq.com/rss/schabloni}}</code>+
  
 ==== Parameters ==== ==== Parameters ====
Line 50: Line 49:
 === Example === === Example ===
  
-{{gallery>:wiki?image_*.jpg&80x80&crop&lightbox}} +{{gallery> :wiki:gallery_syntax:hockinghills01.jpg?80x80&crop&lightbox&showtitle }} 
-<code>{{gallery>:wiki?image_*.jpg&80x80&crop&lightbox}}</code>+<code>{{gallery>:wiki?*01.jpg&80x80&crop&lightbox}}</code>
  
 This displays all images beginning with ''image_'' and ending in ''.jpg'' from the namespace ''images:vacation''. Thumbnails are cropped to 80x80 pixels and images will be opened in lightbox mode. This displays all images beginning with ''image_'' and ending in ''.jpg'' from the namespace ''images:vacation''. Thumbnails are cropped to 80x80 pixels and images will be opened in lightbox mode.
Line 57: Line 56:
 === Example === === Example ===
  
-{{gallery>?crop&lightbox}}+{{gallery>:wiki:gallery_syntax?crop&lightbox }}
  
 This displays all images in the current namespace using 2 parameters. Parameterlist begins with ''?'' additional ones are concatenated with ''&''. This displays all images in the current namespace using 2 parameters. Parameterlist begins with ''?'' additional ones are concatenated with ''&''.
wiki/gallery_syntax.1609395913.txt.gz · Last modified: 2021/01/09 15:47 (external edit)