Last modified: 2014-09-24 01:23:35 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 4127 - Token to suppress table of contents autonumbering
Token to suppress table of contents autonumbering
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low enhancement with 9 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest, newparser
: 9991 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2005-12-01 07:37 UTC by netocrat
Modified: 2014-09-24 01:23 UTC (History)
5 users (show)

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

Adds _NOTOCNUM__ token to suppress TOC autonumbering. (2.81 KB, patch)
2005-12-01 07:39 UTC, netocrat

Description netocrat 2005-12-01 07:37:20 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.
Comment 1 netocrat 2005-12-01 07:39:14 UTC
Created attachment 1119 [details]
Adds _NOTOCNUM__ token to suppress TOC autonumbering.
Comment 2 Danny B. 2007-06-19 00:33:25 UTC
*** Bug 9991 has been marked as a duplicate of this bug. ***
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-09-09 23:27:37 UTC
This is implemented in the PSINoTocNum extension.
Comment 4 Danny B. 2007-09-09 23:45:34 UTC

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.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-09-09 23:46:50 UTC
Arguably.  This wouldn't break caches, so we may as well, I suppose.
Comment 6 Rowan Rodrik van der Molen 2008-01-29 04:17:02 UTC
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.
Comment 7 Danny B. 2010-01-07 06:05:52 UTC
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).
Comment 8 Aryeh Gregor (not reading bugmail, please e-mail directly) 2010-01-07 18:18:40 UTC
You said "not closing this bug" but closed it, I assume that was a mistake?
Comment 9 Sumana Harihareswara 2011-11-24 19:59:14 UTC
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 10 Sumana Harihareswara 2011-11-24 19:59:43 UTC
Comment on attachment 1119 [details]
Adds _NOTOCNUM__ token to suppress TOC autonumbering.

Per automated testing patch
no longer applies to MediaWiki trunk in Subversion.  I'm sorry for the delay in review.

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