imported>De728631 |
imported>Gonnym |
| (4 intermediate revisions by 3 users not shown) |
| Line 1: |
Line 1: |
| − | {{#switch: {{safesubst<noinclude/>:lc:{{{1}}}}} | + | <includeonly>{{safesubst:<noinclude />#invoke:ISO 639 name|iso_639_name_to_code}}</includeonly><noinclude> |
| − | | afar=aa
| + | {{Documentation}} |
| − | | abkhazian=ab
| |
| − | | avestan=ae
| |
| − | | afrikaans=af
| |
| − | | ainu=ain
| |
| − | | akan=ak
| |
| − | | gheg albanian=aln
| |
| − | | alemannic=als
| |
| − | | amharic=am
| |
| − | | aragonese=an
| |
| − | | old english=ang
| |
| − | | arabic=ar
| |
| − | | aramaic=arc
| |
| − | | mapudungun=arn
| |
| − | | egyptian spoken arabic=arz
| |
| − | | assamese=as
| |
| − | | asturian=ast
| |
| − | | avar=av
| |
| − | | avaric=av
| |
| − | | avaric=av
| |
| − | | kotava=avk
| |
| − | | aymara=ay
| |
| − | | azerbaijani=az
| |
| − | | azeri=az
| |
| − | | bashkir=ba
| |
| − | | bavarian=bar
| |
| − | | southern balochi=bcc
| |
| − | | central bicolano=bcl
| |
| − | | belarusian=be
| |
| − | | bulgarian=bg
| |
| − | | bihari=bh
| |
| − | | bislama=bi
| |
| − | | bambara=bm
| |
| − | | bengali=bn
| |
| − | | tibetan=bo
| |
| − | | bishnupriya manipuri=bpy
| |
| − | | breton=br
| |
| − | | bosnian=bs
| |
| − | | iriga bicolano=bto
| |
| − | | buginese=bug
| |
| − | | buryat (russia)=bxr
| |
| − | | catalan=ca
| |
| − | | min dong chinese=cdo
| |
| − | | chechen=ce
| |
| − | | cebuano=ceb
| |
| − | | chamorro=ch
| |
| − | | choctaw=cho
| |
| − | | cherokee=chr
| |
| − | | cheyenne=chy
| |
| − | | corsican=co
| |
| − | | coptic=cop
| |
| − | | cree=cr
| |
| − | | crimean turkish=crh
| |
| − | | czech=cs
| |
| − | | kashubian=csb
| |
| − | | church slavic=cu
| |
| − | | chuvash=cv
| |
| − | | welsh=cy
| |
| − | | danish=da
| |
| − | | german=de
| |
| − | | devanāgarī
| |
| − | | devanagari
| |
| − | | devanagiri
| |
| − | | devangari=deva
| |
| − | | dimli=diq
| |
| − | | lower sorbian=dsb
| |
| − | | divehi=dv
| |
| − | | dzongkha=dz
| |
| − | | ewe=ee
| |
| − | | greek=el
| |
| − | | emilian-romagnol=eml
| |
| − | | english=en
| |
| − | | esperanto=eo
| |
| − | | spanish=es
| |
| − | | estonian=et
| |
| − | | basque=eu
| |
| − | | extremaduran=ext
| |
| − | | persian=fa
| |
| − | | farsi=fa
| |
| − | | fulah=ff
| |
| − | | finnish=fi
| |
| − | | filipino=fil
| |
| − | | fijian=fj
| |
| − | | faroese=fo
| |
| − | | french=fr
| |
| − | | cajun french=frc
| |
| − | | franco-provençal=frp
| |
| − | | north frisian=frr
| |
| − | | friulian=fur
| |
| − | | frisian=fy
| |
| − | | western frisian=fy
| |
| − | | irish=ga
| |
| − | | ga=gaa
| |
| − | | gagauz=gag
| |
| − | | gan chinese=gan
| |
| − | | gan chineese=gan
| |
| − | | scottish gaelic=gd
| |
| − | | galician=gl
| |
| − | | gilaki=glk
| |
| − | | middle high german=gmh
| |
| − | | guaraní=gn
| |
| − | | gothic=got
| |
| − | | ancient greek=grc
| |
| − | | swiss german=gsw
| |
| − | | gujarati=gu
| |
| − | | manx=gv
| |
| − | | hausa=ha
| |
| − | | simplified chinese=hans
| |
| − | | traditional chinese=hant
| |
| − | | hakka chinese=hak
| |
| − | | hawaiian=haw
| |
| − | | hebrew=he
| |
| − | | hindi=hi
| |
| − | | fiji hindi=hif
| |
| − | | hiligaynon=hil
| |
| − | | hiri motu=ho
| |
| − | | croatian=hr
| |
| − | | upper sorbian=hsb
| |
| − | | haitian=ht
| |
| − | | hungarian=hu
| |
| − | | armenian=hy
| |
| − | | herero=hz
| |
| − | | interlingua=ia
| |
| − | | indonesian=id
| |
| − | | interlingue=ie
| |
| − | | igbo=ig
| |
| − | | sichuan yi=ii
| |
| − | | inupiak=ik
| |
| − | | inupiaq=ik
| |
| − | | iloko=ilo
| |
| − | | ingush=inh
| |
| − | | ido=io
| |
| − | | icelandic=is
| |
| − | | italian=it
| |
| − | | inuktitut=iu
| |
| − | | japanese=ja
| |
| − | | lojban=jbo
| |
| − | | jutish=jut
| |
| − | | javanese=jv
| |
| − | | georgian=ka
| |
| − | | kara-kalpak=kaa
| |
| − | | karen=kar
| |
| − | | kabyle=kab
| |
| − | | kongo=kg
| |
| − | | kikuyu=ki
| |
| − | | kwanyama=kj
| |
| − | | kuanyama=kj
| |
| − | | kazakh=kk
| |
| − | | greenlandic=kl
| |
| − | | kalaallisut=kl
| |
| − | | khmer=km
| |
| − | | kannada=kn
| |
| − | | korean=ko
| |
| − | | kanuri=kr
| |
| − | | krio=kri
| |
| − | | kinaray-a=krj
| |
| − | | kashmiri=ks
| |
| − | | kölsch=ksh
| |
| − | | kurdish=ku
| |
| − | | komi=kv
| |
| − | | cornish=kw
| |
| − | | kirghiz=ky
| |
| − | | latin=la
| |
| − | | ladino=lad
| |
| − | | luxembourgish=lb
| |
| − | | lak=lbe
| |
| − | | lezghian=lez
| |
| − | | lingua franca nova=lfn
| |
| − | | ganda=lg
| |
| − | | limburgish=li
| |
| − | | ligurian=lij
| |
| − | | ladin=lld
| |
| − | | lombard=lmo
| |
| − | | lingala=ln
| |
| − | | lao=lo
| |
| − | | lozi=loz
| |
| − | | lithuanian=lt
| |
| − | | luba-katanga=lu
| |
| − | | latvian=lv
| |
| − | | laz=lzz
| |
| − | | madurese=mad
| |
| − | | maithili=mai
| |
| − | | murcian=mc
| |
| − | | moksha=mdf
| |
| − | | malagasy=mg
| |
| − | | marshallese=mh
| |
| − | | māori=mi
| |
| − | | maori=mi
| |
| − | | macedonian=mk
| |
| − | | malayalam=ml
| |
| − | | mongolian=mn
| |
| − | | manipuri=mni
| |
| − | | moldavian=mo
| |
| − | | marathi=mr
| |
| − | | malay=ms
| |
| − | | malaysian=ms
| |
| − | | maltese=mt
| |
| − | | creek=mus
| |
| − | | mirandese=mwl
| |
| − | | burmese=my
| |
| − | | erzya=myv
| |
| − | | mazanderani=mzn
| |
| − | | nauru=na
| |
| − | | nahuatl languages=nah
| |
| − | | neapolitan=nap
| |
| − | | norwegian bokmål=nb
| |
| − | | norwegian bokmal=nb
| |
| − | | bokmal=nb
| |
| − | | norwegian=no
| |
| − | | north ndebele=nd
| |
| − | | low saxon=nds
| |
| − | | nepali=ne
| |
| − | | newar / nepal bhasa=new
| |
| − | | owambo=ng
| |
| − | | ndonga=ng
| |
| − | | niuean=niu
| |
| − | | dutch=nl
| |
| − | | norwegian (nynorsk)=nn
| |
| − | | norwegian nynorsk=nn
| |
| − | | nynorsk=nn
| |
| − | | old norse=non
| |
| − | | novial=nov
| |
| − | | south ndebele=nr
| |
| − | | narom=nrm
| |
| − | | northern sotho=nso
| |
| − | | navajo=nv
| |
| − | | chichewa=ny
| |
| − | | occitan=oc
| |
| − | | classical chinese=och
| |
| − | | ojibwa=oj
| |
| − | | oromo=om
| |
| − | | odia=or
| |
| − | | oriya=or
| |
| − | | ossetian=os
| |
| − | | panjabi=pa
| |
| − | | punjabi=pa
| |
| − | | pangasinan=pag
| |
| − | | kapampangan=pam
| |
| − | | papiamento=pap
| |
| − | | pennsylvania german=pdc
| |
| − | | plautdietsch=pdt
| |
| − | | pfaelzisch=pfl
| |
| − | | pali=pi
| |
| − | | pāli=pi
| |
| − | | pitcairn-norfolk=pih
| |
| − | | polish=pl
| |
| − | | palembang=plm
| |
| − | | piemontese=pms
| |
| − | | pontic=pnt
| |
| − | | prakrit=pra
| |
| − | | pashto=ps
| |
| − | | portuguese=pt
| |
| − | | quechua=qu
| |
| − | | tarifit=rif
| |
| − | | raeto-romance=rm
| |
| − | | rhaeto-romance=rm
| |
| − | | vlax romani=rmy
| |
| − | | kirundi=rn
| |
| − | | romanian=ro
| |
| − | | romansh=roh
| |
| − | | russian=ru
| |
| − | | romanian=ruq
| |
| − | | kinyarwanda=rw
| |
| − | | sanskrit=sa
| |
| − | | yakut=sah
| |
| − | | sardinian=sc
| |
| − | | sicilian=scn
| |
| − | | scots=sco
| |
| − | | sindhi=sd
| |
| − | | sardinian=sdc
| |
| − | | northern sami=se
| |
| − | | seri=sei
| |
| − | | sango=sg
| |
| − | | serbo-croatian=sh
| |
| − | | tachelhit=shi
| |
| − | | sinhala=si
| |
| − | | sinhalese=si
| |
| − | | simple english=simple
| |
| − | | slovak=sk
| |
| − | | slovene=sl
| |
| − | | slovenian=sl
| |
| − | | samoan=sm
| |
| − | | southern sami=sma
| |
| − | | shona=sn
| |
| − | | somali=so
| |
| − | | albanian=sq
| |
| − | | serbian=sr
| |
| − | | sranan tongo=srn
| |
| − | | swati=ss
| |
| − | | sotho=st
| |
| − | | southern sotho=st
| |
| − | | saterland frisian=stq
| |
| − | | sundanese=su
| |
| − | | swedish=sv
| |
| − | | swahili=sw
| |
| − | | silesian=szl
| |
| − | | tamil=ta
| |
| − | | telugu=te
| |
| − | | tetum=tet
| |
| − | | tajik=tg
| |
| − | | thai=th
| |
| − | | tigrinya=ti
| |
| − | | turkmen=tk
| |
| − | | tagalog=tl
| |
| − | | klingon=tlh
| |
| − | | klingonese=tlh
| |
| − | | tswana=tn
| |
| − | | tonga=to
| |
| − | | tok pisin=tpi
| |
| − | | turkish=tr
| |
| − | | tsonga=ts
| |
| − | | tatar=tt
| |
| − | | tumbuka=tum
| |
| − | | twi=tw
| |
| − | | tahitian=ty
| |
| − | | tyvan=tyv
| |
| − | | central morocco tamazight=tzm
| |
| − | | udmurt=udm
| |
| − | | uighur=ug
| |
| − | | ukrainian=uk
| |
| − | | urdu=ur
| |
| − | | uzbek=uz
| |
| − | | venda=ve
| |
| − | | venetian=vec
| |
| − | | vietnamese=vi
| |
| − | | vlaams=vls
| |
| − | | volapük=vo
| |
| − | | volapuk=vo
| |
| − | | värmlandic=vrm
| |
| − | | walloon=wa
| |
| − | | waray=war
| |
| − | | wolof=wo
| |
| − | | wu chinese=wuu
| |
| − | | kalmyk=xal
| |
| − | | xhosa=xh
| |
| − | | mingrelian=xmf
| |
| − | | eastern yiddish=ydd
| |
| − | | yiddish=yi
| |
| − | | yoruba=yo
| |
| − | | cantonese=yue
| |
| − | | zhuang=za
| |
| − | | zeeuws=zea
| |
| − | | chinese=zh
| |
| − | | zulu=zu
| |
| − | | {{{default|{{{2|en}}} }}}
| |
| − | }}<noinclude>
| |
| − | {{documentation}} | |
| | </noinclude> | | </noinclude> |
Template:Lang2iso takes an English-language language name (such as "Abkhazian" or "Sinhalese") and converts it into a two-letter ISO 639 language code. This table's values are based on List of ISO 639-1 codes. The template should not be transcluded directly from article namespace.
Examples
Purpose
Since most users will know a language's name but not its ISO code, this template is meant to facilitate invocations of other templates such as Template:Lang. Thus, instead of recalling (or having to know) that the ISO code for German is "de" and transcluding {{Lang|de|Mädchen}}, one can type: {{Lang|{{subst:Lang2iso|German}}|Mädchen}}.
This also reduces the number of parameters that need to be passed to some language routines (such as those similar to Template:Language with name) since the ISO language code can now be derived from the ISO language name.
See also