![]() |
Page list templatesThis page contains "templates" for PmWiki's Brief Syntax Explanation:See also: PageLists, Page 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]]
(: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=#titleA simple bullet list of page titles. Use
[[#title]]
* [[{=$FullName}|+]]
[[#titleend]]
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} self=0:)
[[#includeend]]
fmt=#includefaqInclude just the #faq sections from pages in the list. (This can also be expensive,
[[#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]]
This page contains "templates" for PmWiki's Brief Syntax Explanation:See also: PageLists, Page 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]]
(: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=#titleA simple bullet list of page titles. Use
[[#title]]
* [[{=$FullName}|+]]
[[#titleend]]
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} self=0:)
[[#includeend]]
fmt=#includefaqInclude just the #faq sections from pages in the list. (This can also be expensive,
[[#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=#onelinecompact pagelist in one line.
[[#oneline]](:if ! equal {<$Group} {=$Group}:)
(:if true:)'''[[{=$FullName}|+]]''' \
[[#onelineend]]
fmt=#forumforum topics in table format
[[#forum]]
(:if equal {<$Group}:)
(:table class=forum width="90%" :)
(:cell style="background:#e5e5ff;padding-left:5px" :)'''Sujet'''
(:cell style="background:#e5e5ff;padding-left:5px" :)%thd%'''Dernière maj'''
(:cell style="background:#e5e5ff;padding-left:5px" :)%thd%'''Par''' (: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=#cnforumforum topics in table format simple
[[#cnforum]]
(:if equal {<$Group}:)
(:table class=forum width="98%":)
(:cell style="background:#e2e5e2;padding-left:5px" :)'''Page'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''créée le'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''par'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''Dernière màj'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''par''' (:if:)
(:cellnr style="background:#f1f6f1;;padding-left:5px:" :)[[{=$FullName}|{=$Group} / {=$Titlespaced}]]
(:cell style="background:#f1f6f1;padding-left:5px;" :){=$Created}
(:cell style="background:#f1f6f1;padding-left:5px;" :)[[~{=$CreatedBy}]]
(:cell style="background:#f1f6f1;padding-left:5px;" :){=$LastModified}
(:cell style="background:#f1f6f1;padding-left:5px;" :)[[~{=$LastModifiedBy}]]
(:if equal {>$Group}:)
(:tableend:)(:if:)
[[#cnforumend]]
fmt=#ccforumforum topics in table format simple centre
[[#ccforum]]
(:if equal {<$Group}:)
(:table class=forum align=center width="98%":)
(:cell style="background:#e2e5e2;padding-left:5px" :)'''Page'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''créée le'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''par'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''Dernière màj'''
(:cell style="background:#e2e5e2;padding-left:5px" :)%thd%'''par''' (:if:)
(:cellnr style="background:#f1f6f1;;padding-left:5px:" :)[[{=$FullName}|{=$Group} / {=$Titlespaced}]]
(:cell style="background:#f1f6f1;padding-left:5px;" :){=$Created}
(:cell style="background:#f1f6f1;padding-left:5px;" :)[[~{=$CreatedBy}]]
(:cell style="background:#f1f6f1;padding-left:5px;" :){=$LastModified}
(:cell style="background:#f1f6f1;padding-left:5px;" :)[[~{=$LastModifiedBy}]]
(:if equal {>$Group}:)
(:tableend:)(:if:)
[[#ccforumend]]
|