Page MenuHomePhabricator

Wrapping templatestyle tag in a noinclude was not intuitive.
Closed, ResolvedPublic

Description

This didn't seem obvious to me. I wanted to include styles in the template.. so why did I have to wrap them in a noinclude ?

If this cannot be changed we should document this on the wiki page.

Event Timeline

The alternative would be that styles are transcluded to every page and processed there, which is more flexible (e.g. styles can depend on template parameters) but also more expensive since styles would have to be reparsed in every article.

Change 346808 had a related patch set uploaded (by Anomie):
[mediawiki/extensions/TemplateStyles@master] Use wikimedia/css-sanitizer, and rewrite the hooking

https://gerrit.wikimedia.org/r/346808

Change 346808 merged by jenkins-bot:
[mediawiki/extensions/TemplateStyles@master] Use wikimedia/css-sanitizer, and rewrite the hooking

https://gerrit.wikimedia.org/r/346808

Anomie claimed this task.