Page MenuHomePhabricator

Missing CSS styles / resources on some wikis
Closed, DuplicatePublic

Event Timeline

Could you clarify what styles you're missing? Does this have to do with the fact that I've moved CSS from https://sv.wikipedia.org/wiki/MediaWiki:Common.css to individual gadgets, like https://sv.wikipedia.org/wiki/MediaWiki:Gadget-infobox.css?

I started wondering about what's the canonical way of getting the gadget css in T161278

What I’ve done on huwiki means that now infoboxes have styles on mobile web. I had no idea about mobile apps before pushing the save button, but now I know they currently don’t work. I think mobile styles (this one is explicitly marked as such) should load in apps too.

Arlolra triaged this task as Medium priority.Mar 28 2017, 2:18 PM

Will TemplateStyles solve this?

Will TemplateStyles solve this?

We haven't investigated what exactly is going on here. So, I cannot answer this right now.

I tried to find out the answer for myself but https://www.mediawiki.org/api/rest_v1/page/html/User:Nirmos/Sandbox just gives an error.

Parsoid hasn't yet implemented template styles .. but, we shouldn't be crashing for sure. We'll take a look at the crasher.

To be clear, https://www.mediawiki.org/api/rest_v1/page/html/User:Nirmos (without /Sandbox at the end) also fails, so it's not that the page crashes because of TemplateStyles, but rather that the rest api does not work for pages not in the main namespace.

.. but rather that the rest api does not work for pages not in the main namespace.

That is not true. https://www.mediawiki.org/api/rest_v1/page/html/User:SSastry_(WMF) or https://www.mediawiki.org/api/rest_v1/page/html/User:SSastry_(WMF)%2FSandbox ... Something is causing Parsoid / RB to crash on those pages.

Ok, then it has to be the fact that my user page does not exist on mediawiki.org, but on meta.wikimedia.org. See https://www.mediawiki.org/wiki/Extension:GlobalUserPage

Ok, so now we can confirm that TemplateStyles does solve this. See for example https://www.mediawiki.org/api/rest_v1/page/html/User:Nirmos%2FSandbox where the background-color is blue thanks to TemplateStyles.