Template:Multilingual description: Difference between revisions
Template page
More actions
+ nn (the other Norwegian) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="multilingual"><!-- | <includeonly><div class="multilingual"><!-- | ||
ordered by direction then by script: | |||
* Latin: | |||
-->{{#if:{{{af|}}}|{{ls|af|{{{af|}}}}}}}<!-- | -->{{#if:{{{af|}}}|{{ls|af|{{{af|}}}}}}}<!-- | ||
-->{{#if:{{{br|}}}|{{ls|br|{{{br|}}}}}}}<!-- | -->{{#if:{{{br|}}}|{{ls|br|{{{br|}}}}}}}<!-- | ||
-->{{#if:{{{ca|}}}|{{ls|ca|{{{ca|}}}}}}}<!-- | -->{{#if:{{{ca|}}}|{{ls|ca|{{{ca|}}}}}}}<!-- | ||
| Line 8: | Line 8: | ||
-->{{#if:{{{da|}}}|{{ls|da|{{{da|}}}}}}}<!-- | -->{{#if:{{{da|}}}|{{ls|da|{{{da|}}}}}}}<!-- | ||
-->{{#if:{{{de|}}}|{{ls|de|{{{de|}}}}}}}<!-- | -->{{#if:{{{de|}}}|{{ls|de|{{{de|}}}}}}}<!-- | ||
-->{{#if:{{{en|}}}|{{ls|en|{{{en|}}}}}}}<!-- | -->{{#if:{{{en|}}}|{{ls|en|{{{en|}}}}}}}<!-- | ||
-->{{#if:{{{eo|}}}|{{ls|eo|{{{eo|}}}}}}}<!-- | -->{{#if:{{{eo|}}}|{{ls|eo|{{{eo|}}}}}}}<!-- | ||
-->{{#if:{{{es|}}}|{{ls|es|{{{es|}}}}}}}<!-- | -->{{#if:{{{es|}}}|{{ls|es|{{{es|}}}}}}}<!-- | ||
-->{{#if:{{{et|}}}|{{ls|et|{{{et|}}}}}}}<!-- | -->{{#if:{{{et|}}}|{{ls|et|{{{et|}}}}}}}<!-- | ||
-->{{#if:{{{fi|}}}|{{ls|fi|{{{fi|}}}}}}}<!-- | -->{{#if:{{{fi|}}}|{{ls|fi|{{{fi|}}}}}}}<!-- | ||
-->{{#if:{{{fr|}}}|{{ls|fr|{{{fr|}}}}}}}<!-- | -->{{#if:{{{fr|}}}|{{ls|fr|{{{fr|}}}}}}}<!-- | ||
-->{{#if:{{{gl|}}}|{{ls|gl|{{{gl|}}}}}}}<!-- | -->{{#if:{{{gl|}}}|{{ls|gl|{{{gl|}}}}}}}<!-- | ||
-->{{#if:{{{hr|}}}|{{ls|hr|{{{hr|}}}}}}}<!-- | -->{{#if:{{{hr|}}}|{{ls|hr|{{{hr|}}}}}}}<!-- | ||
-->{{#if:{{{hu|}}}|{{ls|hu|{{{hu|}}}}}}}<!-- | -->{{#if:{{{hu|}}}|{{ls|hu|{{{hu|}}}}}}}<!-- | ||
-->{{#if:{{{id|}}}|{{ls|id|{{{id|}}}}}}}<!-- | -->{{#if:{{{id|}}}|{{ls|id|{{{id|}}}}}}}<!-- | ||
-->{{#if:{{{it|}}}|{{ls|it|{{{it|}}}}}}}<!-- | -->{{#if:{{{it|}}}|{{ls|it|{{{it|}}}}}}}<!-- | ||
-->{{#if:{{{la|}}}|{{ls|la|{{{la|}}}}}}}<!-- | -->{{#if:{{{la|}}}|{{ls|la|{{{la|}}}}}}}<!-- | ||
-->{{#if:{{{lt|}}}|{{ls|lt|{{{lt|}}}}}}}<!-- | -->{{#if:{{{lt|}}}|{{ls|lt|{{{lt|}}}}}}}<!-- | ||
-->{{#if:{{{ms|}}}|{{ls|ms|{{{ms|}}}}}}}<!-- | -->{{#if:{{{ms|}}}|{{ls|ms|{{{ms|}}}}}}}<!-- | ||
-->{{#if:{{{nl|}}}|{{ls|nl|{{{nl|}}}}}}}<!-- | -->{{#if:{{{nl|}}}|{{ls|nl|{{{nl|}}}}}}}<!-- | ||
| Line 36: | Line 28: | ||
-->{{#if:{{{pl|}}}|{{ls|pl|{{{pl|}}}}}}}<!-- | -->{{#if:{{{pl|}}}|{{ls|pl|{{{pl|}}}}}}}<!-- | ||
-->{{#if:{{{pt|}}}|{{ls|pt|{{{pt|}}}}}}}<!-- | -->{{#if:{{{pt|}}}|{{ls|pt|{{{pt|}}}}}}}<!-- | ||
-->{{#if:{{{sc|}}}|{{ls|sc|{{{sc|}}}}}}}<!-- | -->{{#if:{{{sc|}}}|{{ls|sc|{{{sc|}}}}}}}<!-- | ||
-->{{#if:{{{sk|}}}|{{ls|sk|{{{sk|}}}}}}}<!-- | -->{{#if:{{{sk|}}}|{{ls|sk|{{{sk|}}}}}}}<!-- | ||
-->{{#if:{{{sv|}}}|{{ls|sv|{{{sv|}}}}}}}<!-- | -->{{#if:{{{sv|}}}|{{ls|sv|{{{sv|}}}}}}}<!-- | ||
-->{{#if:{{{tr|}}}|{{ls|tr|{{{tr|}}}}}}}<!-- | -->{{#if:{{{tr|}}}|{{ls|tr|{{{tr|}}}}}}}<!-- | ||
-->{{#if:{{{vi|}}}|{{ls|vi|{{{vi|}}}}}}}<!-- | |||
* Latin or Cyrillic: | |||
-->{{#if:{{{sr|}}}|{{ls|sr|{{{sr|}}}}}}}<!-- | |||
* Cyrillic: | |||
-->{{#if:{{{bg|}}}|{{ls|bg|{{{bg|}}}}}}}<!-- | |||
-->{{#if:{{{ru|}}}|{{ls|ru|{{{ru|}}}}}}}<!-- | |||
-->{{#if:{{{uk|}}}|{{ls|uk|{{{uk|}}}}}}}<!-- | -->{{#if:{{{uk|}}}|{{ls|uk|{{{uk|}}}}}}}<!-- | ||
-->{{#if:{{{ | * Greek: | ||
-->{{#if:{{{zh|}}}|{{ls|zh|{{{zh|}}}}}}} | -->{{#if:{{{el|}}}|{{ls|el|{{{el|}}}}}}}<!-- | ||
</div></includeonly><noinclude> | * Indic: | ||
-->{{#if:{{{hi|}}}|{{ls|hi|{{{hi|}}}}}}}<!-- | |||
-->{{#if:{{{ka|}}}|{{ls|ka|{{{ka|}}}}}}}<!-- | |||
-->{{#if:{{{ml|}}}|{{ls|ml|{{{ml|}}}}}}}<!-- | |||
-->{{#if:{{{km|}}}|{{ls|km|{{{km|}}}}}}}<!-- | |||
* Hangul, Japanese, Chinese: | |||
-->{{#if:{{{ko|}}}|{{ls|ko|{{{ko|}}}}}}}<!-- | |||
-->{{#if:{{{ja|}}}|{{ls|ja|{{{ja|}}}}}}}<!-- | |||
-->{{#if:{{{zh|}}}|{{ls|zh|{{{zh|}}}}}}}<!-- | |||
* Hebrew (RTL): | |||
-->{{#if:{{{he|}}}|{{ls|he|{{{he|}}}}}}}<!-- | |||
-->{{#if:{{{yi|}}}|{{ls|he|{{{he|}}}}}}}<!-- | |||
* Arabic (RTL): | |||
-->{{#if:{{{ar|}}}|{{ls|ar|{{{ar|}}}}}}}<!-- | |||
-->{{#if:{{{fa|}}}|{{ls|fa|{{{fa|}}}}}}}<!-- | |||
-->{{#if:{{{ur|}}}|{{ls|he|{{{he|}}}}}}}<!-- | |||
--></div></includeonly><noinclude> | |||
; Documentation to be done | ; Documentation to be done | ||
| Line 57: | Line 69: | ||
importScript('MediaWiki:Multilingual description.js'); | importScript('MediaWiki:Multilingual description.js'); | ||
</pre> | </pre> | ||
===Example=== | ===Example=== | ||
| Line 75: | Line 85: | ||
|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. | ||
}} | }} | ||
; Add more languages. | ; Add more languages. | ||
Revision as of 08:06, 7 October 2009
- Documentation to be done
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');
Example
{{Multilingual description
|de=deutsche Texte
|en=English text, if the text corresponding to the choosen language to display is not availabel, 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 availabel, 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
- Add more languages.