Template:OpenDivRTL
Jump to navigation
Jump to search
This template is not operative, until module:wikidades was tested |
Description
[edit]The
and {{OpenDivRTL}}
templates are used to create a {{CloseDivRTL}}
<div> block ... . </div>
to manage Right To Left (RTL) languages
OpenDivRTL
, open a<div lang = "language" dir = "rtl">
if the language passed to it as a parameter is RTL (right to left), so that the following contents are in RTL format. Its placement is scheduled just at the beginning of an infobox to display information in the direction of language reading.
CloseDivRTL
, generates a</div>
under the same conditions given to open it.
Syntax
[edit] {{OpenDivRTL | lang = <lang>}}
{{CloseDivRTL | lang = <lang>}}
- where lang is the language code of the content.
It could be:
- provide a language code (lang = es, fr, of ...)
- use the global parameter {{{lang|}}}
- do not inform and template will take "default language".
The default language is the wiki language when is used within the main space (articles) or from "preferences" profile in other spaces. It is very important to use the same value in both calls !.
See also
[edit]The above documentation is transcluded from Template:OpenDivRTL/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |