Last modified: 2011-03-13 18:05:55 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 T9961, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7961 - Category headings should appear in TOC
Category headings should appear in TOC
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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

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

These need a name = html tags

url#Subcategories
url#Pages
url#Media

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 
anchors]])
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-11-17 13:32:24 UTC
http://commons.wikimedia.org/wiki/Category:Fish#mw-subcategories
http://commons.wikimedia.org/wiki/Category:Fish#mw-pages
http://commons.wikimedia.org/wiki/Category:Fish#mw-category-media

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
OK,

that's now at

http://bugzilla.wikipedia.org/show_bug.cgi?id=8178

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


Navigation
Links