This page demonstrates the use of an alternative ImageTemplate page, in our case: Local Image Template.
(:ImageTemplate:LocalImageTemplate:) (:thumblist px=48 count=5 usetemplate=1:) |
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:
(:Image
Template:SomePage:)
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
(:Image
Template:SomePage{*$ThumbList_G}:)
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.