|
|
Site /
Page List TemplatesThis page contains “templates” for PmWiki’s 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:
fmt=#defaultThe default template for pagelists when
[[#default]]
(:if ! equal {=$Group} {<$Group}:)
:[[{=$Group}]] /:
(:if:)
: :[[{=$Group}/{=$Name}]]
[[#defaultend]]
fmt=#bygroupDisplay pages by group/name.
[[#bygroup]]
(:if ! equal {=$Group} {<$Group}:)
:[[{=$Group}]] /:
(:if:)
: :[[{=$Group}/{=$Name}]]
[[#bygroupend]]
fmt=#simpleA simple bullet list of page names.
[[#simple]]
* [[{=$FullName}]]
[[#simpleend]]
fmt=#simpleNB
[[#simpleNB]]
[[{=$FullName}]]
[[#simpleNBend]]
fmt=#titleA simple bullet list of page titles. Use
[[#title]]
* [[{=$FullName}|+]]
[[#titleend]]
fmt=#titleNBA simple no-bullet list of page titles. Use
[[#titleNB]]
[[{=$FullName}|+]]
[[#titleNBend]]
fmt=#groupA bullet list of groups.
[[#group]]
(:if ! equal {=$Group} {<$Group}:)
* [[{=$Group}]]
[[#groupend]]
fmt=#includeConcatenate the text of pages in the list. (Note, this can be an expensive operation!)
[[#include]]
(:include {=$FullName}:)
[[#includeend]]
[[#forum]]
(:if equal {<$Group}:)
(:table class=forum width="90%" :)
(:cell style="background:#e5e5ff;padding-left:5px" :)'''Topic'''
(:cell style="background:#e5e5ff;padding-left:5px" :)%thd%'''Last Posted'''
(:cell style="background:#e5e5ff;padding-left:5px" :)%thd%'''By''' (:if:)
(:cellnr style="background:#eeeeff;padding-left:5px" :)[[{=$FullName}|+]]
(:cell style="background:#eeeeff;padding-left:5px" :){=$LastModified}
(:cell style="background:#eeeeff;padding-left:5px" :)[[~{=$LastModifiedBy}]]
(:if equal {>$Group}:)
(:tableend:)(:if:)
[[#forumend]]
fmt=#sidebartitlespagelist of spaced page titles for sidebar, without group heading
[[#sidebartitles]](:if equal {<$Group}:)
>>fplsidebar<<(:if:)
* [[{=$FullName}|{=$Titlespaced}]]
(:if equal {>$Group}:)
>><<(:if:)
[[#sidebartitlesend]]
fmt=#descriptionList pages and append the page’s description if it exists.
[[#description]]
*[[{=$FullName}|+]]
->'-''description:'' {=$:Description}-'
->'-''url:'' {=$:URL}-'
[[#descriptionend]]
fmt=#descriptionTXTList book titles and append the page’s description if it exists (Basic Writing Resources Texts.
[[#descriptionTXT]]
*[[{=$FullName}|+]]
->'-''description:'' {=$:Description}-'
[[#descriptionTXTend]]
fmt=#onelinecompact pagelist in one line.
[[#oneline]](:if ! equal {<$Group} {=$Group}:)
'''[[{=$Group}]] /''' \
(:if true:) | [[{=$FullName}|+]] \
[[#onelineend]]
fmt=#onelinecompact pagelist in one line.
[[#onelineNG]]
| [[{=$FullName}|+]] \
[[#onelineNGend]]
|