3

We would like to display numbers in the titles in our MediaWiki wiki.

Specifically: in the table of contents numbers are shown like this:

 1 Title
   1.1 Subtitle
 2 Another title

However, on the page the titles (that map to the table of contents) appear like this:

 Title
  text
 Subtitle
  text
 Another title
  text

That is, no numbers are shown.

How can we show numbers in the page contents?

There are three possible ways that this could be answered (that I can think of). In our order of preference, they are:

  1. Setting per user
  2. Setting per page
  3. Global setting (for all users)

3 Answers3

3

If you want to add it by default for all users add a line:

$wgDefaultUserOptions['numberheadings'] = 1;

to your LocalSettings.php. See here for reference.

uesp
  • 3,384
  • 1
  • 17
  • 16
2

This is Murphy's Law. Despite Googling for the answer I could not find it until after I had posted the question.

The answer comes from: add numbers to section headings?

It is: user PREFERENCES -> MISC -> check Auto-numbering of heading.

0

My Preferences --> Appearance --> Auto-number headings

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208