|
Cookbook /
Rating2Summary: Even Simpler Page Rating Counter
Version: 20100216
Status: Beta
Maintainer: Petko
Categories: Voting Page variables
Discussion: Rating2-Talk?
Users: +1
DescriptionEven Simpler Page Rating Counter.
Here is yet another recipe attempting to count votes on a page. This is the simplest possible implementation that does the job. This recipe counts only the "generally positive" comments and the "generally negative" ones. It uses a very simple format, and has highly flexible understanding of what is a positive or a negative vote. The format is: " The recipe scans the page to count the votes only when it is modified, and the result is stored in a page attribute. This attribute is cached when the page is accessed, and the values are faster to access in pagelists or in external pages. Installation
Usage in a wiki pageThe format in a wiki page was discussed in the mailing lists and tries to accommodate all expressed views: * (+) Good recipe. --Name (datestamp) * (-) Doesn't work for me. --Another Name (datestamp) To display the rating, use the new Page variable {$Rating2} which outputs something like "
Other page variables are
The recipe is enabled on this page, you can edit it and test it. Notes
Release Notes
See Also
ContributorsRecipe written by Petko, released into the Public domain. CommentsSee discussion at Rating2-Talk?
User notes: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |