Template:Multilingual description/doc: Difference between revisions
More actions
Creation |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=xx | |1=<tt>xx</tt> | ||
|1d= | |1d= | ||
{{LangSwitch | {{LangSwitch | ||
|en= | |en=<tt>xx</tt> can be any number of any supported language codes | ||
|fr= | |fr=<tt>xx</tt> peut être tout code de langue, autant de fois que nécessaire | ||
}} | }} | ||
|1def= | |1def= | ||
{{LangSwitch | {{LangSwitch | ||
|en=string in language | |en=string in language <tt>xx</tt> | ||
|fr=texte dans la langue de code | |fr=texte dans la langue de code <tt>xx</tt> | ||
}} | }} | ||
|1stat= | |1stat= | ||
| Line 15: | Line 15: | ||
|desc= | |desc= | ||
{{LangSwitch | {{LangSwitch | ||
|en=Allows to write a description in several languages, to | |en=Allows to write a description in several languages, to display only the one set in the user preferences and to allow to read the others using a form. | ||
|fr=Permet de spécifier une description en plusieurs langues, de | |fr=Permet de spécifier une description en plusieurs langues, de n’afficher que celle choisie par l’utilisateur tout en permettant d’accéder aux autres via un formulaire. | ||
}} | }} | ||
|namespace= | |namespace= | ||
| Line 22: | Line 22: | ||
|placement= | |placement= | ||
|usage-notes= | |usage-notes= | ||
This template is linked with a mediawiki javascript which was integrated to Commons. | {{LangSwitch | ||
|en=This template is linked with a mediawiki javascript which was integrated to Commons. More information is available at [[:meta:Meta:Language select]] and [[:meta:template:Ls]].<br /> An alternative version of this javascript is avaible, to try it you need to add that line in your user [[Special:Mypage/monobook.js|monobook.js]]: | |||
More information is available at [[:meta:Meta: | |fr=Ce modèle est lié à un code javascript de MediaWiki qui a été intégré à Commons. Plus d’informations sont disponibles sur [[:meta:Meta:Language_select]] et [[:meta:template:Ls]].<br /> Une version alternative de ce Javascript est disponible, pour l’essayer vous devez ajouter la ligne suivante dans votre script [[Special:Mypage/monobook.js|monobook.js]] : | ||
}} | |||
An alternative version of this javascript is avaible, to try it you need to add that line in your user [[Special:Mypage/monobook.js|monobook.js]]: | |||
<pre> | <pre> | ||
importScript('MediaWiki:Multilingual description.js'); | importScript('MediaWiki:Multilingual description.js'); | ||
| Line 46: | Line 45: | ||
|en=English text, if the text corresponding to the choosen language to display is not available, all language will be displayed by default. | |en=English text, if the text corresponding to the choosen language to display is not available, all language will be displayed by default. | ||
|it=parole italiane | |it=parole italiane | ||
|fr=texte français, si le texte correspondant à la langue choisie | |fr=texte français, si le texte correspondant à la langue choisie n’est pas disponible, toutes les langues seront affichées par défaut. | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 53: | Line 52: | ||
|en=English text, if the text corresponding to the choosen language to display is not available, all language will be displayed by default. | |en=English text, if the text corresponding to the choosen language to display is not available, all language will be displayed by default. | ||
|it=parole italiane | |it=parole italiane | ||
|fr=texte français, si le texte correspondant à la langue choisie | |fr=texte français, si le texte correspondant à la langue choisie n’est pas disponible, toutes les langues seront affichées par défaut. | ||
}} | }} | ||
Revision as of 09:58, 30 October 2009
Allows to write a description in several languages, to display only the one set in the user preferences and to allow to read the others using a form.
Usage
{{Multilingual description |xx= }}
Or use the shorthand
This template is linked with a mediawiki javascript which was integrated to Commons. More information is available at meta:Meta:Language select and meta:template:Ls.
An alternative version of this javascript is avaible, to try it you need to add that line in your user monobook.js:
importScript('MediaWiki:Multilingual description.js');
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
See also
Localization
This template is not intended to be localized.
Example
{{Multilingual description
|de=deutsche Texte
|en=English text, if the text corresponding to the choosen language to display is not available, all language will be displayed by default.
|it=parole italiane
|fr=texte français, si le texte correspondant à la langue choisie n’est pas disponible, toutes les langues seront affichées par défaut.
}}
produces: