Page MenuHomePhabricator

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

Description

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

Details

Reference
bz33450
TitleReferenceAuthorSource BranchDest Branch
builds-builder: bump to 0.0.95-20240403110641-057367b9repos/cloud/toolforge/toolforge-deploy!228project_1317_bot_df3177307bed93c3f34e421e26c86e38bump_builds-buildermain
harbor: upgrade to 2.10.1repos/cloud/toolforge/builds-builder!36sstefanovaslavina/upgrade-harbor-to-2.10.1main
Fix ContinueVisitor to handle linterrors continue_ blockrepos/mwbot-rs/mwbot!70legoktmlinter-testsmain
Customize query in GitLab

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.