Last modified: 2012-11-03 22:23:47 UTC
A few pages out there have extra headers that should not show in the table of
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
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..
Not a bug.
forgot to reopen.. as a feature request
No. I reclosed it.
So what happens for those of us with a very real need to exempt headings from
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...?
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.
For an application, consider something in [[m:Help:Section]] saying:
"These are what the various levels of headers look like:
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.
Oh well, I guess that's that, then.
Nice to see that helpful open-source ethos at work, eh?
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.
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.
!== 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
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.
(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.
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)?
*** Bug 9078 has been marked as a duplicate of this bug. ***