Template:Dir: Difference between revisions
Content deleted Content added
m Protected "Template:Dir": High-usage template - very few needs to be updated ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading] |
GVarnum-WMF (talk | contribs) Pagelang Tags: Manual revert 2017 source edit |
||
(19 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{1}}}|ar|arc|dv|fa|fa-af|glk|ha|he|ks|ku|mzn|prd|ps|sd|ur|yi=rtl|ltr}}<noinclude> |
{{#switch:{{#if:{{{1|}}}|{{{1|}}}|{{Pagelang}}}}|ar|arc|ary|arz|azb|bcc|bgn|ckb|bqi|dv|fa|fa-af|glk|ha-arab|he|kk-arab|kk-cn|ks|ks-arab|ku-arab|ms-arab|mzn|pnb|prd|ps|sd|ug|ur|ydd|yi={{{2|rtl}}}|{{{3|ltr}}}}}<noinclude>{{Documentation}}</noinclude> |
||
---- |
|||
Outputs "<tt>rtl</tt>" for right-to-left languages else "<tt>ltr</tt>". |
|||
'''{{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 08:29, 8 February 2023
ltr
This template has a duplicate on Meta-Wiki. Please visit its documentation on Meta-Wiki for usage details and any additional information. Please keep the content and translations synchronized as much as possible. Thank you! |