Last modified: 2012-01-17 09:02:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27256 - Correcting content page count at en.wikibooks and pt.wikibooks
Correcting content page count at en.wikibooks and pt.wikibooks
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikibooks.org/w/index.php?t...
:
Depends on:
Blocks: 29782
  Show dependency treegraph
 
Reported: 2011-02-08 14:23 UTC by aaron.adrignola
Modified: 2012-01-17 09:02 UTC (History)
5 users (show)

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


Attachments

Description aaron.adrignola 2011-02-08 14:23:04 UTC
The traditional method of counting which pages contain content for the purposes of {{NUMBEROFARTICLES}} does not accurately reflect the value for en.wikibooks, where many books' pages do not have wikilinks to other pages.  Additionally, links for navigation to other pages contained within templates do not count when determining whether a page has internal links.  Therefore the community would like to instead use the method of using pages with commas in determining content pages.

Please set $wgUseCommaCount to true.  Changing this will not retroactively change the current count, so it would be appreciated if maintenance/recount.sql could be run to reflect the new methodology.  Thanks.
Comment 1 Helder 2011-03-21 16:01:27 UTC
Please, make the same configuration for Portuguese Wikibooks too, per discussion at
http://pt.wikibooks.org/wiki/Tópico:Wikilivros:Diálogos_comunitários/Contagem_de_páginas_de_conteúdo_do_Wikilivros
Comment 2 JeLuF 2011-03-21 20:19:33 UTC
Your change has been completed.
Please reopen this ticket if anything went wrong.
The following configuration settings have been changed:
===================================================================
Index: InitialiseSettings.php
===================================================================
--- InitialiseSettings.php	(revision 1678)
+++ InitialiseSettings.php	(working copy)
@@ -8697,6 +8697,12 @@
 	),
 ),
 
+'wgUseCommaCount' => array(
+	'default' => false,
+	'enwikibooks' => true,
+	'ptwikibooks' => true,
+),
+
 'wgUseContributionTracking' => array(
 	'default' => false,
 	'foundationwiki' => true,	
===================================================================
You can find the entire config file at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php
Comment 3 aaron.adrignola 2011-03-21 21:08:29 UTC
The configuration looks good.  But the new method won't retroactively change the current count.  Could the recount.sql maintenance script be run for en.wikibooks and pt.wikibooks?  Rest assured that even given the absolute page counts for the projects it shouldn't take long to run.  Thanks for the help so far.
Comment 4 Bawolff (Brian Wolff) 2011-03-21 21:40:08 UTC
(In reply to comment #3)
> The configuration looks good.  But the new method won't retroactively change
> the current count.  Could the recount.sql maintenance script be run for
> en.wikibooks and pt.wikibooks?  Rest assured that even given the absolute page
> counts for the projects it shouldn't take long to run.  Thanks for the help so
> far.

Its unclear if that script actually works (well the recount.sql script is super old and definitely doesn't work. Its unclear if its replacement works). See my comment on bug 26033.
Comment 5 Sam Reed (reedy) 2011-07-09 00:50:15 UTC
What script needs running Bawolff?
Comment 6 Bawolff (Brian Wolff) 2011-07-09 01:45:12 UTC
There isn't one in existence as far as i know. One needs to be written.
Comment 7 Sam Reed (reedy) 2011-07-09 01:47:10 UTC
-shell for the moment then
Comment 8 Mark A. Hershberger 2011-09-30 01:57:31 UTC
(In reply to comment #2)

> +'wgUseCommaCount' => array(
> +    'default' => false,
> +    'enwikibooks' => true,
> +    'ptwikibooks' => true,
> +),

This is no longer the case and, now, the new $wgArticleCountMethod needs to be updated to reflect the counting behavior desired (any, comma, link) and, after that, maintenance/updateArticleCount.php needs to be run.

See [[mw:Manual:$wgArticleCountMethod]] and [[mw:Manual:Article count]].
Comment 9 aaron.adrignola 2011-09-30 02:16:06 UTC
(In reply to comment #8)

When this bug was first filed, the choice was only between comma and link.  As described in the first comment made by myself, comma was chosen because there aren't many links in books at Wikibooks.

But it's not guaranteed that a page will have a comma either.  So once $wgArticleCountMethod is available, it would be best to set that to "any" for Wikibooks.

As for the script, I thought that a new one had to be written (see comment #4).
Comment 10 Bawolff (Brian Wolff) 2011-09-30 02:31:10 UTC
(In reply to comment #9)
> 
> As for the script, I thought that a new one had to be written (see comment #4).

Sort of. Since I wrote that, SiteStatsInit has been updated to be a bit more correct. It should work fine in link (normal) count mode, and in any count mode. In comma count mode it will count all pages of non-zero length. Which is a bit different from "any page with a comma in it".
Comment 11 Nemo 2011-09-30 06:36:26 UTC
(In reply to comment #9)
> But it's not guaranteed that a page will have a comma either.  So once
> $wgArticleCountMethod is available, it would be best to set that to "any" for
> Wikibooks.

How can a Wikibooks page be considered "good" without a comma?
Comment 12 Helder 2011-09-30 11:27:26 UTC
(In reply to comment #11)
> How can a Wikibooks page be considered "good" without a comma?

[[Wikijunior:Small Numbers/5]]?
Comment 13 Helder 2011-09-30 11:28:20 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > How can a Wikibooks page be considered "good" without a comma?
> 
> [[Wikijunior:Small Numbers/5]]?

Fixed link: [[b:Wikijunior:Small Numbers/5]].
(where is bugzilla's preview button??? =( )
Comment 14 Nemo 2012-01-17 09:02:50 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > How can a Wikibooks page be considered "good" without a comma?
> 
> [[Wikijunior:Small Numbers/5]]?

That page has a template, though, and would be counted with the normal method as updated now (actual page or template links, not literal [[). And it seems to be counted even now, according to

(In reply to comment #10)
> In comma count mode it will count all pages of non-zero length. 

So, it's not clear what's desired: "comma count" as asked originally, comma count as described above, new method "any" or what else. In any case the discussion ([[b:Wikibooks:Reading_room/Archives/2011/February#Page_counts_are_incorrect]]) is outdated. Closing for now.

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


Navigation
Links