Wikiversity:Language select/En

From Wikiversity

Jump to: navigation, search

Geographylogo.svg Wikiversity:Language selectDeutsch  · Ελληνικά  · English  · Español  · Français  · 日本語  · Ripoarisch  · ‪Norsk (bokmål)‬  · Português  · Română  · Svenska  · Türkçe  · 中文  · 


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).

Contents

[edit] 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 .

[edit] Usage

[edit] 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.
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.

[edit] Delimiting languages

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

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