Page MenuHomePhabricator

Infobox does not get moved behind the lead paragraph as HTML element outputted by Arabic infobox template does not include the infobox class
Open, Needs TriagePublic

Description

ar.wiki uses classes such as infbox_v2 and infobox_v3, so it isn't picked up by MobileFrontend's CSS and breaks the layout:

e.g.
https://ar.m.wikipedia.org/wiki/%D9%87%D9%88%D9%84%D9%83_%D8%A7%D9%84%D8%AE%D8%A7%D8%B1%D9%82_(%D9%81%D9%8A%D9%84%D9%85) (the infobox should appear below the first paragraph)
https://ar.m.wikipedia.org/wiki/%D8%AC%D9%88%D9%86_%D9%85%D8%A7%D9%83%D9%88%D9%84 (the infobox's width should be constrained and not full-width)

Event Timeline

Esanders created this task.Mar 11 2019, 7:09 PM
Restricted Application added subscribers: alanajjar, Aklapper. · View Herald TranscriptMar 11 2019, 7:09 PM
Niedzielski updated the task description. (Show Details)Apr 25 2019, 5:13 PM

Hello @Jdlrobson and @CKoerner_WMF, is there any update? or thing(s) that we (Arabic Wikipedia) can help in it?

TheDJ added a subscriber: TheDJ.May 21 2019, 6:04 PM

Im pretty sure i explained this to ar.wp before... The proper way to fix this is to generate html with TWO classes, like class=“infobox infobox_v2”. And make sure that any visual changes in v2 override the visual changes of infobox.

What @TheDJ says. Please add the infobox class to the element. The community needs to fix this. We can't help.
Output should look like this:

<div class="infobox infobox_v3" style="max-width:300px"><div
Jdlrobson renamed this task from Infobox not detected on Arabic Wikipedia to Infobox does not get moved behind the lead paragraph as HTML element outputted by Arabic infobox template does not include the infobox class.Mon, Jul 1, 5:54 PM
Mr.Ibrahem added a subscriber: Mr.Ibrahem.EditedSat, Jul 6, 10:08 PM


It's done for most templates, I changed class=“infobox_v2” to class=“infobox infobox_v2”.

Thank you Mr.Ibrahem 🙏 for the other templates e.g. the one used by https://ar.m.wikipedia.org/wiki/%D9%87%D9%88%D9%84%D9%83_%D8%A7%D9%84%D8%AE%D8%A7%D8%B1%D9%82_(%D9%81%D9%8A%D9%84%D9%85) is there an open request?

Thank you Mr.Ibrahem 🙏 for the other templates e.g. the one used by https://ar.m.wikipedia.org/wiki/%D9%87%D9%88%D9%84%D9%83_%D8%A7%D9%84%D8%AE%D8%A7%D8%B1%D9%82_(%D9%81%D9%8A%D9%84%D9%85) is there an open request?

In arwiki we are using two kind of templates (1 & 2), so on 4 July I sent to Mr.Ibrahem and he fixed the first kind, and now I sent to user:وهراني to fix the other kind (your example).