Page MenuHomePhabricator

Allow wikitext in coments in CSS stylesheets
Closed, DuplicatePublic

Description

Author: le.korrigan

Description:
It seems that a recent change in MediaWiki now prevents wikitext from being parsed in CSS files ; on fr.wikipedia and on other projects, it is common practice to use wikitexts between comments to divide pages into sections and allow section editing (see [[:fr:MediaWiki:Common.css]]). Could this please be reactivated ? Thanks.


Version: 1.11.x
Severity: enhancement

Details

Reference
bz10425

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:48 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz10425.
bzimport added a subscriber: Unknown Object (MLST).

cannon.danielc wrote:

(In reply to comment #0)

It seems that a recent change in MediaWiki now prevents wikitext from being
parsed in CSS files ; on fr.wikipedia and on other projects, it is common
practice to use wikitexts between comments to divide pages into sections and
allow section editing (see [[:fr:MediaWiki:Common.css]]). Could this please be
reactivated ? Thanks.

Yes, we're now wrapping up site css/js in <pre> tags, as is done with user css/js. Not sure if/how we'd enable parsing of wikilinks while preserving the <pre> wrapping, so likely the only option would be to revert that, which I'm not sure would be much of an "improvement." In any case, certainly not high priority / critical severity as you indicated, reducing to low / enhancement.

ayg wrote:

*** This bug has been marked as a duplicate of bug 10422 ***