Wikia

Psychology Wiki

Rtl-lang

Talk0
34,141pages on
this wiki

Template page

Revision as of 10:49, November 7, 2007 by PhloxBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Padlock

This high-risk template has been protected from editing to prevent vandalism. (protection log). Please discuss changes on the talk page or request unprotection. You may use {{editprotected}} on the talk page to ask for an administrator to make an edit for you.

{{{2}}}

UsageEdit

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 scrip, simply use:

* The romanization of "{{lang|ar|اللغة العربية}}" is "{{ISOtranslit|''al-‘arabiyyah''|ar}}".
* The romanization of "{{lang|he|עברית}}" is "{{ISOtranslit|''‘Ivrit''|he}}".
* {{lang|kk|Қазақ тілі}} ({{lang|kk|قازاق ڌﻳل}})

which yields

  • The romanization of "اللغة العربية" is "al-‘arabiyyah

".

  • The romanization of "עברית" is "‘Ivrit

".

  • Қазақ тілі (قازاق ڌﻳل)


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 'override'.[1]

and that the point of the dir parameter is proper linebreaking behaviour: if a linebreak separates اللغة العربية, it should be " العربية", not "اللغة " that is taken to the next line.

For entire rtl paragraphs (as opposed to citations of rtl strings within an English ltr paragraph), use {{rtl-para}}.


This page uses content from the English language Wikipedia. The original content was at Template:Rtl-lang. The list of authors can be seen in the page history. As with this Psychology Wiki wiki, the content of Wikipedia is available under the GNU Free Documentation License.

Around Wikia's network

Random Wiki