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.02 00.02 config end
 2: 00.23 00.22 MarkupToHTML begin
 3: 00.23 00.22 MarkupToHTML begin
 4: 00.24 00.23 MarkupToHTML end
 5: 00.24 00.23 MarkupToHTML begin
 6: 00.24 00.23 FPLTemplate: Chain begin
 7: 00.24 00.23 FPLTemplate: FPLTemplateLoad
 8: 00.24 00.23 FPLTemplate: FPLTemplateDefaults
 9: 00.24 00.23 FPLTemplate: FPLTemplatePageList
10: 00.24 00.23 MakePageList pre
11: 00.24 00.23 PageListSources begin
12: 00.24 00.23 PageStore::ls begin wiki.d/{$FullName}
13: 00.25 00.23 PageStore::ls merge wiki.d/{$FullName}
14: 00.26 00.24 PageStore::ls end wiki.d/{$FullName}
15: 00.26 00.24 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
16: 00.26 00.24 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
17: 00.26 00.24 PageStore::ls end $FarmD/wikilib.d/{$FullName}
18: 00.26 00.24 PageListSources end count=311
19: 00.26 00.24 PageListSort pre ret=4 order=name
20: 00.26 00.24 MakePageList items count=311, filters=
21: 00.26 00.24 MakePageList post count=311, readc=0
22: 00.26 00.24 PageListSort begin
23: 00.26 00.24 PageListSort sort
24: 00.26 00.25 PageListSort end
25: 00.26 00.25 MakePageList end
26: 00.26 00.25 FPLTemplate: FPLTemplatePmWikiOrg
27: 00.26 00.25 MarkupToHTML begin
28: 00.26 00.25 MarkupToHTML end
29: 00.26 00.25 FPLTemplate: FPLTemplateSliceList
30: 00.26 00.25 FPLTemplate: FPLTemplateFormat
31: 00.27 00.25 MarkupToHTML begin
32: 00.28 00.26 MarkupToHTML end
33: 00.28 00.26 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
34: 00.28 00.26 FPLTemplate: Chain end
35: 00.28 00.26 MarkupToHTML end
36: 00.28 00.26 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
37: 00.29 00.27 ReadApprovedUrls SiteAdmin.ApprovedUrls end
38: 00.35 00.32 MarkupToHTML end
39: 00.35 00.32 MarkupToHTML begin
40: 00.37 00.33 MarkupToHTML end
41: 00.37 00.33 MarkupToHTML begin
42: 00.37 00.34 MarkupToHTML end
43: 00.37 00.34 now
Peak memory: 5,157,680 bytes