Date: prev next · Thread: first prev next last
2021 Archives by date, by thread · List index

On 28.1.2021 23.48, Hossein Ir wrote:
It's been a while since languages with right-to-left script like
Persian and Arabic faced a problem in TDF wiki, in which table of
contents (TOC) was not shown correctly. TOC was left aligned, which
was wrong, and the padding was also wrong.
I have tested different solutions, and at last, using the class
"mw-content-rtl", everything is now fine.
So, one should use {{fa}} and {{fa-end}} templates at the beginning
and the end of Persian article, and for Arabic, one should use {{ar}}
and {{ar-end}} which are essentially the same templates. This can be
also used for other RTL languages.
If some parts need to be written from left-to-right, one should put
them in "mw-content-ltr" styled div tags.

Note that after migrating all of the old-style translations into Translate extension system, this problem will be completely gone and there will be no need to use such templates. See

One example of a working RTL ToC:

The migration work is tedious, especially for pages with complicated content (tables, code snippets). Help is very much appreciated:

There are still over 300 pages with OrigLang template, but some of them are obsolete or historical, so the amount of relevant pages is considerably lower. Over the years, in addition to page migration, I have done cleaning work in the group of pages using OrigLang/Lang templates. Just moments ago I cleaned up some pages to shrink the size of the list.


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.