Last modified: 2014-10-27 13:52:17 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 T15090, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.

<aggregatetoc>
Mine
Yours
Hers
</aggregatetoc>

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  ..
</div>
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:   http://wiki.laptop.org/go/HIG
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.


Navigation
Links