Last modified: 2014-02-12 23:35:37 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 T46304, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44304 - Categories should avoid orphans (single entries) when splitting a letter's entries into two columns ("Cont.")
Categories should avoid orphans (single entries) when splitting a letter's en...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-24 10:33 UTC by Forscher56
Modified: 2014-02-12 23:35 UTC (History)
3 users (show)

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


Attachments
Screenshot of Category:Halmstad (40.92 KB, image/jpeg)
2013-01-24 10:33 UTC, Forscher56
Details

Description Forscher56 2013-01-24 10:33:02 UTC
Created attachment 11678 [details]
Screenshot of Category:Halmstad

In Category:... pages, in the three-column-tables of members or subcategories, one quite often sees single entries before or after the ''cont.'' E. g., [[Category:Halmstad]] (As my knowledge in PHP and "report generation" is better than my English, I could contribute by looking through the code, if someone points me to the appropriate class)
Comment 1 Andre Klapper 2013-01-24 11:42:30 UTC
Hi Forscher56,
thanks for reporting this.

(In reply to comment #0)
> I could contribute by looking through the code, if someone
> points me to the appropriate class)

I ran
   grep -r "cont\." .
on my MediaWiki core code checkout and the code seems to be located in 
   /includes/CategoryViewer.php:531

To take a quick online look at the code:
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/CategoryViewer.php;h=7678ffe080c4a2635926731a7ba6803cd622ca6a;hb=refs/heads/master#l531

For information on getting the code and providing patches to fix the problem, see
   http://www.mediawiki.org/wiki/Developer_access
If you need any help don't hesitate to ask.
Comment 2 Bawolff (Brian Wolff) 2013-01-24 13:37:21 UTC
(In reply to comment #0)
> Created attachment 11678 [details]
> Screenshot of Category:Halmstad
> 
> In Category:... pages, in the three-column-tables of members or
> subcategories,
> one quite often sees single entries before or after the ''cont.'' E. g.,
> [[Category:Halmstad]] (As my knowledge in PHP and "report generation" is
> better
> than my English, I could contribute by looking through the code, if someone
> points me to the appropriate class)

As andre said - CategoryVirwer is the class that formats the results. CategoryPage is the calling class.

What currently happens is we fetch the first 201 results (configurable) display first 200 and use the last for the continue link. I imagine you would probably have to fetch 202 results and then decide if to show either 200 or 201 results depending on how the divisions fall.

If you have any trouble or need any help, don't hesitate to ask.

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


Navigation
Links