Template:Ltr-inline

From translatewiki.net

The documentation of this template is included from its /doc subpage. [Edit]
Usage:
This template shows the parameter as an LTR element. It's for LTR text within a paragraph and not a for a whole paragraph.
Note that without proper isolation, the weak position of punctuations and whitespaces changes; as well sequences of digits in numbers are not reversed, but they are still treated as neutral for the bidirectional algorithm.
Syntax:
Parameters:
  • 1= some text to render and isolate as left-to-right.
Examples:
  • The following code:
* <b style="color:#F00">English-1, <!--not isolated--> Deutsch-2, <!--not isolated--> עִברִית-3, <!--not isolated--> עִברִית-4, <!--not isolated--> عربي-5.</b> (bad example)
* <b style="color:#080">{{Ltr-inline|English/1}}, {{Ltr-inline|Deutsch-2}}, {{Rtl-inline|עִברִית-3}}, {{Rtl-inline|עִברִית-4}}, {{Rtl-inline|عربي-5}}.</b> (correct example)
gives on an English page with a default left-to-right layout:
  • English-1, Deutsch-2, עִברִית-3, עִברִית-4, عربي-5.
  • English-1, Deutsch-2, עִברִית-3, עִברִית-4, عربي-5.
and on an Arabic page with a default right-to-left layout:
  • English-1, Deutsch-2, עִברִית-3, עִברִית-4, عربي-5.
  • English-1, Deutsch-2, עִברִית-3, עִברִית-4, عربي-5.
See also:
  • {{Rtl-inline}}
  • {{Rtl}} - this allows detecting the direction of a given language and select the content to return (by default, it just returns "right" for kown RTL languages, or "left" otherwise)