Template:Dir/doc


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


 *  
 * The language_code parameter should be conforming to BCP47, as required by web standards (HTML/CSS...), rather than Wikimedia labels for designating languages in domain names (in some cases, Wikimedia language codes are not conforming and only used for interwikis and URLs; most of them are being migrated to BCP47, which is based on some parts of the ISO649 standard).
 * If no language_code parameter is specified, it defaults to the preferred UI language of the visitor viewing the current page, which for you is currently .
 * If no language_code parameter is specified, it defaults to the preferred UI language of the visitor viewing the current page, which for you is currently .


 * Currently it recognizes the following codes of languages usually written in a right-to-left script:
 * ar | arc | arz | bcc | ckb | dv | fa | fa-af | ha | he | ks | mzn | pnb | prd | ps | sd | ug | ur | yi
 * ar | arc | arz | bcc | ckb | dv | fa | fa-af | ha | he | ks | mzn | pnb | prd | ps | sd | ug | ur | yi</tt>


 *  </tt> returns </tt>.
 *  </tt> returns </tt>.
 *  </tt> returns </tt>.