Changes

Template:Dir

75 bytes added, 09:17, 7 July 2017
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
{{#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:{2{{rtl|rtl}}}|{{{3rtl|ltr}}}|{{#if:{{{2|}}}<noinclude>|{{{documentation2|}}}|rtl}}}}|#default[[Category={{#if:Internationalization templates{{{ltr|}}}|{{PAGENAME{ltr|}}}]][[Category|{{#if:Function templates{{{3|}}}|{{{PAGENAME3|}}}|ltr}}}}]]}}<noinclude>{{documentation}}</noinclude>
Anonymous user