VoteNY Example
From Notaclue Wiki
Example[edit | edit source]
The extension VoteNY allows users to insert a simple voting tool onto their wiki.
2
2 5
Usage[edit | edit source]
Tags[edit | edit source]
<vote /> outputs a green square voting box.
<vote type=1 /> outputs five voting stars.
Magic words[edit | edit source]
{{NUMBEROFVOTES}}: Returns the entire number of votes on the wiki.{{NUMBEROFVOTESPAGE}}: Returns the number of votes on the current page.{{NUMBEROFVOTESPAGE:<page>}}: Returns the number of votes on the given page.
The magic word {{NUMBEROFVOTES}} can be used to display the number of votes in the database; this number is cached (in memcached) for 24 hours, so it's not totally up-to-date.
Special page[edit | edit source]
The special page Special:TopRatings displays the highest rated pages on the wiki. It supports filtering by category and namespace and its output can be embedded on wiki pages, so {{Special:TopRatings/Extension Showcase Pages/0/10}} will show 10 ratings where the pages are in the "Extension Showcase Pages" category and the pages are in the main (0) namespace.
