Last modified: 2012-06-17 22:07:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35450, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33450 - Wrap automatic numbering for section headings in a container with a specific class
Wrap automatic numbering for section headings in a container with a specific ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: 1.20.0 release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-31 22:53 UTC by Waldir
Modified: 2012-06-17 22:07 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Waldir 2011-12-31 22:53:08 UTC
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.
Comment 1 Krinkle 2012-01-01 23:52:03 UTC
Are you referring to the numbering by the "Auto-numbering headings" preference, or the numbers inside the table of contents ?
Comment 2 Krinkle 2012-01-01 23:53:46 UTC
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.
Comment 3 Waldir 2012-06-03 14:48:52 UTC
Patch submitted to gerrit: https://gerrit.wikimedia.org/r/9980
(thanks, Roan!)
Comment 4 Waldir 2012-06-17 18:20:20 UTC
Change was merged to master branch. Should be in next MediaWiki release; marking bug as fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links