Template:Dir/doc
Jump to navigation
Jump to search
Outputs "rtl" for right-to-left languages, else "ltr". Same as {{#dir}}
parser function.
Usage
The template takes no parameters.
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users
See also
{{#dir}}
parser function
Localization
This template is not intended to be localized.
Example
{{ Dir | {{{ lang| {{int:lang}} }}} | right | left }} will return either "left" or "right" for rtl ot ltr
{{ Dir | en | right | left }} returns left, and {{ Dir | ar | right | left }} returns right