| Site / PageListTemplatesThis page contains "templates" for PmWiki's  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: 
 fmt=#defaultThe default template for pagelists when  
[[#default]]
(:template first {=$Group}:)
:[[{=$Group}/]] /:
(:template each:)
: :[[{=$Group}/{=$Name}]]
[[#defaultend]]
fmt=#bygroupDisplay pages by group/name. 
[[#bygroup]]
(:template first {=$Group}:)
:[[{=$Group}/]] /:
(:template each:)
: :[[{=$Group}/{=$Name}]]
[[#bygroupend]]
fmt=#simpleA simple bullet list of page names. 
[[#simple]]
* [[{=$FullName}]]
[[#simpleend]]
fmt=#titleA simple bullet list of page titles. 
[[#title]]
(:template defaults order=title:)
* [[{=$FullName}|+]]
[[#titleend]]
fmt=#titlespacedOutputs wiki page titles with spaces between the words in the title. 
[[#titlespaced]]
(:template defaults order=title:)
* [[{=$FullName}|{=$Titlespaced}]]
[[#titlespacedend]]
fmt=#groupA bullet list of groups. 
[[#group]]
(:template first {=$Group}:)
* [[{=$Group}/]]
[[#groupend]]
fmt=#includeConcatenate the text of pages in the list. (Note, this can be an expensive operation!) 
[[#include]]
(:include {=$FullName} self=0:)
[[#includeend]]
fmt=#includefaqInclude 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  
[[#includefaq]]
!![[{=$FullName}|+]]
>>faq<<
(:include {=$FullName}#faq#faqend self=0:)
>><<
[[#includefaqend]]
fmt=#descriptionList pages and append the page's description if it exists. 
[[#description]]
*[[{=$FullName}|+]]
(:if ! equal {=$Description} '':)
->'-''description:'' {=$Description}-'
(:if:)
[[#descriptionend]]
fmt=#simplenameSimple bullet list of page names, without the Group name. 
[[#simplename]]
* [[({=$Group}/){=$Name}]]
[[#simplenameend]]
fmt=#simplenamespacedSimple bullet list of spaced page names, without the Group name. 
[[#simplenamespaced]]
* [[({=$Group}/){=$Namespaced}]]
[[#simplenamespacedend]]
 |