User:Erwin/CatCount

Erwin85Bot is able to count the number of pages in a category and putting that information on a page, example: WikiProject Australia/BotStatistics/Sports. The bot uses the database to do this and runs daily at 12:00 (UTC) from the m:Toolserver. Pages linking to this page will be treated by my bot.

Use
To use this bot simply transclude this page, i.e. put, in the page you want treated. To let the bot know for what categories it should count the number of pages you can use the syntax below. The code can be generated using my catcount tool.



Where category name is simply the page title without namespace of the category and namespace is a comma seperated list of positive or negative namespace id's to include respectively exclude certain namespaces. To include all namespaces simply leave namespace blank. The id for a namespace can be found at http://en.wikipedia.org/w/query.php?what=namespaces. In example:



would count the number of talk pages and subcategories in Category:Unassessed Australian places articles. It would then replace the above text with an updated count, e.g.



To exclude certain namespaces you should use:

This would count the number of pages not in the talk or category namespace in Category:Unassessed Australian places articles.

To include all namespace you should use:

This would count the number of pages in all namespaces in Category:Unassessed Australian places articles.