Last modified: 2014-02-12 23:40:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1534 - Language-specific article count variables
Language-specific article count variables
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: analytics
: 1564 7911 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2005-02-15 01:05 UTC by Catherine Munro
Modified: 2014-02-12 23:40 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Catherine Munro 2005-02-15 01:05:41 UTC
Would it be possible to have subdomain-specific article count variables?  Something along 
the lines of {{en:NUMBEROFARTICLES}}, or {{NUMBEROFARTICLES{{1}}}}, where a language code 
could be entered as a parameter?  

It would be a bonus if the user could specify a level of precision to which the number 
could be rounded.

This would be very useful on the portal, and probably several other Meta 
and Foundation pages which are currently manually updated and always behind.
Comment 1 Christian Thiele 2005-10-21 12:35:58 UTC
*** Bug 1564 has been marked as a duplicate of this bug. ***
Comment 2 Minh Nguyễn 2006-03-05 23:48:03 UTC
For the Wikipedia portal, it would be more helpful to use the level of precision
to truncate the article count, rather than to round it. Also, Catherine's second
syntax proposal might be better written {{NUMBEROFARTICLES|{{1}}}} (with a pipe
in there).
Comment 3 Philippe Verdy 2006-06-04 20:14:12 UTC
It's really difficult to integrate, as the databases are distinct, and there's no SQL setup configured in 
all projects to reach the statistics tables of each project. The only thing that exists is a table that maps 
projet codes or interwiki prefixes to URLs.

What would be needed is that every project generate their own basic statistic dumps into a common statistics 
database which could be reached from all projects. But they would need to refresh those dumps regularly to 
this extra database. Having them updating instantly a centralization database would have a serious 
performance impact on all wiki projects due to the extra synchronization needed. But may be it could be a 
background thread that runs periodically to update the external database.

Such background database update task could be used to export other things, like the list of blocked vandals 
or spammers, and to automatically import from every project.

But is it needed in the MediaWiki software itself? Can't that be performed by a bot? How many projects such 
bot will need to update? and with which frequency (don't forget that each bot update will add to the history 
of each project, so it could generate rapidly huge volums of transactions if it runs on all current 229 

So may be an extra connection to a central statistics database, running as a thread of the MediaWiki server 
will be better, avoiding too many update transactions into lots of projects, and unnecessary logs into an 
article for the imported data.
Comment 4 Catherine Munro 2006-06-12 06:30:35 UTC
A bot is probably actually the best solution for this (there weren't many around
when I first proposed this).  The stats don't need to be kept in a database,
really -- any wiki page would do.

On poking around, it looks like User:Mutante was working on a script to do this
as of March -- see and for details.
Comment 5 Minh Nguyễn 2009-07-21 05:51:48 UTC
*** Bug 7911 has been marked as a duplicate of this bug. ***
Comment 6 Bryan Baron 2009-07-21 17:53:53 UTC
This function exists in template:NUMBEROF ( which is updated trough bot.
Comment 7 Andre Klapper 2012-12-03 14:00:36 UTC
[mass-moving wikistats reports from Wikimedia→Statistics to Analytics→Wikistats to have stats issues under one Bugzilla product (see bug 42088) - sorry for the bugspam!]

Note You need to log in before you can comment on or make changes to this bug.