Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Multilingual description/doc: Difference between revisions

Template page
Creation
 
mNo edit summary
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|1=xx
|1=<tt>xx</tt>
|1d=
|1d=
{{LangSwitch
{{LangSwitch
|en=''xx'' can be any number of any supported language codes
|en=<tt>xx</tt> can be any number of any supported language codes
|fr=''xx'' peut être tout code de lange, autant de fois que nécessaire
|fr=<tt>xx</tt> peut être tout code de langue, autant de fois que nécessaire
}}
}}
|1def=
|1def=
{{LangSwitch
{{LangSwitch
|en=string in language ''xx''
|en=string in language <tt>xx</tt>
|fr=texte dans la langue de code ''xx''
|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 dislpay only the one set in the user preferences and to allow to read the others using a form.
|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 n'afficher que celle choisie par l'utilisateur tout en permettant d'accéder aux autres via un formulaire.
|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:Language_select]] and [[:meta:template:Ls]]
|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 n'est pas disponible, toutes les langues seront affichées par défaut.
  |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 n'est pas disponible, toutes les langues seront affichées par défaut.
  |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

{{Mld|… parameters as described …}}

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

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

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:

Deutsch: deutsche Texte
English: English text, if the text corresponding to the choosen language to display is not available, all language 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.