Page MenuHomePhabricator

Wrap automatic numbering for section headings in a container with a specific class
Closed, ResolvedPublic


Currently we can suppress the automatic numbering on TOCs by defining the CSS rule .tocnumbers { display:none; }. However, when the preference "Auto-numbering of section headings" is activated, the numbers on the headings themselves aren't wrapped in a separate class that allows them to be hidden (or otherwise styled).

Ideally, the text of the heading should also be wrapped in a classed container, as happens with the TOC.

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:04 AM
bzimport set Reference to bz33450.
bzimport added a subscriber: Unknown Object (MLST).

Are you referring to the numbering by the "Auto-numbering headings" preference, or the numbers inside the table of contents ?

Right, you said that already.

So wrapping those in a separate class is a good thing imho:

  • It allows skins to style them separately in a good way
  • It allows use to reduce parser cache fragmentation (only different style instead of different output from this preference)
  • And therefor as a result allows site and/or users specific styles for them globally or on a per-page base.

Change was merged to master branch. Should be in next MediaWiki release; marking bug as fixed.