This page contains "templates" for PmWiki's (:pagelist:) directive.
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
The default template for pagelists when fmt= isn't specified.
[[#default]]
(:if ! equal {=$Group} {<$Group}:)
:[[{=$Group}]] /:
(:if:)
: :[[{=$Group}/{=$Name}]]
[[#defaultend]]
Display pages by group/name.
[[#bygroup]]
(:if ! equal {=$Group} {<$Group}:)
:[[{=$Group}]] /:
(:if:)
: :[[{=$Group}/{=$Name}]]
[[#bygroupend]]
A simple bullet list of page names.
[[#simple]]
* [[{=$FullName}]]
[[#simpleend]]
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]]
A bullet list of groups.
[[#group]]
(:if ! equal {=$Group} {<$Group}:)
* [[{=$Group}]]
[[#groupend]]
List pagename (date) and title of newsletters
[[#archive]](:if equal {<$Group}:)
>>blogarchive<<(:if:)
* [[{=$Group}.{=$Namespaced}|'''{=$Namespaced}''']]: ''{=$Title}''
(:if equal {>$Group}:)
>><<(:if:)
[[#archive]]
[[#articleteasers]]
[[{=$Group}/{=$Name}|'''[+{=$Groupspaced}: {=$Title}+]''']]
%define=leftborder border-left="2px solid #c84f00" margin-left="2px" padding="0 0 0 10px"%
>>leftborder<<
(:include {=$FullName} lines=4:)
[-[[{=$FullName}|Read More]]-]
(:if ! equal {>$Group}:)
>><<
(:if:)
[[#articleteasersend]]
[[#include]]
(:if auth edit:)
%rfloat%[[{=$FullName}?action=edit|[-edit-]]](:if:)
!!![[{=$FullName}|[+{=$Title}+]]]
(:include {=$FullName}:)
----
(:if equal {>$Group}:)
(:title {$Title}:)(:if:)
[[#includeend]]
[[#blogtitles]](:if equal {<$Group}:)
>>blogtitles<<(:if:)
* [[{=$Namespaced}]]
(:if equal {>$Group}:)
>><<(:if:)
[[#blogtitlesend]]
[[#headerinclude]]
(:include {=$FullName} para=1:)
!!!!Full article [[{=$FullName}|[+{=$Title}+]]]
----
(:if equal {>$Group}:)
(:title {$Title}:)(:if:)
[[#headerincludeend]]
[[#bloginclude]]
(:if auth edit:)
%rfloat%[[{=$FullName}?action=edit|[-edit-]]](:if:)
!!!![[{=$FullName}|{=$BlogDate}]] - {=$BlogTitle}
(:include {=$FullName}:)
*[-[[{=$FullName}|CLICK HERE]] to read or post comments for this entry ...-]
----
(:if equal {>$Group}:)
(:title {$Title}:)(:if:)
[[#includeend]]