1 [[!tag patch plugins/pagestats]]
2 [[!template id=gitbranch branch=smcv/ready/among author="[[smcv]]"]]
4 My `among` branch fixes [[todo/backlinks_result_is_lossy]], then uses that
5 to provide pagestats for links from a subset of pages. From the docs included
8 > The optional `among` parameter limits counting to pages that match a
9 > [[ikiwiki/PageSpec]]. For instance, to display a cloud of tags used on blog
10 > entries, you could use:
12 > \[[!pagestats pages="tags/*" among="blog/posts/*"]]
14 > or to display a cloud of tags related to Linux, you could use:
16 > \[[!pagestats pages="tags/* and not tags/linux" among="tagged(linux)"]]
18 I use this on my tag pages on one site, with the following template:
20 \[[!pagestats pages="tags/* and !tags/<TMPL_VAR raw_tag>
21 and !tags/photogallery"
22 among="tagged(<TMPL_VAR raw_tag>)"]]
24 \[[!inline pages="tagged(<TMPL_VAR raw_tag>)"
25 archive="yes" quick="yes" reverse="yes" timeformat="%x"]]
29 > [[merged|done]] thanks --[[Joey]]