テンプレート:Multilingual description
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 provided | 1 | 4 | 1 | 1 | 1 |
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 languages | as provided by the user in the wikitext | // | // | // |
search indexing issues | - | - | + | partially (where used; language subpages of templates are indexed) | - |
recommended use at | categories, galleries | file description pages | small templates, whenever the previous options are not suitable | larger 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 preferences | larger 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 | - | - | - | + | + |
テンプレートパラメーター
Parameter | Description | Default | Status | |
---|---|---|---|---|
xx | xx can be any number of any supported language codes | string in language xx | optional |
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:
- MediaWiki:Gadget-LanguageSelect.js
- Module:Multilingual description
- Module:Multilingual description/sort
⧼Seealso⧽
- {{LangSwitch}}
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 :
The above documentation is transcluded from テンプレート:Multilingual description/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |