Extension:TopTenTemplate

Function
Shows the most popular Pages that contain a specified template. This is a derivation of the Top Ten Pages extension. It is compatible with TopTenPages and both extensions can be used simultaneously. I use it on our company wiki to track deprecated pages that get frequented the most.

Variables

 * TEMPLATE
 * Format: Name of an existing template
 * Default: None- Required (will be current page so you can place this on the extension documentation page)


 * 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.

Usage
[NUMBEROFPAGES]

Examples
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).

Demo
Fishbowl Inventory Deprecated Template

Installation
Copy to your Extensions Directory.

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

The Extension is pretty much the same as the TopTenPages with a different sql query and a couple of different variables. This extension could be merged with TopTenPages (with the consent of Sascha) in the future.

Disclaimer
Use at your own risk.