User:Erwin/CatCount
Erwin85Bot is able to count the number of pages in a category and putting that information on a page, example: Wikipedia: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 {{User:Erwin85/CatCount}}, 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.
<!-- count:category name; ns:namespace -->0<!-- end -->
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:
<!-- count:Unassessed Australian places articles; ns:1,14 -->0<!-- end -->
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.
<!-- count:Unassessed Australian places articles; ns:1,14 -->11<!-- end -->
To exclude certain namespaces you should use:
<!-- count:Unassessed Australian places articles; ns:-1,-14 -->0<!-- end -->
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:
<!-- count:Unassessed Australian places articles; ns: -->0<!-- end -->
This would count the number of pages in all namespaces in Category:Unassessed Australian places articles.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.