Usor:DeirdreAnne/Sandbox2

E Wikisource

CSS Class "multilingual" is enabled on the Latin Wikisource. On pages that have alternate text in multiple languages, this class can be used to display text only in the users preferred languages. The Latin Wikisource common stylesheet is set to default to display to English and Latin. You can change these settings by editing your stylesheet. For example, if you want to show only Latin, add the following to your stylesheet:

.multilingual *[lang] {display:none;}
.multilingual *[lang|=la] {display:block;}

or if you wish to display Latin and German:

.multilingual *[lang] {display:none;}
.multilingual *[lang|=la], .multilingual *[lang|=de] {display:block;}

This will only work on pages where multilingual stylesheets have been enabled and it will only work for languages to which that page has been translated. At this time, it is recommended that you always have either English or Latin enabled as one of your languages, otherwise you may find that you cannot see anything!

If you are editing a page and want to enable multilingual support, first, ensure that there is text in at least two languages and that one of them is either English or Latin. Next at the top of the page (or multilingual section of a page) place: <div class="multilingual"> next type the text the text you want inside div lang wrappers:

<div class="lang-en" lang="en">This text is English.</div>
<div class="lang-fr" lang="fr">Ce texte est Français.</div>
<div class="lang-la" lang="la">Haec verba latina sunt.</div>


At the bottom of the page or section, close the multilingual class with: </div>

On most users pages this will automatically display:

This text is English. Haec verba latina sunt.

Users who have enabled French and Latin will see:

Ce texte est Français. Haec verba latina sunt.

Users who have enabled only English will see only:

This text is English.