Last modified: 2014-10-27 13:52:17 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 13090 - Add magic word to generate combined-TOC from a set of pages
Add magic word to generate combined-TOC from a set of pages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-02-21 08:41 UTC by SJ
Modified: 2014-10-27 13:52 UTC (History)
0 users

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


Description SJ 2008-02-21 08:41:40 UTC
For overview pages, portals, and the like, it is often useful to be able to explicitly include a Table of Contents generated from the sections of a set of related pages or subpages.  This takes the same amount of effort as transcluding those pages, but renders far more neatly and quickly.  

* This TOC should link to the section of the appropriate page, not to a section on the current page.  
* Some reasonable section numbering scheme should be used -- perhaps ABCDE for the top-level (page-level) sections.
** I can imagine using the page title as the top level section, which would also provide a TOC link to the "first" section of a page (the one with no anchor).

Or this could be implemented as an extension.


could output:

<div style="toc">
A. Mine
A.1  ..
A.2  ..
B. Yours
B.1  ..
C. Hers
C.1  ..
C.2  ..
C.2.1  ..
C.2.2  ..
C.3  ..
Comment 1 SJ 2009-04-18 22:18:34 UTC
Still handy.  An example of hacks to get around this (with at least 3 levels of depth), using navbars at the top of each page:
Comment 2 Andre Klapper 2014-06-22 18:06:57 UTC
This sounds a bit like overkill for core, indeed. Moving to "extension requests".

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