SideBarList

Try to create a Page List Template that colours alternate items using wiki styles with css3 selectors

#sidebarlist

Simple bullet page list of page titles, without the Group name, formatted with every other list item being an alternate colour.

>>comment<<
[[#sidebarlist]]
(:template first:)
%define=sidebarlist apply=list color:red li:nth-child(even)%
(:template each:)
* [[{=$Group}/{=$Name} | {=$Titlespaced}]] %sidebarlist%
[[#sidebarlistend]]

(:template first:) (:template each:)

(:pagelist group=PmWiki fmt=#sidebarlist list=normal count=8:)
 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 MarkupToHTML end
 5: 00.21 00.21 MarkupToHTML begin
 6: 00.21 00.21 FPLTemplate: Chain begin
 7: 00.21 00.21 FPLTemplate: FPLTemplateLoad
 8: 00.21 00.21 FPLTemplate: FPLTemplateDefaults
 9: 00.21 00.21 FPLTemplate: FPLTemplatePageList
10: 00.21 00.21 MakePageList pre
11: 00.21 00.21 PageListSources begin
12: 00.22 00.21 PageStore::ls begin wiki.d/{$FullName}
13: 00.22 00.21 PageStore::ls merge wiki.d/{$FullName}
14: 00.23 00.22 PageStore::ls end wiki.d/{$FullName}
15: 00.23 00.22 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
16: 00.23 00.22 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
17: 00.23 00.22 PageStore::ls end $FarmD/wikilib.d/{$FullName}
18: 00.23 00.22 PageListSources end count=310
19: 00.23 00.22 PageListSort pre ret=4 order=name
20: 00.23 00.22 MakePageList items count=310, filters=
21: 00.23 00.22 MakePageList post count=310, readc=0
22: 00.23 00.22 PageListSort begin
23: 00.23 00.22 PageListSort sort
24: 00.23 00.22 PageListSort end
25: 00.23 00.22 MakePageList end
26: 00.23 00.22 FPLTemplate: FPLTemplatePmWikiOrg
27: 00.23 00.22 MarkupToHTML begin
28: 00.23 00.22 MarkupToHTML end
29: 00.23 00.22 FPLTemplate: FPLTemplateSliceList
30: 00.23 00.22 FPLTemplate: FPLTemplateFormat
31: 00.24 00.23 MarkupToHTML begin
32: 00.24 00.23 MarkupToHTML end
33: 00.24 00.23 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
34: 00.24 00.23 FPLTemplate: Chain end
35: 00.24 00.23 MarkupToHTML end
36: 00.25 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
37: 00.25 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
38: 00.30 00.28 MarkupToHTML end
39: 00.31 00.29 MarkupToHTML begin
40: 00.32 00.30 MarkupToHTML end
41: 00.32 00.30 MarkupToHTML begin
42: 00.32 00.30 MarkupToHTML end
43: 00.32 00.30 now
Peak memory: 5,091,296 bytes