Difference between revisions of "Template:Dir"

From MakerFX Wiki!
Jump to: navigation, search
m
m (36 revisions imported)
 
(32 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{{#switch:{{{1}}}|ar|arc|dv|fa|fa-af|glk|ha|he|ks|mzn|prd|ps|sd|ur|yi=rtl|ltr}}<noinclude>
+
{{#switch:{{lc:{{#if:{{{lang|}}}|{{{lang|}}}|{{#if:{{{1|}}}|{{{1|}}}|{{int:lang}}}}}}}}
 
+
|ar|arc|arz|azb|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
 
+
={{#if:{{{rtl|}}}|{{{rtl|}}}|{{#if:{{{2|}}}|{{{2|}}}|rtl}}}}
----
+
|#default
Outputs "<tt>rtl</tt>" for right-to-left languages else "<tt>ltr</tt>".
+
={{#if:{{{ltr|}}}|{{{ltr|}}}|{{#if:{{{3|}}}|{{{3|}}}|ltr}}}}
 
+
}}<noinclude>{{documentation}}</noinclude>
'''{{int:usage}}:''' <nowiki>{{</nowiki>dir|''language_code''}}
 
 
 
Currently it recognizes the following rtl languages:
 
:'''ar · arc · dv · fa · fa-af · glk · ha · he · ks · ku · mzn · prd · ps · sd · ur · yi'''
 
 
 
[[Category:Internationalization templates|{{PAGENAME}}]]
 
[[Category:Function templates|{{PAGENAME}}]]
 
</noinclude>
 

Latest revision as of 14:10, 6 August 2018

ltrScript error: No such module "documentation".