Tópico em Wikilivros Discussão:Portal comunitário

Saltar para a navegação Saltar para a pesquisa
Dcljr (discussãocontribs)

Can someone please translate the following message into Portuguese? Thanks!

In light of recent events (described below), this community needs to discuss whether it wants to change the way Páginas de conteúdo are "officially" counted on this wiki.

First, some background on "article counting": As described at mw:Manual:Article count and mw:Manual:$wgArticleCountMethod, MediaWiki-based wikis like this one have three possible ways of counting "content pages" (historically called "good articles" and now usually just called "articles"). All three counting methods require that a page be in a "content namespace" and not be a redirect in order to be counted as an article. The wiki may be set up to also require that the page contain at least one [[wikilink]] (the 'link' method) or at least one comma (the 'comma' method); otherwise all such pages are counted (the 'any' method). (By the way, the single-quotes are intentional, since single-quotes are used in the [large] configuration file that stores the relevant settings — search for the text "ArticleCountMethod" to see.)

This wiki uses the 'comma' method and the only content namespace is the main namespace (the one that doesn't require any "prefix" in front of page titles). Therefore, the count of "content pages" on this wiki (which I will continue to call the "article count", mainly out of habit) nominally includes all non-redirects in the main namespace that contain at least one comma. I say "nominally" because, in fact, what I just said is not actually true. (!) Allow me to explain…

Many bugs related to article counting have been found and fixed in the MediaWiki code over the years, but this wiki has (probably) never been recounted to fix the article count itself. This is mainly because the two maintenance scripts that are run to fix on-wiki statistics (which are called initSiteStats.php and updateArticleCount.php) do not actually implement the 'comma' method at all; instead, for performance reasons, they simply check for positive page length (in addition to the usual non-redirect and content-namespace criteria). Since April 2015, the second script (to recount only articles) has been run on the 21st of each month in order to keep the article counts more-or-less correct, even if relevant bugs remain in the code. But all Wikibooks wikis have been excluded from the periodic recounting because the English and Portuguese Wikibooks use the 'comma' criterion (and are the only Wikimedia wikis to do so — FYI, the Czech Wikinews, Chinese Wikinews, Gujarati Wikisource, Polish Wikisource, Serbian Wikisource, Serbian Wikiquote, and Wikidata use the 'any' method, and all other Wikimedia wikis use the 'link' method).

It appears that the 'comma' method is correctly implemented when pages are saved (i.e., created or edited), but that's laregly irrelevant if the article count itself has become very wrong because of past bugs. In any case, it doesn't matter anymore, because…

On February 15th and again on February 21st this wiki was recounted using the initSiteStats.php script. What this means is: the current article count no longer reflects the comma-based criterion, nor is it possible at this point to fix it (anytime soon) so that it accurately reflects the comma-based criterion (because there is no maintenance script to recount it in that way).

As reported at m:Wikimedia News#February 2018, the article count of this wiki changed from 8,742 (about 18 hours before the February 15th recount) to 11,493 (up to 6 hours afterwards), a 31% increase. Presumably approximately the same thing would have happened if the 'any' method had been used, since there are only a few zero-length pages here. (Note that the "live" article count is 11 504.)

So, now we find ourselves in a situation where the current article count of this wiki is (approximately) "correct" with respect to a different criterion than the one we have assumed was being used to count articles here. This count may tend to drift a bit as the wiki is edited (since page-saves still use the 'comma' criterion), but it will never match the true 'comma' based count unless someone writes some relevant code and gets it approved for use. (This may be unlikely because searching wikitext for a specific string is resource intensive.) Meanwhile, there are plans to periodically recount all stats on all Wikimedia wikis, including Wikibooks, which would mean that the count here would be periodically be reset to this weird "positive-length" based count, anyway. Although the current count doesn't technically match that given by any of the officially documented counting methods, as a practical matter it approximately matches what the 'any' method would give.

So, should we switch from the 'comma' article-counting method to the 'any' method, since that is basically the situation we find ourselves in now?

(For additional context, see the discussion at phab:T59788 and the information at m:Article counts revisited.)

Dcljr (discussãocontribs)
Dcljr (discussãocontribs)

Comma-based article counting has been removed entirely from the MediaWiki software, and this wiki has been switched to use the 'any' article-counting method (phab:T188472).

Responder a "Change from comma-based article counting"