Last modified: 2014-09-24 01:23:35 UTC
Add a token __NOTOCNUM__ to suppress both table of contents autonumbering and heading autonumbering (the second is relevant only if the user has selected Auto-number headings). This is useful when headings in a page have their own unique numbering scheme included as part of the heading already, such as FAQ pages where deprecated answers are removed but new answers should not reuse the deprecated answer's number.
Created attachment 1119 [details] Adds _NOTOCNUM__ token to suppress TOC autonumbering.
*** Bug 9991 has been marked as a duplicate of this bug. ***
This is implemented in the PSINoTocNum extension.
Reopening. Hiding the numbers via CSS isn't the intended aim. The numbers are still present in XHTML source. Shut-off of TOC autonumbering should be in core.
Arguably. This wouldn't break caches, so we may as well, I suppose.
I'd love to see this go into core. The PSINoTocNum extension doesn't play nice with the parser cache and I'm not willing to give up the parser cache for my installation.
Seems to be solved currently by [[mw:Extension:MagicNoNumberedHeadings]] described in bug 7832 comment #7. Not closing this bug though, since there were requests for core support. However, I think new bug should be filed to request enabling of this extension on WMF wikis (especially Wikisources which have many pages like eg. laws which have numbers directly in headers).
You said "not closing this bug" but closed it, I assume that was a mistake?
The patch is now obsolete because it no longer applies cleanly to trunk due to delay in review, so, marking obsolete and removing "patch" & "need-review" keywords.
Comment on attachment 1119 [details] Adds _NOTOCNUM__ token to suppress TOC autonumbering. Per automated testing http://lists.wikimedia.org/pipermail/wikitech-l/2011-November/056340.html patch no longer applies to MediaWiki trunk in Subversion. I'm sorry for the delay in review.