Template:Dir/doc


 * Usage
 * Outputs " " for right-to-left languages else " ".
 * The default returned values " " and " " can also be customized.


 * Syntax
 * The 1st (optional) parameter language-code (whose value may be passed alternatively by name as ) 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.
 * The 2nd and 3rd (optional) parameters allow changing the default return values for languages written in RTL and LTR scripts (respectively), whose default are " " and " ". These return values may be passed alternatively by name as  and.
 * This can be used to customize CSS styles such as text alignment or floatting side or lateral margins/borders/paddings, or to change the displayed text/symbols or names of images/icons depending on the script direction.
 * 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.
 * The 2nd and 3rd (optional) parameters allow changing the default return values for languages written in RTL and LTR scripts (respectively), whose default are " " and " ". These return values may be passed alternatively by name as  and.
 * This can be used to customize CSS styles such as text alignment or floatting side or lateral margins/borders/paddings, or to change the displayed text/symbols or names of images/icons depending on the script direction.
 * The 2nd and 3rd (optional) parameters allow changing the default return values for languages written in RTL and LTR scripts (respectively), whose default are " " and " ". These return values may be passed alternatively by name as  and.
 * This can be used to customize CSS styles such as text alignment or floatting side or lateral margins/borders/paddings, or to change the displayed text/symbols or names of images/icons depending on the script direction.
 * The 2nd and 3rd (optional) parameters allow changing the default return values for languages written in RTL and LTR scripts (respectively), whose default are " " and " ". These return values may be passed alternatively by name as  and.
 * This can be used to customize CSS styles such as text alignment or floatting side or lateral margins/borders/paddings, or to change the displayed text/symbols or names of images/icons depending on the script direction.


 * Note
 * Currently it recognizes the following codes of languages usually written in a right-to-left script.
 * All other languages will be assumed to use a left-to-right script.


 * Examples
 * , for the current user language which is ( ), returns.
 * , for ( ), returns.
 * , for ( ), returns.
 * , for  ( ), returns.
 * , for  ( ), returns.
 * , for the current user language which is ( ), returns.
 * , for the current user language which is ( ), returns.
 * , for ( ),  returns.
 * , for ( ),  returns.
 * , for ( ),  returns.
 * , for ( ), returns.

TemplateData
{	"description": { "en": "Outputs “rtl” for right-to-left languages, else “ltr”. The default returned values “rtl” and “ltr” can also be customized.", "tr": "Sağdan sola diller için “rtl”, aksi takdirde “ltr” çıkışlar. Varsayılan olarak döndürülen değerler “rtl” ve “ltr” de özelleştirilebilir." },	"format": "inline", "params": { "lang": { "aliases": [ "1"			],			"label": { "en": "language", "tr": "dil" },			"description": { "en": "The language to get the direction for, by default the interface language", "tr": "Varsayılan olarak arayüz dili için yönün alınacağı dil" },			"example": { "en": "fr", "tr": "tr" },			"type": "line" },		"rtl": { "aliases": [ "2"			],			"label": { "en": "right-to-left", "tr": "sağdan-sola" },			"description": { "en": "Return value for right-to-left languages", "tr": "Sağdan sola diller için dönüş değeri" },			"default": "rtl", "type": "boolean" },		"ltr": { "aliases": [ "3"			],			"label": { "en": "left-to-right", "tr": "soldan-sağa" },			"description": { "en": "Return value for left-to-right languages", "tr": "Soldan sağa diller için dönüş değeri" },			"default": "ltr", "type": "boolean" }	} }