Page MenuHomePhabricator

section numbers do not appear in the body of the document
Closed, InvalidPublic


When I view a WikiPedia page that has numbered sections (e.g.,, the section numbers appear only in the table of contents, i.e., section headings appearing in the body of the document are displayed without section numbers. (If one opens any textbook, one will see that every chapter and section heading has a number to the left of it, not only in the table of contents, but in the body of the text as well). I've been told that this problem with the appearance of WikiPedia pages has nothing to do with the way that pages were created, but is rather the result of a flaw in MediaWiki itself. It would be great if this could be fixed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 30 2018, 3:17 AM

It might be intentional though.

Aklapper closed this task as Invalid.Dec 30 2018, 11:45 AM
Aklapper added a project: MediaWiki-General.

Hi @Phillipmfeldman, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

This is already possible. See and in order to find the setting.

Here's what I read in

"By default, the TOC automatically numbers the sections. The section headings themselves aren't numbered."

(The wording of that sentence is confusing, but I believe that I understand what's meant).

Users can customize the appearance, but realistically, how many people know about this functionality? And, in any case, it doesn't really make sense for this to be the default behavior. Given a choice between two versions of a textbook--one in which chapters/sections are numbered, and one in which they aren't--who in their right mind would choose the latter? This is quite simply a poorly thought-out design.


Dr. Phillip M. Feldman

I would not compare one wiki page to a [linear] "text book".
Each item in the TOC can be clicked to directly jump to the section. I personally do not see how numbers help when reading sections of a web page. However, use cases might differ, hence different preferences for different needs exist. Anyone is free to ignore these preferences. Regarding Wikimedia wikis, some default preferences can be changed per wiki which first requires consensus on that wiki (see ).

In this case, I'm trying to change the behavior for a Wiki page on a corporate internal Wiki. I control the page in question, so there is no need for consensus. But, I do not understand what needs to be changed to implement section numbers within the body of the document.

P.S. The section numbers are important in this case because the page in question is quite long, and is more like a textbook than a traditional wiki. Without the section numbers, it is hard to determine where one is in the document.

Is it possible to change the default for a single page, without affecting other pages?

Aklapper added a comment.EditedJan 4 2019, 10:54 AM

For further questions, please consult . Phabricator is not a support / Q&A desk.