Difference between revisions of "Template:If rtl"
From Kerbal Space Program Wiki
m (*renamed Parameter Table to Parameter table;) |
m (Move doc) |
||
Line 1: | Line 1: | ||
{{#switch: {{#if:{{{from|}}}|{{{from}}}|{{#titleparts:{{PAGENAME}}||-1}}}} | {{#switch: {{#if:{{{from|}}}|{{{from}}}|{{#titleparts:{{PAGENAME}}||-1}}}} | ||
|ar|he={{{1|1}}} | |ar|he={{{1|1}}} | ||
− | |#default={{{2|}}}}}<noinclude> | + | |#default={{{2|}}}}}<noinclude> |
− | + | {{Documentation}} | |
− | + | </noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:43, 1 March 2020
Returns if this language code represents a right-to-left written language.
Following languages are recognized as RTL languages:
- Arabic (ar)
- Hebrew (he)
Parameters
#/Name | Optional | Description | Default |
---|---|---|---|
1 | Yes | Returns this value when it is a RTL language. | 1 |
2 | Yes | Returns this value when it is a LTR language. | Nothing/Empty text |
from | No | Alternative value to test the language code. |
The above documentation is transcluded from Template:If rtl/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |