Wikiversity:Language select/simple

This page is a translated version of the page Wikiversity:Language select and the translation is 86% complete.

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

  • 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

Identifying multilingual pages

Pages that implement language selection include a notice using {{multilingual}}.


JavaScript

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.

अंगिका: ई पाठ अंगिका छेकै।
العربية: هذا النص بالعربيه.
български: Този текст е на български език.
català: Aquest text és en català.
Deutsch: Dieser Text ist Deutsch.
Ελληνικά: Αυτό το κείμενο είναι ελληνικά.
English: This text is English.
Tiếng Việt: Đây là tiếng Việt.
français: Ce texte est Français.
italiano: Questo testo è italiano.
日本語: この文章は日本語です。
한국어: 이 본문 한국어 이다.
Latina: Haec nota Latine scriptus est.
македонски: Овој текст е на македонски.
Nederlands: Deze tekst is Nederlands.
ਪੰਜਾਬੀ: ਇਹ ਟੈਕਸਟ ਪੰਜਾਬੀ ਵਿੱਚ ਹੈ।
português: Este texto está em Português.
sardu: Custu testu est in Sardu.
русский: Этот текст — на русском языке.
Türkçe: Bu metin Türkçe'dir.
中文: 这些文字是中文。

You can view the JavaScript code at MediaWiki:Monobook.js.

Delimiting languages

The template {{ls}} simplifies the implementation of language select.

{{ls|en|This text is English.}}