Page MenuHomePhabricator

Token to suppress table of contents autonumbering
Open, LowPublicFeature

Description

Author: netocrat

Description:
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.


Version: 1.6.x
Severity: enhancement

Details

Reference
bz4127

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:59 PM
bzimport set Reference to bz4127.
bzimport added a subscriber: Unknown Object (MLST).

netocrat wrote:

Adds _NOTOCNUM__ token to suppress TOC autonumbering.

attachment notocnum.v2.patch ignored as obsolete

*** Bug 9991 has been marked as a duplicate of this bug. ***

ayg wrote:

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.

ayg wrote:

Arguably. This wouldn't break caches, so we may as well, I suppose.

rowan wrote:

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).

ayg wrote:

You said "not closing this bug" but closed it, I assume that was a mistake?

sumanah wrote:

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.

sumanah wrote:

Comment on attachment 1119
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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:02 AM
Aklapper removed a subscriber: wikibugs-l-list.