Template:Dir/doc
This is a documentation subpage for Template:Dir. It contains usage information, categories, and other content that is not part of the original template page. |
This template returns the directionality of the language passed as a parameter. It can also be used to get any sort of directionality-dependent output (float images to different side of the page, set different margins, use different icons etc.) using two additional parameters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
language | 1 | Language code of the language to determine directionality for.
| Line | required |
RTL output | 2 | Output if the input language is written right-to-left
| Unknown | optional |
LTR output | 3 | Output if the input language is written left-to-right
| Unknown | optional |