Template:Multilingual description

From Wikimedia Commons, the free media repository
(Redirected from Template:Mld)
Jump to: navigation, search
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Multilingual description/doc.

The HTML form-select element is created by a JavaScript gadget

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|… parameters as described …}}

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}}. Template loop detected: Template:Autotranslate <includeonly></includeonly>

Template parameters

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:

See also

Localization

This template is not intended to be localized.

Example

{{Multilingual description
 | be-tarask = '''Беларускі''' тэкст. Калі няма тэксту на адпаведнай мове, дапомна будуць адлюстраваныя тэксты на ўсіх мовах.
 | 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 = Testo '''italiano'''.
 | ja = 日本語の文字。もし選択した言語に対応したテキストが正しく表示されない場合、デフォルトで全ての言語で表示されます。
 | mk = Текст на '''македонски'''. Ако нема текст што соодветствува на одбраниот јазик, тогаш по основно ќе се прикажат сите јазици.
 | pt = Texto em '''português'''.
 | pt-br = texto em '''português do Brasil''', se o texto correspondente ao idioma escolhido não estiver disponível, o texto será exibido por padrão em todos os idiomas disponíveis.
 | ru = '''Русский''' текст.
}}

produces:

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: Testo italiano.
Português: Texto em português.
Português do Brasil: texto em português do Brasil, se o texto correspondente ao idioma escolhido não estiver disponível, o texto será exibido por padrão em todos os idiomas disponíveis.
Zazaki: No nuşte Zazakiyo.
Беларуская (тарашкевіца)‎: Беларускі тэкст. Калі няма тэксту на адпаведнай мове, дапомна будуць адлюстраваныя тэксты на ўсіх мовах.
Македонски: Текст на македонски. Ако нема текст што соодветствува на одбраниот јазик, тогаш по основно ќе се прикажат сите јазици.
Русский: Русский текст.
日本語: 日本語の文字。もし選択した言語に対応したテキストが正しく表示されない場合、デフォルトで全ての言語で表示されます。