Page MenuHomePhabricator

Missing CSS styles / resources on some wikis
Closed, DuplicatePublic

Event Timeline

ssastry created this task.Mar 27 2017, 6:01 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 27 2017, 6:01 PM
Nirmos added a subscriber: Nirmos.Mar 27 2017, 9:08 PM

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?

Looking at https://hu.wikipedia.org/w/index.php?diff=18458820, it looks like @Tacsipacsi has done the same on huwiki.

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 Normal priority.Mar 28 2017, 2:18 PM
ssastry moved this task from Backlog to Read Views on the Parsoid board.Jan 11 2018, 9:19 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.

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.