Formula:Rtl-lang

E Vicipaedia
Jump to navigation Jump to search

{{{2}}}

Documentation icon Documentatio formulae[considerabit] [recense] [historia]

Usage[fontem recensere]

This template behaves like {{lang}}, but additionally inserts the dir="rtl" parameter in the span, and adds the ‎ character at the end of the span.

Note that this is not required for normal insertion of a string in a left-to-right script. If you don't know what you are doing, use {{lang}}.

For example, to produce strings in Arabic or Hebrew script, simply use:

* {{lang|ar|اللغة العربية}}
* {{lang|he|עברית}}
* {{lang|kk|Қазақ тілі}} ({{lang|kk|قازاق ڌﻳل}})

which yields

  • اللغة العربية
  • עברית
  • Қазақ тілі (قازاق ڌﻳل)

Inline use of the dir="rtl" parameter will be restricted to very rare cases, such as use of Arabic letters as symbols in mathematical formulae, or several levels of nested ltr-within-rtl-within-ltr.

Further note that

For the 'direction' property to affect reordering in inline-level elements, the 'unicode-bidi' property's value must be 'embed' or 'ov;;lktrings within an English ltr paragraph), use {{rtl-para}}.