Template:Language

From Ephemeral Film Wiki
Jump to navigation Jump to search

Template:Ifnotempty1

This template is outdated. Use {{#language:fr|de}} -> français.

This template produces the word for a language given the language code, in a given language. By default, the fall-back language is English. Optionally this is suppressed, and the template produces nothing if the word is not available in the desired language. This can be useful if the English term is given anyway, with another call of the template.

{{Tdoc/Template:Fallback |1=1|1a=|1d=language code for the language name to be produced|1def= |2=2|2a=|2d=language code for the language in which the name is expressed|2def=the result of Template:Xpsoc |3=3|3a=|3d=if non-empty: do not produce the English word if the word in the requested language is not available; instead, produce nothing|3def= |4=|4a=|4d=|4def= |5=|5a=|5d=|5def= |6=|6a=|6d=|6def= |7=|7a=|7d=|7def= |8=|8a=|8d=|8def= |9=|9a=|9d=|9def= |10=|10a=|10d=|10def= |11=|11a=|11d=|11def= |12=|12a=|12d=|12def= |13=|13a=|13d=|13def= |14=|14a=|14d=|14def= |15=|15a=|15d=|15def= |16=|16a=|16d=|16def= |17=|17a=|17d=|17def= |18=|18a=|18d=|18def= |19=|19a=|19d=|19def= |20=|20a=|20d=|20def= |name=Language|i18n-method=autotranslate|i18n-desc=|msg-id=|seealso=

Similar to en:Template:Language and fr:Modèle:Langue-local.|relieson=*The page MediaWiki:Lang/xx for the user language xx set in the preferences; it should contain the language code xx

  • Template:Language/xx for the language in which the name is expressed, with in that page support for the language name to be produced:

They can be copied from commons (see list), but the following modification is needed:

If the subtemplate for the language in which the name is expressed is known to exist, and fall-back to English if the word is not available is not desired, then the subtemplate can more efficiently be called directly as follows:

}}