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