(:groupheader:)(:Summary:[[(PmWiki/PageList)Templates]] for PmWiki's [[PmWiki/Page lists]] directive:) 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. <:vspace> <:vspace> !!Page list template documentation * [[PmWiki.Page Lists]] - {PmWiki/PageLists$:Summary} * [[PmWiki.Page List Templates]] - {PmWiki/PageListTemplates$:Summary} * [[PmWiki.Page Variables]] - {PmWiki/PageVariables$:Summary} * [[PmWiki.PageTextVariables|Page Text Variables]] - {PmWiki/PageTextVariables$:Summary} * [[PmWiki.Conditional Markup]] - {PmWiki/PageLists$:Summary} * [[Cookbook:Pagelist Template Samples]] - {Cookbook/PagelistTemplateSamples$:Summary} <:vspace> <:vspace> !!fmt=#default <:vspace> The default template for pagelists when [@fmt=@] isn't specified (and note that on the PmWiki.org wiki, this template is over-ridden by the one on the [[Site.LocalTemplates]] page). <:vspace> (:markup class="horiz":) (:if false:) [[#default]] (:template first {=$Group}:) <:vspace> :[[{=$Group}/]] /: (:template each:) : :[[{=$Group}/{=$Name}]] [[#defaultend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#default count=6:) (:markupend:) <:vspace> <:vspace> !!fmt=#bygroup <:vspace> Display pages by group/name. <:vspace> (:markup class="horiz":) (:if false:) [[#bygroup]] (:template first {=$Group}:) <:vspace> :[[{=$Group}/]] /: (:template each:) : :[[{=$Group}/{=$Name}]] [[#bygroupend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#bygroup count=6:) (:markupend:) <:vspace> <:vspace> !!fmt=#simple <:vspace> A simple bullet list of page names. <:vspace> (:markup class="horiz":) (:if false:) [[#simple]] * [[{=$FullName}]] [[#simpleend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#simple count=5:) (:markupend:) <:vspace> <:vspace> !!fmt=#title <:vspace> A simple bullet list of page titles. <:vspace> (:markup class="horiz":) (:if false:) [[#title]] (:template defaults order=title:) * [[{=$FullName}|+]] [[#titleend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#title count=5:) (:markupend:) <:vspace> <:vspace> !!fmt=#titlespaced <:vspace> Outputs wiki page titles with spaces between the words in the title. <:vspace> (:markup class="horiz":) (:if false:) [[#titlespaced]] (:template defaults order=title:) * [[{=$FullName}|{=$Titlespaced}]] [[#titlespacedend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#titlespaced count=5:) (:markupend:) <:vspace> <:vspace> !!fmt=#group <:vspace> A bullet list of groups. <:vspace> [@ [[#group]] (:template first {=$Group}:) * [[{=$Group}/]] [[#groupend]] @] <:vspace> <:vspace> !!fmt=#include <:vspace> Concatenate the text of pages in the list. (Note, this can be an expensive operation!) <:vspace> [@ [[#include]] (:include {=$FullName} self=0:) [[#includeend]] @] <:vspace> <:vspace> !!fmt=#includefaq <:vspace> 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!) <:vspace> [@ [[#includefaq]] !![[{=$FullName}|+]] >>faq<< (:include {=$FullName}#faq#faqend self=0:) >><< [[#includefaqend]] @] <:vspace> <:vspace> !!fmt=#description <:vspace> List pages and append the page's description if it exists. Creates dash by all names, but adding a nested loop to get rid of it causes markup problems (nested loops are not allowed). <:vspace> (:markup class="horiz":) (:if false:) [[#description]] * [[{=$FullName}|+]] - {=$Description} [[#descriptionend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#description count=7:) (:markupend:) <:vspace> <:vspace> !!fmt=#simplename <:vspace> Simple bullet list of page names, without the Group name. <:vspace> (:markup class="horiz":) (:if false:) [[#simplename]] * [[({=$Group}/){=$Name}]] [[#simplenameend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#simplename count=5:) (:markupend:) <:vspace> <:vspace> !!fmt=#simplenamespaced <:vspace> Simple bullet list of spaced page names, without the Group name. <:vspace> (:markup class="horiz":) (:if false:) [[#simplenamespaced]] * [[({=$Group}/){=$Namespaced}]] [[#simplenamespacedend]] (:ifend:) <:vspace> (:pagelist group={$Group} fmt=#simplenamespaced count=5:) (:markupend:) <:vspace> <:vspace> !! fmt=#titlesummary <:vspace> A simple bullet list of page title and summary. <:vspace> (:markup class=horiz:) >>comment<< [[#titlesummary]] * [[{=$FullName} | {=$Title}]] &nbsp; [-{=$:Summary}-] [[#titlesummaryend]] >>font-size:smaller<< <:vspace> (:pagelist group=Site fmt=#titlesummary list=normal count=8:) (:markupend:) <:vspace> !!fmt=#count <:vspace> Number of pages in pagelist <:vspace> (:markup class="horiz":) (:if false:) [[#count]] (:template defaults wrap=inline list=normal :) (:template last:) {$$PageCount} [[#countend]] (:ifend:) <:vspace> Number of pages in the {$Group} group: (:pagelist group={$Group} fmt=#count :). <:vspace> Number of pages in the {$Group} group: (:pagelist group={$Group} fmt=count :). <:vspace> There are (:pagelist group=PmWiki fmt=#count wrap=html :) pages in the PmWiki group. (:markupend:) <:vspace> (:groupfooter:) <:block>