Last modified: 2011-03-13 18:05:55 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 7961 - Category headings should appear in TOC
Category headings should appear in TOC
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-11-17 13:19 UTC by Duncan Harris
Modified: 2011-03-13 18:05 UTC (History)
0 users

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


Description Duncan Harris 2006-11-17 13:19:03 UTC
On category pages there are headings:

Pages in Category 'foo'
Media in Category 'foo'

These need a name = html tags


If possible, this should not conflict with any similarly named in the text part
of the category.

It is important that the names are "#pages" rather than "#pages in category
'foo'" because then they can be automatically linked to if necessary.

In fact, I was thinking these should automatically be included in a table of
contents.  So you'd get a standard table of contents looking something like:

1 Fish
2 Whatever
3 Subcategories
4 Pages
5 Media

where "Fish" and "Whatever" are in the text body.

I think there are some presentation issues that need to be resolved too, but it
sortof needs to evolve.
Comment 1 Phil Boswell 2006-11-17 13:23:40 UTC
I think the word you're looking for is "anchors" (see [[HTML element#Links and 
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-17 13:32:24 UTC

Including these in the table of contents is an interesting idea, however, so
I'll repurpose this bug to that.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-20 05:56:53 UTC
This looks kind of tiresome to do . . . where would we stick them in?  Parser is
where the TOC is generated, but do we want to pass the page title to
internalParse and formatHeadings?  We would have to to do this properly, I
think.  But the media section only appears conditionally right now, so it would
probably have to construct the category to get the necessary info.  Seems messy
. . .
Comment 4 Duncan Harris 2006-12-07 11:30:12 UTC
yeah, thinking about it I agree.  I think what is needed is actually a quick
table of contents at the top of the page like in the [[image:foo]] namespace
pages. This can then be handled separately to the text TOC.
Comment 5 Duncan Harris 2006-12-07 11:45:20 UTC

that's now at

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