You are not logged in.

#1 2015-10-14 08:27:15

Mouath
Member
Registered: 2015-10-14
Posts: 2

[SOLVED] Right-to-left issue in Arabic Wiki

I noticed on all Arabic wiki articles that they have an issue with the formatting from right-to-left, specifically on the TOC "Table of Content"

All the articles uses this tag to format them

<div style="text-align: right; direction:rtl;">

While this works for the content itself, the TOC is still going left-to-right

So I looked around and tested this code

<div lang="ar" dir="rtl" class="mw-content-rtl">

And that fixed all the issues I've noticed.

Now the problem is that most of the articles (if not all of them) uses the uncorrect tag.

Is there a way to bulk replace the first code with the second one? or even a better practice to be implemented?

Last edited by Mouath (2015-10-15 03:53:31)

Offline

#2 2015-10-15 03:22:23

kynikos
Wiki Admin
Registered: 2010-12-28
Posts: 170

Re: [SOLVED] Right-to-left issue in Arabic Wiki

I've used my bot to replace the first string with the second in the articles that belong to Category:العربية (not all of them were using it).
You can see the list of changes in Special:Contributions/Kynikos.bot with the summary "fix rtl style/attributes as suggested in https://bbs.archlinux.org/viewtopic.php?pid=1570366#p1570366".

Last edited by kynikos (2015-10-15 03:23:06)

Offline

#3 2015-10-15 03:52:22

Mouath
Member
Registered: 2015-10-14
Posts: 2

Re: [SOLVED] Right-to-left issue in Arabic Wiki

That worked perfect, Thanks to you and to your bot smile

Offline

Board footer

Powered by FluxBB