Template:Dir: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
mNo edit summary
m 1 revision imported: Import from Mediawiki
 
(44 intermediate revisions by 27 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>
{{#ifeq:{{#dir:{{{lang|{{{1|{{int:lang}}}}}}}}}}|rtl|{{{2|{{{rtl|rtl}}}}}}|{{{3|{{{ltr|ltr}}}}}}}}<noinclude>


{{Documentation}}


----
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>
</noinclude>

Latest revision as of 10:50, 3 January 2025

ltr

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
ViewEditHistory
This template is not yet documented. Please create documentation here: Template:Dir/doc