Last modified: 2012-11-03 22:23:47 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 T8575, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6575 - need way to have header not be in table of contents
need way to have header not be in table of contents
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 5 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Help_t...
:
: 9078 (view as bug list)
Depends on:
Blocks: Wikisource
  Show dependency treegraph
 
Reported: 2006-07-06 21:08 UTC by Aaron Peterson
Modified: 2012-11-03 22:23 UTC (History)
4 users (show)

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


Attachments

Description Aaron Peterson 2006-07-06 21:08:15 UTC
A few pages out there have extra headers that should not show in the table of
contents.

If there are excessive points, or what not, or if somebody just want to have an
extra header for some reason.. 

eitherway, I suspected that the change from 1.6 to 1.7 made it so that
<h3>stuff</h3> now shows up in the table of contents... if the person wanted it
to be in the table of contents, they would have written ===stuff===  


but then I went to gentoo-wiki.org and foudn that their 1.6.2 also does the same
thing.

I'm not sure where the change went...

if my claiming that the behavior changed is wrong (I can't veryify really old
versions) I submit that there needs to be a nice way to have headers not be
listed in the table of contents.. other than by using the nowiki tag..
Comment 1 Brion Vibber 2006-07-06 22:04:03 UTC
Not a bug.
Comment 2 Aaron Peterson 2006-07-06 23:28:16 UTC
forgot to reopen.. as a feature request
Comment 3 Rob Church 2006-07-06 23:28:50 UTC
No. I reclosed it.
Comment 4 Shaper 2006-07-31 14:33:40 UTC
So what happens for those of us with a very real need to exempt headings from
the ToC?

Bold-text-with-a-line-break is hardly ideal when you need to format "all
headings" in CSS, and it prevents purely semantic markup.

I don't see what suddenly including "hX" headings in the ToC does for the
software or the user - given we can still use "===" format to ensure inclusion
of a heading it merely removes functionality.

Apologies if this seems a bit blunt.  I'm a new user of Wikimedia - I've been
searching all over for a solution to this problem, and now I've discovered the
functionality's been effectively removed (and the re-addition request closed)
with no reason given...?
Comment 5 Shaper 2006-07-31 15:52:40 UTC
Addition: The including-hX-tags-in-ToCs functionality Aaron Peterson describes
is present at least as far back as MediaWiki 1.6.8.

In addition, the <nowiki><h3>...</h3></nowiki> syntax doesn't work either in
this version - the <nowiki> tag apparently escapes the angle-brackets so you get
your HTML echoed to the page, instead of interpreted by the browser.
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-07-31 16:35:08 UTC
For an application, consider something in [[m:Help:Section]] saying:

"These are what the various levels of headers look like:

=First level=
==Second level==
===Third level===
..."

I've run into this at [[s:Help:Editing poetry on Wikisource]].  It's not a real
heading, and showing up in the TOC would be screwy, but you want it to look
exactly like a real heading.  That page uses a Monobook-centric hack that's
really not desirable.
Comment 7 Shaper 2006-11-06 16:54:24 UTC
Oh well, I guess that's that, then.

Nice to see that helpful open-source ethos at work, eh?
Comment 8 Shaper 2006-11-06 16:54:43 UTC
Oh well, I guess that's that, then.

Nice to see that helpful open-source ethos at work, eh?
Comment 9 Rob Church 2006-11-06 20:05:55 UTC
If a document has a semantic header, and we show a table of contents, then it
makes sense to include that header in the table of contents.

Suggest possible syntax for doing so in wikitext.
Comment 10 Daniel Kinzler 2006-11-06 20:11:08 UTC
actually, supressing the sematics of markup in some blocks would be useful - for
example for a page that showcases templates. It's verry annoying to have
categories that are imposed by the template show up on the page (and worse, the
page in the categories). Same goes for headlines present in such templates. So,
there could be a <showcase> tag or something, analogous to <noinclude> and freinds.
Comment 11 Andrew Culver 2006-11-06 20:17:49 UTC
!== Non-TOC Section ==

Then you could do things like:
<includeonly>!</includeonly>== Section to not apprear in TOC of including pages ==
<noinclude>!<noinclude>== Sections to only appear in TOC of including pages ==
in your templates
Comment 12 Lyrl 2007-01-14 13:51:45 UTC
This feature sure would be nice.  I keep wanting to use it when putting headings
in an "External links" section.  I feel like categorizing external links is
helpful to readers.  However, such links are very secondary to the actual
article, so I don't like seeing such headers take up a significant portion of
the ToC.  Being able to make headers without including them in the ToC would
solve this issue quite nicely.
Comment 13 Brian Jason Drake 2007-03-23 01:00:13 UTC
(In reply to comment #12)
> This feature sure would be nice. I keep wanting to use it when putting headingsin an "External links" section. 
I feel like categorizing external links ishelpful to readers. However, such links are very secondary to the 
actualarticle, so I don't like seeing such headers take up a significant portion ofthe ToC. Being able to make 
headers without including them in the ToC wouldsolve this issue quite nicely.

How about foldable ToCs? Headings in the External links section really ought to be the the ToCs, but we could add 
a markup option to have the External links section in the ToC folded by default.
Comment 14 Christopher Yeleighton 2010-03-22 22:10:21 UTC
http://pl.wikipedia.org/w/index.php?title=Dyskusja_szablonu:Cytuj_pismo&oldid=20837013

Of course you do not understand the text but I want to draw your attention to the fact that the TOC is excessive.  Maybe TOC entries could be suppressed for short sections (based on length of text)?
Comment 15 Chad H. 2011-01-19 22:55:33 UTC
*** Bug 9078 has been marked as a duplicate of this bug. ***

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


Navigation
Links