Difference between revisions of "Template:Dir"

From Veloopti Help
Jump to: navigation, search
(for better compatiblity, define prefered parameter aliases ltr= and rtl= (instead of just parameters 2 and 3 which may contain "=" signs); note also that parameter 1=lang is optional)
m (1 revision imported)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{lc:{{#if:{{{lang|}}}|{{{lang|}}}|{{#if:{{{1|}}}|{{{1|}}}|{{int:lang}}}}}}}}
+
{{#switch:{{{1}}}|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={{{2|rtl}}}|{{{3|ltr}}}}}<noinclude>
|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
+
{{documentation}}
={{#if:{{{rtl|}}}|{{{rtl|}}}|{{#if:{{{2|}}}|{{{2|}}}|rtl}}}}
+
 
|#default
+
[[Category:Internationalization templates|{{PAGENAME}}]]
={{#if:{{{ltr|}}}|{{{ltr|}}}|{{#if:{{{3|}}}|{{{3|}}}|ltr}}}}
+
[[Category:Function templates|{{PAGENAME}}]]
}}<noinclude>{{documentation}}</noinclude>
+
</noinclude>

Revision as of 21:30, 13 July 2017

ltr

50px Template documentation[create]