}
if ($style eq 'table') {
- return "<table class='pageStats'>\n".join("\n", map { "<tr><td>$_</td><td>".$counts{$_}."</td></tr>" }
- sort { $counts{$b} <=> $counts{$a} } keys %counts)."\n</table>\n" ;
+ return "<table class='pageStats'>\n".
+ join("\n", map {
+ "<tr><td>".
+ IkiWiki::htmllink($params{page}, $params{destpage}, $_, 1).
+ "</td><td>".$counts{$_}."</td></tr>"
+ }
+ sort { $counts{$b} <=> $counts{$a} } keys %counts).
+ "\n</table>\n" ;
} else {
# In case of misspelling, default to a page cloud
This plugin is included in ikiwiki, but is not enabled by default. If it is
enabled, here's a link cloud for this entire wiki:
[[pagestats ]]
+And here's a table:
+[[pagestats style="table"]]