Template:Language
- This template is outdated. Use {{#language:fr|de}} -> Französisch.
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.
Parameters
Parameter name | Description | Default value |
---|---|---|
1 | language code for the language name to be produced | empty |
2 | language code for the language in which the name is expressed | the result of {{uselang}} , giving en
|
3 | if non-empty: do not produce the English word if the word in the requested language is not available; instead, produce nothing | empty |
Examples
{{language}}
→
{{language|ar}}
→ Arabic{{language|de}}
→ German{{language|is}}
→ Icelandic{{language|nl}}
→ Dutch{{language|zh-hant}}
→ Traditional Chinese
{{language|ar||x}}
→ Arabic{{language|de||x}}
→ German{{language|is||x}}
→ Icelandic{{language|nl||x}}
→ Dutch{{language|zh-hant||x}}
→ Traditional Chinese
{{language|ar|de}}
→ Arabisch{{language|de|de}}
→ Deutsch{{language|is|de}}
→ Isländisch{{language|nl|de}}
→ Niederländisch{{language|zh-hant|de }}
→ Chinesisch (traditionell)
{{language|ar|de|x}}
→ Arabisch{{language|de|de|x}}
→ Deutsch{{language|is|de|x}}
→ Isländisch{{language|nl|de|x}}
→ Niederländisch{{language|zh-hant|de|x}}
→ Chinesisch (traditionell)
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:
{{language/nl|ar}}
→ Arabisch{{language/nl|de}}
→ Duits{{language/nl|is}}
→{{language/nl|nl}}
→ Nederlands{{language/nl|zh-hant}}
→
Required
- The page
MediaWiki:Lang/
xx for the user language xx set in the preferences; it should contain the language code xx - Lang/ab
- Lang/abs
- Lang/ace
- Lang/ady
- Lang/ady-cyrl
- Lang/ae
- Lang/aeb
- Lang/aeb-arab
- Lang/aeb-latn
- Lang/af
- Lang/ak
- Lang/aln
- Lang/als
- Lang/am
- Lang/an
- Lang/ang
- Lang/anp
- Lang/ar
- Lang/arc
- Lang/arn
- Lang/arq
- Lang/arv
- Lang/ary
- Lang/arz
- Lang/as
- Lang/ase
- Lang/ast
- Lang/atj
- Lang/av
- Lang/avk
- Lang/awa
- Lang/ay
- Lang/az
- Lang/azb
- Lang/ba
- Lang/ban
- Lang/bar
- Lang/bat-smg
- Lang/bbc
- Lang/bbc-latn
- Lang/bcc
- Lang/bcl
- Lang/bcr
- Lang/be
- Lang/be-tarask
- Lang/be-x-old
- Lang/bg
- Lang/bgn
- Lang/bh
- Lang/bho
- Lang/bi
- Lang/bjn
- Lang/bm
- Lang/bn
- Lang/bo
- Lang/bpy
- Lang/bqi
- Lang/br
- Lang/brh
- Lang/bs
- Lang/btm
- Lang/bto
- Lang/bug
- Lang/bxr
- Lang/byp
- Lang/ca
- Lang/cbk-zam
- Lang/cdo
- Lang/ce
- Lang/ceb
- Lang/ch
- Lang/cho
- Lang/chr
- Lang/chy
- Lang/ckb
- Lang/co
- Lang/cop
- Lang/cps
- Lang/cr
- Lang/crh
- Lang/crh-cyrl
- Lang/crh-latn
- Lang/cs
- Lang/csb
- Lang/cu
- Lang/cv
- Lang/cy
- Lang/da
- Lang/dag
- Lang/de
- Lang/de-at
- Lang/de-ch
- Lang/de-formal
- Lang/din
- Lang/diq
- Lang/dsb
- Lang/dtp
- Lang/dty
- Lang/dv
- Lang/dz
- Lang/ee
- Lang/egl
- Lang/el
- Lang/eml
- Lang/en
- Lang/en-ca
- Lang/en-gb
- Lang/eo
- Lang/es
- Lang/es-419
- Lang/es-formal
- Lang/et
- Lang/eu
- Lang/ext
- Lang/fa
- Lang/ff
- Lang/fi
- Lang/fit
- Lang/fiu-vro
- Lang/fj
- Lang/fo
- Lang/fr
- Lang/frc
- Lang/frp
- Lang/frr
- Lang/fur
- Lang/fy
- Lang/ga
- Lang/gag
- Lang/gan
- Lang/gan-hans
- Lang/gan-hant
- Lang/gcr
- Lang/gd
- Lang/gl
- Lang/glk
- Lang/gn
- Lang/gom
- Lang/gom-deva
- Lang/gom-latn
- Lang/gor
- Lang/got
- Lang/grc
- Lang/gsw
- Lang/gu
- Lang/gv
- Lang/ha
- Lang/hak
- Lang/haw
- Lang/he
- Lang/hi
- Lang/hif
- Lang/hif-deva
- Lang/hif-latn
- Lang/hil
- Lang/ho
- Lang/hr
- Lang/hrx
- Lang/hsb
- Lang/ht
- Lang/hu
- Lang/hu-formal
- Lang/hy
- Lang/hyw
- Lang/hz
- Lang/ia
- Lang/id
- Lang/ie
- Lang/ig
- Lang/ii
- Lang/ik
- Lang/ike-cans
- Lang/ike-latn
- Lang/ikt
- Lang/ilo
- Lang/inh
- Lang/io
- Lang/is
- Lang/it
- Lang/iu
- Lang/ja
- Lang/jam
- Lang/jbo
- Lang/jut
- Lang/jv
- Lang/ka
- Lang/kaa
- Lang/kab
- Lang/kbd
- Lang/kbd-cyrl
- Lang/kbp
- Lang/kg
- Lang/khw
- Lang/ki
- Lang/kiu
- Lang/kj
- Lang/kjp
- Lang/kk
- Lang/kk-arab
- Lang/kk-cn
- Lang/kk-cyrl
- Lang/kk-kz
- Lang/kk-latn
- Lang/kk-tr
- Lang/kl
- Lang/km
- Lang/kn
- Lang/ko
- Lang/ko-kp
- Lang/koi
- Lang/kr
- Lang/krc
- Lang/kri
- Lang/krj
- Lang/krl
- Lang/ks
- Lang/ks-arab
- Lang/ks-deva
- Lang/ksh
- Lang/ku
- Lang/ku-arab
- Lang/ku-latn
- Lang/kum
- Lang/kv
- Lang/kw
- Lang/ky
- Lang/la
- Lang/lad
- Lang/lb
- Lang/lbe
- Lang/lez
- Lang/lfn
- Lang/lg
- Lang/li
- Lang/lij
- Lang/liv
- Lang/lki
- Lang/lld
- Lang/lmo
- Lang/ln
- Lang/lo
- Lang/loz
- Lang/lrc
- Lang/lt
- Lang/ltg
- Lang/lu
- Lang/lus
- Lang/luz
- Lang/lv
- Lang/lzh
- Lang/lzz
- Lang/mad
- Lang/mai
- Lang/map-bms
- Lang/mc
- Lang/mdf
- Lang/mg
- Lang/mh
- Lang/mhr
- Lang/mi
- Lang/min
- Lang/mk
- Lang/ml
- Lang/mn
- Lang/mni
- Lang/mnw
- Lang/mo
- Lang/mr
- Lang/mrj
- Lang/ms
- Lang/ms-arab
- Lang/mt
- Lang/mus
- Lang/mwl
- Lang/my
- Lang/myv
- Lang/mzn
- Lang/na
- Lang/nah
- Lang/nan
- Lang/nap
- Lang/nb
- Lang/nd
- Lang/nds
- Lang/nds-nl
- Lang/ne
- Lang/new
- Lang/ng
- Lang/niu
- Lang/nl
- Lang/nl-informal
- Lang/nn
- Lang/no
- Lang/non
- Lang/nov
- Lang/nqo
- Lang/nr
- Lang/nrm
- Lang/nso
- Lang/nv
- Lang/ny
- Lang/nys
- Lang/oc
- Lang/och
- Lang/oj
- Lang/olo
- Lang/om
- Lang/or
- Lang/os
- Lang/pa
- Lang/pag
- Lang/pam
- Lang/pap
- Lang/pcd
- Lang/pdc
- Lang/pdt
- Lang/pfl
- Lang/pi
- Lang/pih
- Lang/pl
- Lang/plm
- Lang/pms
- Lang/pnb
- Lang/pnt
- Lang/prg
- Lang/ps
- Lang/pt
- Lang/pt-br
- Lang/qu
- Lang/qug
- Lang/rgn
- Lang/rif
- Lang/rm
- Lang/rmy
- Lang/rn
- Lang/ro
- Lang/roa-rup
- Lang/roa-tara
- Lang/ru
- Lang/rue
- Lang/rup
- Lang/ruq
- Lang/ruq-cyrl
- Lang/ruq-grek
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:
- the default is removed
Localization
This template calls Template:Language/en. The following language versions are available:
Each calls Template:Language/layout.
See also
- commons:Template:Language
- mw:Help:Magic_words#Miscellaneous #language - returns the local name of the language
- svn:/trunk/phase3/languages/Names.php
Similar to en:Template:Language and fr:Modèle:Langue-local.