Extension:TopTenPages

Function
Shows the most popular Pages within an article. I use it on the main page of our Company-Wiki.

[NUMBEROFPAGES]


 * OFFSET
 * Format: Integer
 * Default: 0
 * How many of the most popular Pages to ignore. (e.g. offset="1" to ignore the main page)


 * NAMESPACE
 * Format: One of these Strings ("talk", "user", "image", "template", "help", "category")
 * Default: Normal Articles (NS_MAIN) if string is missing or mistyped


 * NUMBEROFPAGES
 * Format: Integer
 * Default: 10
 * How many most popular pages should be listed.

Examples
To show 10 most popular Pages:  To show 5 most popular Pages: 5 To omit the most popular page(s):  To show most popular (article-)talk-pages: 

This Extension makes use of the Wiki-Builtin-Function Special:Popularpages with similar functionality (which is disabled in some installations).

Image description
The Image was created by this code: ==Beliebteste Seiten im Intranet== 10 mehr >>

The image was taken from a German installation with monobook-skin. Since the extension recycles the original wiki-code, language within the extension-controlled-content will change according to the interface-language chosen.

Installation
Copy to your Extensions Directory.

To activate the extension, include it from your LocalSettings.php with: include("extensions/TopTenPages.php");

The Extension consists mostly of the class QueryPage out of includes/QueryPage.php since I lacked knowledge and time to access the includes/QueryPage.php directly. Hints appreciated.

Disclaimer
It's my first approach to PHP. For use in Low-Risk-Environment. Use at own risk.

Sites that use TopTenPages

 * Trail WIKI - Collaborative hiking website for trails throughout the United States and Canada
 * HowIW