Template:Dir/doc

From Wikimedia Commons, the free media repository
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}} }}}rightleft }} will return either "left" or "right" for rtl ot ltr

{{ Direnrightleft }} returns left, and {{ Dirarrightleft }} returns right