Template:Donate-direction

Given a language code, returns the text direction (either "ltr" or "rtl")

If no code is passed as a parameter, takes it from the title of the page it is used on. e.g. on Foo:Blahblah/en will return "ltr", on Foo:Blahblah/ar will return "rtl"