Wikiversity:Language select
For a more detailed version about this feature, see Meta:Language select.
Language select allows users to hide foreign languages on multilingual pages. This would, for example, allow a French reader to see only French text on multilingual pages (though they would still see Spanish on a Spanish-only page).
How to select a language
[edit]- To select a language, enter its ISO 639-1 code in the input box (
en
for English), and click on ➤. - If you want to display all languages, type
mul
or click on ⋙.
Usage
[edit]Identifying multilingual pages
[edit]Pages that implement language selection include a notice using {{multilingual}}.
JavaScript
[edit]The JavaScript method is activated by default on Wikiversity Beta. You can disable it by adding the following line to your script file.
ls_enable = false;
You can see an example of the JavaScript in action below. If language selection is disabled, all of the text will be displayed.
You can view the JavaScript code at MediaWiki:Monobook.js.
Delimiting languages
[edit]The template {{ls}} simplifies the implementation of language select.
{{ls|en|This text is English.}}