Template:Rtl-para/doc
This is a documentation subpage for Template:Rtl-para. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
en-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
TemplateData for Rtl-para
<templatedata> { "params": { "1": { "description": "Insert a content, or an ISO 639 language code", "type": "string", "required": true}, "2": { "description": "Insert a content belonging to the language specified, if the first parameter is used", "type": "string", "required": false} }, "format": "block", "description": "Insert a paragraph that flows right-to-left." } </templatedata>