Template:Dir
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 |