This page contains "templates" for PmWiki's (:pagelist:) directive.

Brief Syntax Explanation:

See also: Pagelist Explained, Page Variables, Conditional Markup, Cookbook:PagelistTemplateSamples

Use with page variables:

   =   current item
   <   previous item
   >   next item

Conditionals used to structure pagelist output:

   (:if equal {<$Group}:)               At beginning of list
   (:if equal {>$Group}:)               At end of list
   (:if ! equal {=$Group} {<$Group}:)   First item in group
   (:if ! equal {=$Group} {>$Group}:)   Last item in group

fmt=#default

The default template for pagelists when fmt= isn't specified.

[[#default]]
(:if ! equal {=$Group} {<$Group}:)

:[[{=$Group}]] /:
(:if:)
: :[[{=$Group}/{=$Name}]]
[[#defaultend]]

fmt=#bygroup

Display pages by group/name.

[[#bygroup]]
(:if ! equal {=$Group} {<$Group}:)

:[[{=$Group}]] /:
(:if:)
: :[[{=$Group}/{=$Name}]]
[[#bygroupend]]

fmt=#simple

A simple bullet list of page names.

[[#simple]]
* [[{=$FullName}]]
[[#simpleend]]

fmt=#title

A simple bullet list of page titles. Use order=title to have them sorted by title (the default sort is by name).

[[#title]]
* [[{=$FullName}|+]]
[[#titleend]]

fmt=#group

A bullet list of groups.

[[#group]]
(:if ! equal {=$Group} {<$Group}:)
* [[{=$Group}]]
[[#groupend]]

fmt=#forum

forum topics in table format

[[#forum]]
(:if equal {<$Group}:)
(:table class=forum width=100% cellpadding=0 cellspacing=0:)
(:cell class=messagehead :)%thd%'''Topic'''
(:cell class=messagehead :)%thd%'''Posts'''  
(:cell class=messagehead :)%thd%'''Last Posted''' 
(:cell class=messagehead :)%thd%'''By''' (:if:)
(:cellnr class=messageitem :)[[{=$FullName}|+]] 
(:cell class=messageitem :){=$PostCount}
(:cell class=messageitem :){=$LastModified}
(:cell class=messageitem :){=$LastModifiedBy} 
(:if equal {>$Group}:)
(:tableend:)(:if:)
[[#forumend]]