テンプレート:Multilingual description/doc

提供:脳科学辞典
< テンプレート:Multilingual description
2014年4月20日 (日) 10:40時点におけるWikiSysop (トーク | 投稿記録)による版 (1版)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動
ファイル:2014-03-01 Gadget Language Select on Template Mld Win7.png
The HTML form-select element is created by a JavaScript gadget

モジュール:Message box/ombox.cssページに内容がありません。

This template allows you to write descriptions in different languages, to display only the one set in the user preferences. It also allows you to select and display a different language using a form.

Usage

{{Multilingual description |xx= }}

Or use the shorthand Mld

For the creation of the form-select and folding of languages, JavaScript is required. This JavaScript is implemented as default gadget at Wikimedia Commons, namely “Language select”, and can be switched off amending the preferences. (Activate the LanguageSelect gadget now! // Disable the LanguageSelect gadget now!)

The gadget will also fold descriptions in multiple languages and create a form-select, if more than a threshold are written consecutively on a page using language templates like {{en}}, {{fr}}, {{es}}.

Help for choosing the right template for your use case:

Criterion \\ Template{{Multilingual description}}{{en}}{{fr}}…{{LangSwitch}}{{Autotranslate}}{{TNT}}
requires JavaScript enabled for folding++---
folding can be disabled by user++---
folding is done server-side--+++
folding when at least x languages are provided14111
collation order of languages (when not folded)Latin, Latin or Cyrillic, Cyrillic, Greek, Other simple LTR alphabets, Indic, Other South Asian, Syllabaries, Hangul, Japanese scripts, Sinograms, (RTL) Hebrew, (RTL) Arabic languagesas provided by the user in the wikitext//////
search indexing issues--+partially (where used; language subpages of templates are indexed)-
recommended use atcategories, galleriesfile description pagessmall templates, whenever the previous options are not suitablelarger templates when used on pages that do not have language subpages (e.g. not having Main page/en, Main page/de) and where the language displayed will be automatically determined by the language set in user preferenceslarger templates when used on pages that do have language subpages; most of the time these will be pages prepared with the Translate Extension
contains expensive parser functions---++

テンプレートパラメーター

ParameterDescriptionDefaultStatus
xxxx can be any number of any supported language codesstring in language xxoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Relies on:

⧼Seealso⧽

Localization

This template is not intended to be localized.

Example

{{Multilingual description
|ca=texto en '''català'''.
|de='''deutscher''' Text.
|diq=No nuşte Zazakiyo.
|en='''English''' text, if the text corresponding to the chosen language to display is not available, all languages will be displayed by default.
|fr=texte '''français''', si le texte correspondant à la langue choisie n’est pas disponible, toutes les langues seront affichées par défaut.
|it=parole '''italiane'''.
|ja=日本語の文字。もし選択した言語に対応したテキストが正しく表示されない場合、デフォルトで全ての言語で表示されます。
|mk=Текст на '''македонски'''. Ако нема текст што соодветствува на одбраниот јазик, тогаш по основно ќе се прикажат сите јазици.
|ru='''Русский''' текст.
}}

produit :

Català: texto en català.
Deutsch: deutscher Text.
English: English text, if the text corresponding to the chosen language to display is not available, all languages will be displayed by default.
Français: texte français, si le texte correspondant à la langue choisie n’est pas disponible, toutes les langues seront affichées par défaut.
Italiano: parole italiane.
Македонски: Текст на македонски. Ако нема текст што соодветствува на одбраниот јазик, тогаш по основно ќе се прикажат сите јазици.
Русский: Русский текст.
日本語: 日本語の文字。もし選択した言語に対応したテキストが正しく表示されない場合、デフォルトで全ての言語で表示されます。
Zazaki: No nuşte Zazakiyo.