This is the template sandbox page for Template:Rtl-para (diff). See also the companion subpage for test cases. |
Usage
editen-wiki pages are lang="en", dir="ltr" globally. Use this template to insert a paragraph that flows right-to-left. Since any such paragraph will likely be in a language other than English, supply the ISO 639 code of its language as the first parameter.
Type {{Rtl-para|fa|text}}
. Instead of the fa
for the Persian language you may type other codes for other intended languages written with a right-to-left script.
example (from Wikipedia in Persian):
example (from Wikipedia in Hebrew):
(resize browser window or select texts to check linebreaking behaviour)
If you subst: the template, English bits within the text (such as "Wikipedia" in the present example) can be marked with {{Lang|en|...}}.
Template data
editTemplateData for Rtl-para
Insert a paragraph that flows right-to-left.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Insert a content, or an ISO 639 language code | String | required |
2 | 2 | Insert a content belonging to the language specified, if the first parameter is used | String | optional |