This page demonstrates the use of an alternative ImageTemplate page, in our case: Local Image Template.

(:thumblist px=48 count=5 usetemplate=1:)
2014-11-29T14.01.20-PB297709-Sin.jpeg: 444x351, 13k (2015-03-16 23:22) A_smoky_day_at_the_Sugar_Bowl--Hupa.jpg: 472x640, 50k (2009-02-13 12:30) Achelousaurus_dinosaur.png: 640x640, 575k (2009-02-13 12:30) Aerogelbrick.jpg: 606x640, 62k (2009-02-13 12:30) Atlantis_Docked_to_Mir.jpg: 728x640, 72k (2009-02-13 12:30)

How it works

This will work in PmWiki 2.2.0 beta or newer only.

If you define in your gallery page a PageTextVariable called ImageTemplate, and if such a wiki page exists, this page will be used as an ImageTemplate.

Otherwise, the first existing page of the following will be used: {$FullName}-ImageTemplate {$Group}.ImageTemplate {$SiteGroup}.ImageTemplate. ({$FullName} means the current page; {$Group} is the current group, {$SiteGroup} is usually the group Site/.)

To set the PageTextVariable, just add in the gallery page:


where SomePage (or OtherGroup.SomePage) is your ImageTemplate. No Spaces In The PageName!

In a wiki page you can define only one PageTextVariable called ImageTemplate. If you have two or more thumblists in one wiki page, you cannot have different ImageTemplates for each thumblist.

Very advanced users (if you are, you should have figured out the following by yourself):

If you want to have different ImageTemplates for each thumblist, it is possible, but very tricky: you set


And then, your ImageTemplates will be the pages SomePage1, SomePage2 etc..., a different page for each thumblist.

Note that the numbers start with first all thumbgallery markups, then thumblists or single thumbs. So the {*$ThumbList_G} variable may be not very intuitive.