Steps to reproduce bug
- Have the TemplateStyles extension installed on any wiki.
- Attempt to create a Template namespace subpage ending in .css or import any such page from Wikipedia.
Expected result
- The CodeEditor (if installed) should be loaded instead of the regular wikitext editor when trying to create page, and the created page should be assigned the sanitized-css content model.
- The imported page should retain its sanitized-css content model.
Observed result
- Both of the above results in the wikitext content model being assigned. The issue persisted before and after Miraheze's database issue, likely unrelated.
Links to Discord discussions
- https://discord.com/channels/407504499280707585/1028849431757475915
- https://discord.com/channels/407504499280707585/1029781113532592208
- https://discord.com/channels/407504499280707585/1032096274515775580
- https://discord.com/channels/407504499280707585/407537962553966603/1068369302966771732
Priority set to High as this is a very common feature across wikis (many wikis are likely to have imported basic templates from Wikimedia wikis, which a lot of them utilizes TemplateStyles. Tagging Configuration and ManageWiki to check if it could be caused by unintended configurations set by Special:ManageWiki/namespaces.