Page MenuHomePhabricator

CodeEditor incorrectly shown for edit notices for CSS pages
Closed, DeclinedPublic

Description

If you try to edit a page like Template:Editnoties/Page/MediaWiki:Common.css it incorrectly shows you the CodeEditor interface, and it tries to comprehend your input as CSS code, not as wikicode. It even prevents you from saving the page if your wikicode appears like invalid CSS code (which is often the case) with the error message " Missing selector list at line 1 character 1."

This happened to me on fawiki just now.

Event Timeline

Huji created this task.Mar 6 2019, 3:17 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 6 2019, 3:17 PM
Dalba added a subscriber: Dalba.Mar 6 2019, 5:51 PM
Force_Radical added a subscriber: Force_Radical.

I believe this is a side effect of TemplateStyles which converted all subpages in the template namespace with the .css suffix into the CSS content-model.

@Huji I think you should ask an administrator to change the content-model of the page.

Anomie closed this task as Declined.Mar 7 2019, 5:38 PM
Anomie added a subscriber: Anomie.

There's nothing more we can sensibly do here beyond the workaround mentioned in T217776#5007529, as it would be prohibitive to try to configure lists of local exceptions for every wiki.

For the record, point your administrator to Special:ChangeContentModel, or to the "Page Information"[1] link in the sidebar (which takes you to a ?action=info URL) where you can find a "change"[2] link on the row for "Page content model"[3].

[1]: I18n message: pageinfo-toolboxlink
[2]: I18n message: pageinfo-content-model-change
[3]: I18n message: pageinfo-content-model

Huji added a comment.Mar 8 2019, 11:24 PM

I am an admin so I did it. Thanks for the guidance!