Outputs "rtl" for right-to-left languages else "ltr".

Currently it recognizes the following rtl languages:

ar · arc · arz · bcc · ckb · bqi · dv · fa · fa-af · glk · ha · he · kk-arab · kk-cn · ks · ku-arab · mzn · pnb · prd · ps · sd · ug · ur · ydd · yi

Usage

{{Dir|1=}}

Parameters

Parameter name Description Default value required or optional?

parameter #1 (1) The language code empty required

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