(redirected from Main.TestPowerTools)
Test for the bundled cookbook recipe http://www.pmwiki.org/wiki/Cookbook/PowerTools
(plist Cookbook.* -Cookbook.*Skin*) - pagelist of all pages in group Cookbook less any page which contains 'Skin' in its name.
(pagelist group=Main) - list of pages in group Main
(pagecount (plist Main.*)) number of pages in Maingroup.
(wordcount) - number of words on current page.
(wordcount (plist Main.*)) - number of words of all pages in the Maingroup.
(wordcount this is a string) - number of words in string "this is a string" (4).
(serialname Group Name) - Creates a new serial pagename of format Group.Name0001 (appended 4-digit number defined by variable $SerialStart), incrementing the ending number part of pages like Group.Name1234. So if you got a page Group.Name0010 the markup expression will return Group.Name0011. If Name is omitted it will create a purely numeric page name. If Group is omitted it will act in the current group.
(allptvs PAGE|PAGELIST) - show all PTVs as name: value. Input argument: PageName or comma-separated list of pagenames, for instance using (plist) or (pagelist) expressions.
(random one,two,three,four,four,four,five") - returns item selected at random from comma-separated list provided. Doubles are prevented.