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.11 00.11 MarkupToHTML begin
 3: 00.11 00.11 MarkupToHTML begin
 4: 00.12 00.12 MarkupToHTML end
 5: 00.12 00.12 MarkupToHTML begin
 6: 00.12 00.12 FPLTemplate: Chain begin
 7: 00.12 00.12 FPLTemplate: FPLTemplateLoad
 8: 00.12 00.12 FPLTemplate: FPLTemplateDefaults
 9: 00.12 00.12 FPLTemplate: FPLTemplatePageList
10: 00.12 00.12 MakePageList pre
11: 00.12 00.12 PageListSources begin
12: 00.12 00.12 PageStore::ls begin wiki.d/{$FullName}
13: 00.14 00.13 PageStore::ls merge wiki.d/{$FullName}
14: 00.15 00.14 PageStore::ls end wiki.d/{$FullName}
15: 00.15 00.14 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
16: 00.15 00.14 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
17: 00.15 00.14 PageStore::ls end $FarmD/wikilib.d/{$FullName}
18: 00.15 00.14 PageListSources end count=315
19: 00.15 00.14 PageListSort pre ret=4 order=name
20: 00.15 00.14 MakePageList items count=315, filters=
21: 00.15 00.14 MakePageList post count=315, readc=0
22: 00.15 00.14 PageListSort begin
23: 00.15 00.14 PageListSort sort
24: 00.16 00.15 PageListSort end
25: 00.16 00.15 MakePageList end
26: 00.16 00.15 FPLTemplate: FPLTemplatePmWikiOrg
27: 00.16 00.15 MarkupToHTML begin
28: 00.16 00.15 MarkupToHTML end
29: 00.16 00.15 FPLTemplate: FPLTemplateSliceList
30: 00.16 00.15 FPLTemplate: FPLTemplateFormat
31: 00.16 00.15 MarkupToHTML begin
32: 00.17 00.16 MarkupToHTML end
33: 00.17 00.16 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
34: 00.17 00.16 FPLTemplate: Chain end
35: 00.17 00.16 MarkupToHTML end
36: 00.17 00.16 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
37: 00.17 00.16 ReadApprovedUrls SiteAdmin.ApprovedUrls end
38: 00.22 00.20 MarkupToHTML end
39: 00.22 00.21 MarkupToHTML begin
40: 00.23 00.22 MarkupToHTML end
41: 00.24 00.22 MarkupToHTML begin
42: 00.24 00.22 MarkupToHTML end
43: 00.24 00.22 now
Peak memory: 4,812,856 bytes