Page MenuHomePhabricator

left-to-right and right-to-left sections are mixed in the Hebrew Wikibooks
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • go to the Hebrew Wikibooks village pump
  • look at a discussion with subsections, for exemple this one (diff)

What happens?:
Sections display right-to-left, instead subsections display left-to-right

What should have happened instead?:
Sections and subsections should displayed left-to-right

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Screenshot 2022-09-30 at 15-19-10 ויקיספר מזנון – ויקיספר.png (1×1 px, 340 KB)

Event Timeline

<h3> gets direction: ltr from .mw-content-ltr.
<h2> gets direction: rtl from .mw-body.
I'm not sure which part of the software stack is involved here.

Jdlrobson subscribed.

This article mixes content direction.

It sets direction on the heading, but should probably be the entire block. The classes mw-content-ltr and mw-content-rtl are deprecated. Please don't use those.

Currently:

== <span lang="en" dir="ltr" class="mw-content-ltr">2022 Board of Trustees Call for Candidates</span> ==
<div lang="en" dir="ltr" class="mw-content-ltr">
...
</div>

Suggested

<div lang="en" dir="ltr">
== 2022 Board of Trustees Call for Candidates ==
..
</div>

This is not an issue with the skin architecture, but possibly there's better ways to do the above with the parser that I am not aware of.

Looking at https://he.wikibooks.org/w/index.php?title=ויקיספר:מזנון&action=edit it explicitly sets mw-content-ltr as part of the wiki page content (!).
@Patafisik: Do you know where this is coming from? This looks like something to fix on the wiki in its content.

I'm not sure that I can reproduce. I see it properly from left to right.

Looking at https://he.wikibooks.org/w/index.php?title=ויקיספר:מזנון&action=edit it explicitly sets mw-content-ltr as part of the wiki page content (!).
@Patafisik: Do you know where this is coming from? This looks like something to fix on the wiki in its content.

No ideas, I asked the community.

Aklapper changed the task status from Open to Stalled.Dec 5 2022, 5:56 PM
Aklapper removed a project: MediaWiki-Parser.

No ideas, I asked the community.

@Patafisik: Any news (or link to this conversation, for transparency)?