Template:Dir: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
|||
Line 1: | Line 1: | ||
{{#switch:{{{1}}}|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={{{2|rtl}}}|{{{3|ltr}}}}}<noinclude> |
{{#switch:{{{1}}}|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={{{2|rtl}}}|{{{3|ltr}}}}}<noinclude> |
||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
[[Category:Formatting and function templates]]</noinclude> |
||
<noinclude>[[Category:Formatting and function templates]]</noinclude> |
Revision as of 12:42, 24 November 2012
ltr
Outputs rtl
for right-to-left languages else ltr
.
Currently it recognizes the following rtl languages:
- ar
- arc
- arz
- azb
- bcc
- ckb
- bqi
- dv
- fa
- fa-af
- glk
- ha
- he
- kk-arab
- kk-cn
- ks
- ku-arab
- mzn
- nqo
- pnb
- prd
- ps
- sd
- ug
- ur
- ydd
- yi
Usage
{{dir|1=|2=|3=}}
- Examples
{{Dir}}
>>>> (preferences language =en): ltr{{Dir|en}}
>>>> : ltr (English){{Dir|ar}}
>>>> : rtl (Arabic)
See also
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 |
The language code | empty | required | |
2 |
rtl action | rtl | optional | |
3 |
ltr action | ltr | optional |
The above documentation is transcluded from Template:Dir/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |