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.
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.
Subject | Repo | Branch | Lines /- | |
---|---|---|---|---|
Use wikimedia/css-sanitizer, and rewrite the hooking | mediawiki/extensions/TemplateStyles | master | 1 K -953 |
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
Change 346808 merged by jenkins-bot:
[mediawiki/extensions/TemplateStyles@master] Use wikimedia/css-sanitizer, and rewrite the hooking