]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/directive/pagestats.mdwn
68f4d2734ad06f1be5c2c379a8953a3a7ac0bb51
[ikiwiki.git] / doc / ikiwiki / directive / pagestats.mdwn
1 The `pagestats` directive is supplied by the [[!iki plugins/pagestats desc=pagestats]] plugin.
2
3 This directive can generate stats about how pages link to each other. It can
4 produce either a tag cloud, or a table counting the number of links to each
5 page.
6
7 Here's how to use it to create a [[tag]] cloud:
8
9         \[[!pagestats pages="tags/*"]]
10
11 And here's how to create a table of all the pages on the wiki:
12
13         \[[!pagestats style="table"]]
14
15 The optional `among` parameter limits the pages whose outgoing links are
16 considered. For instance, to display a cloud of tags used on blog
17 entries, while ignoring other pages that use those tags, you could use:
18
19         \[[!pagestats pages="tags/*" among="blog/posts/*"]]
20
21 Or to display a cloud of tags related to Linux, you could use:
22
23         \[[!pagestats pages="tags/* and not tags/linux" among="tagged(linux)"]]
24
25 The optional `show` parameter limits display to the specified number of
26 pages. For instance, to show a table of the top ten pages with the most
27 links:
28
29         \[[!pagestats style="table" show="10"]]
30
31 [[!meta robots="noindex, follow"]]