Page List Templates

This page contains “templates” for PmWiki’s (:pagelist:) directive. The Site.LocalTemplates page can be created and used to store pagelist templates that are local to a site.

Brief Syntax Explanation:

See also: PageLists, Page Variables, Page Text Variables?, Conditional Markup, and 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


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

(:template first {=$Group}:)

:[[{=$Group}/]] /:
(:template each:)
: :[[{=$Group}/{=$Name}]]


Display pages by group/name.

(:template first {=$Group}:)

:[[{=$Group}/]] /:
(:template each:)
: :[[{=$Group}/{=$Name}]]


A simple bullet list of page names.

* [[{=$FullName}]]


A simple bullet list of page titles.

(:template defaults order=title:)
* [[{=$FullName}|+]]


Outputs wiki page titles with spaces between the words in the title.

(:template defaults order=title:)
* [[{=$FullName}|{=$Titlespaced}]]


A bullet list of groups.

(:template first {=$Group}:)
* [[{=$Group}/]]


Concatenate the text of pages in the list. (Note, this can be an expensive operation!)

(:include {=$FullName} self=0:)


Include just the #faq sections from pages in the list. (This can also be expensive, especially if the list includes pages that don’t have the [[#faq]] anchor!)

(:include {=$FullName}#faq#faqend self=0:)


List pages and append the page’s description if it exists.

(:if ! equal {=$Description} '':)
->'-''description:'' {=$Description}-'


Simple bullet list of page names, without the Group name.

* [[({=$Group}/){=$Name}]]


Simple bullet list of spaced page names, without the Group name.

* [[({=$Group}/){=$Namespaced}]]

What’s New

Aug 12, 2009

The convention is over; thank you for joining us!

Thank you for joining us! Please post links to your convention reports or photos to the Anticipation Livejournal, or let us know on Twitter. And we hope to see a lot of you at Aussiecon 4.


Aug 9, 2009

Hugo Winners Announced

The 2009 Hugo winners have been announced.


Aug 7, 2009

Heard about World Science Fiction Conventions (Worldcons) and think they sound cool but not sure they’re worth the money? Then Taster memberships are for you.