[pmwiki-users] WikiTrails and pagelists

Hans design5 at softflow.co.uk
Mon Apr 16 08:52:41 CDT 2007


Saturday, April 14, 2007, 1:59:23 AM, Vince wrote:

>> [[#trailindex]]
>> (:if equal {*$FullName} {=$FullName}:)<< [[{<$FullName}|{<$Title}]] |
>> [[{=$FullName}|{=$Title}]] | [[{>$FullName}|{>$Title}]] >>(:ifend:)
>> [[#trailindexend]]
> As someone who has not grown up with this, it would be incredibly  
> useful if
> someone would say in words what this does. I am very confused.

This is a pagelist format template. Pagelist will have a list of
pagenames, perhaps all names in one group etc. according to parameters
set within the pagelist directive. The formatting template tells
Pagelist  what to output in what form:

Here we got:
   (:if equal {*$FullName} {=$FullName}:)
Pagelist checks if the current name it processes from its list
"{=$FullName}" matches the name of the page, or better the name of the
page it is referring to (it could be in the Groupfooter, but
{*$FullName} refers to the main page, not the GroupFooter). So if thee
is a match Pagelist will output on one line:
<<  - two angle brackets you see,
[[{<$FullName}|{<$Title}]] - a link to the previous pagename on the
     list, displayed by its title,
| - a pipe character you see,
[[{=$FullName}|{=$Title}]] - a link to the current page by its title,
| - another pipe charcter,
[[{>$FullName}|{>$Title}]] - a link to the following page on its list,
     displayed by its title,
>> - two more angel brackets you see.
Then the condition ends. Nothing else is shown.

In other words the output looks like:
<< PrevPage | ThisPage | NextPage >>
with the actual titles of the pages showing, and as links.

{=$FullName} is the current name the pagelist processes.
{<$FullName} is the previous page on its list, and
{>$FullName} is the next page on its list.

Hope this helps to make it clearer.


  ~Hans




More information about the pmwiki-users mailing list