Template:Dir/doc

From Wikispecies
Jump to navigation Jump to search

This template returns the directionality of the language passed as a parameter. It can also be used to get any sort of directionality-dependent output (float images to different side of the page, set different margins, use different icons etc.) using two additional parameters.

Template parameters

ParameterDescriptionTypeStatus
language1

Language code of the language to determine directionality for.

Default
en (effectively)
Example
ar
Linerequired
RTL output2

Output if the input language is written right-to-left

Default
rtl
Example
float:left
Unknownoptional
LTR output3

Output if the input language is written left-to-right

Default
ltr
Example
float:right
Unknownoptional