Test /
PagelistFmtGroupsWithLinksToListPage
fmt=#groupsWithLinkToListPages
A bullet list of groups, with a link for listing the pages in that group.
[[#g]] (:if ! equal {=$Group} {<$Group}:) * [[{=$Group}]] \ ([[list pages -> {$Name}?action=search&q=group%3D{=$Group}]]) (:ifend:) [[#gend]]
(:pagelist group=P* fmt={$Name}#g count=4:) |