Difference between revisions of "Template:If rtl"

From Kerbal Space Program Wiki
Jump to: navigation, search
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>Returns if this language code represents a right-to-left written language.
+
|#default={{{2|}}}}}<noinclude>
 
+
{{Documentation}}
Following languages are recognized as RTL languages:
+
</noinclude>
* Arabic (ar)
 
* Hebrew (he)
 
 
 
== Parameters ==
 
{{Parameter table|name=both|parameters=
 
{{Parameter row|1|Returns this value when it is a RTL language.|<tt>1</tt>}}
 
{{Parameter row|2|Returns this value when it is a LTR language.|Nothing/Empty text}}
 
{{Parameter row|from|Alternative value to test the language code.}}
 
}}
 
 
 
[[Category:Templates]]</noinclude>
 

Latest revision as of 13:43, 1 March 2020

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:If rtl

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.