I'm confused about how the Special:Statistics page is being calculated. My wiki has nearly 5,000 total pages, many of them user-contributed. Here's what Special:Statistics displays:
There are 4,786 total pages in the database. This includes "talk" pages, pages about WRG, minimal "stub" pages, redirects, and others that probably don't qualify as content pages. Excluding those, there are 26 pages that are probably legitimate content pages.
Now I know that there are far more than 26 legitimate pages! I think the problem here is that most of the user-contributed content pages have been placed in custom-defined namespaces. This was done to allow 'advanced' searches on different subject areas, which is not possible if everything is lumped into the main namespace. Is there any way to get the calculation of 'good' articles to include these custom namespaces?
I am concerned about this under-reporting issue not only because anyone checking my Statistics page will get an incomplete picture of my wiki, but also because this calculation is used to rank the largest wikis at http://meta.wikimedia.org/wiki/List_of_largest_wikis, and if based on incomplete information, this list is not accurate.
Thank you!
Tim Doyle
On 31/03/06, Tim Doyle tim@greenscourt.com wrote:
Is there any way to get the calculation of 'good' articles to include these custom namespaces?
Hack the code. At present, an "article" is a page in the main namespace which contains at least one internal link and isn't a redirect. You'll need to alter the edit form, or wherever it is that this decision is made as the site_stats table is updated.
Rob Church
On 3/31/06, Rob Church robchur@gmail.com wrote:
On 31/03/06, Tim Doyle tim@greenscourt.com wrote:
Is there any way to get the calculation of 'good' articles to include these custom namespaces?
Hack the code. At present, an "article" is a page in the main namespace which contains at least one internal link and isn't a redirect. You'll need to alter the edit form, or wherever it is that this decision is made as the site_stats table is updated.
The code in Article.php (at least in 1.4.x) seems to be what's doing this.
Theres a member function called isCountable which checks for the namespace, a redirect and then for either at least 1 "[[" or "," in the article text.
However, I'm not sure that there isn't a bug somewhere. I looked at the "dead end pages" which seems to find articles without an internal link. I then picked one and added a link, saved it, and then refreshed a view of Special:Statistics, and it didn't change. I expected the number of "good" pages to go up by one.
The maintenance directory has a recount.sql which seems to update the count, but there's no php file there which accesses site_statistics, should there be? Maybe this is in 1.5 or later?
-- Rick DeNatale
Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/
On 31/03/06, Rick DeNatale rick.denatale@gmail.com wrote:
The maintenance directory has a recount.sql which seems to update the count, but there's no php file there which accesses site_statistics, should there be? Maybe this is in 1.5 or later?
As I recall, there is a maintenance script for rebuilding site_stats in 1.5 and later, as guessed.
Rob Church
mediawiki-l@lists.wikimedia.org