Šablonas:Kalbos rašmenys

Puslapis iš Vikižodyno, laisvojo žodyno.
Jump to navigation Jump to search

|aa=Latn |aak=Latn |aao=Arab |ab=Cyrl |abd=Latn |abe=Latn |abm=Latn |abq=Cyrl |ace=Latn |ach=Latn |acv=Latn |acx=Arab |ada=Latn |ade=Latn |adt=Latn |ady=Cyrl |adz=Latn |ae=Avst |aeb=Arab |aer=Latn |af=Latn |afb=Arab |agj=Ethi |agx=Cyrl |ain=Kana |aii=Syrc |aiw=Latn |aji=Latn |ajp=Arab |ale=Latn |ali=Latn |alq=Latn |alr=Cyrl |alu=Latn |aly=Latn |ak=Latn |ake=Latn |akk=Xsux |akl=Latn |akz=Latn |alt=Cyrl |am=Ethi |amk=Latn |amn=Latn |amu=Latn |amx=Latn |an=Latn |and=Latn |ang=Latn |ani=Cyrl |apc=Arab |apd=Arab |apm=Latn |apw=Latn |apy=Latn |aqc=Cyrl |ar=Arab |arc=Hebr |are=Latn |arl=Latn |arn=Latn |arp=Latn |arq=Arab |art-html=Latn |arw=Latn |ary=Arab |arz=Arab |as=Beng |ase=Sgnw |ast=Latn |aus-dar=Latn |aus-gab=Latn |aus-gun=Latn |aus-syd=Latn |aus-wem=Latn |aus-wwg=Latn |av=Cyrl |awa=Deva |awk=Latn |axm=Armn |ay=Latn |ayl=Arab |ayp=Arab |az=Latn |az2=Cyrl |az3=Arab |ba=Cyrl |bal=Arab |ban=Latn |ban2=Bali |bar=Latn |bdy=Latn |be=Cyrl |bew=Latn |bg=Cyrl |bh=Deva |bho=Deva |bhw=Latn |bi=Latn |bik=Latn |bjz=Latn |bku=Buhd |bla=Latn |blt=Tavt |bm=Latn |bn=Beng |bo=Tibt |bpl=Latn |bpy=Beng |br=Latn |brc=Latn |brg=Latn |brh=Arab |brx=Deva |brx2=Latn |bs=Latn |bsq=Bass |bua=Cyrl |bug=Bugi |bug2=Latn |bvb=Latn |ca=Latn |caa=Latn |cab=Latn |cad=Latn |cax=Latn |ccc=Latn |ce=Cyrl |ceb=Latn |cel-gau=Latn |cel-gau2=Grek |ch=Latn |chc=Latn |chg=Arab |chl=Latn |chm=Cyrl |chn=Latn |cho=Latn |chr=Cher |chy=Latn |cia=Hang |cic=Latn |ciw=Latn |cjs=Cyrl |ckt=Cyrl |cmn=Hani |co=Latn |com=Latn |coo=Latn |cop=Copt |cpg=Grek |cpi=Latn |cr=Cans |cr2=Latn |crh=Latn |crh2=Cyrl |crn=Latn |crp-tpr=Cyrl |cs=Latn |csb=Latn |css=Latn |ctg=Beng |ctu=Latn |cu=Cyrs |cui=Latn |cuk=Latn |cv=Cyrl |cy=Latn |da=Latn |dak=Latn |dar=Cyrl |dbl=Latn |de=Latn |dga=Latn |dgc=Latn |dgd=Latn |dgi=Latn |dif=Latn |din=Latn |diq=Latn |dlg=Cyrl |dlm=Latn |dng=Cyrl |doz=Latn |drl=Latn |dsb=Latn |dsn=Latn |dua=Latn |due=Latn |duj=Latn |dum=Latn |duo=Latn |duy=Latn |dv=Thaa |dyg=Latn |dz=Tibt |ee=Latn |egy=Egyp |el=Grek |ems=Latn |en=Latn |enm=Latn |eo=Latn |es=Latn |esh=Arab |ess=Cyrl |esu=Latn |et=Latn |ett=Ital |eu=Latn |evn=Cyrl |ext=Latn |fa=fa-Arab |fan=Latn |ff=Latn |fi=Latn |fil=Latn |fit=Latn |fj=Latn |fkv=Latn |fla=Latn |fo=Latn |fon=Latn |for=Latn |fr=Latn |frk=Latn |frm=Latn |frp=Latn |fro=Latn |frr=Latn |fur=Latn |fy=Latn |ga=Latn |gaa=Latn |gag=Latn |gag2=Cyrl |gay=Latn |gbb=Latn |gcf=Latn |gd=Latn |gdm=Latn |gem=Latn |gez=Ethi |gil=Latn |gl=Latn |gld=Cyrl |glk=Arab |gmh=Latn |gml=Latn |gmq-mno=Latn |gmq-osw=Latn |gmy=Linb |gn=Latn |gnd=Latn |gni=Latn |goh=Latn |gos=Latn |got=Goth |grc=Grek |gsw=Latn |gu=Gujr |gul=Latn |gun=Latn |gut=Latn |gv=Latn |gvf=Latn |gwc=Arab |gwi=Latn |ha=Latn |ha2=Arab |haa=Latn |hai=Latn |har=Ethi |haw=Latn |he=Hebr |hi=Deva |hif=Latn |hil=Latn |hit=Xsux |hmn=Latn |hmn2=Hmng |ho=Latn |hop=Latn |hr=Latn |hsb=Latn |ht=Latn |hu=Latn |hur=Latn |hwc=Latn |hy=Armn |hz=Latn |ia=Latn |id=Latn |ie=Latn |ig=Latn |ii=Yiii |ik=Latn |ilo=Latn |ims=Latn |ine=Latn |inh=Cyrl |inz=Latn |io=Latn |is=Latn |ish=Latn |ist=Latn |it=Latn |itl=Cyrl |iu=Cans |ja=Jpan |ja2=Latn |jam=Latn |jao=Latn |jbo=Latn |jiv=Latn |jv=Latn |jv2=Java |ka=Geor |kaa=Latn |kaa2=Cyrl |kab=Latn |kac=Latn |kbc=Latn |kbd=Cyrl |kca=Cyrl |kcn=Arab |kda=Latn |kdd=Latn |kde=Latn |kdj=Latn |kea=Latn |kg=Latn |kgg=Latn |khb=Talu |khi-kun=Latn |khv=Cyrl |khw=Arab |ki=Latn |kic=Latn |kiu=Latn |kj=Latn |kjg=Laoo |kjh=Cyrl |kjr=Latn |kju=Latn |kk=Cyrl |kky=Latn |kl=Latn |kld=Latn |kln=Latn |km=Khmr |kms=Latn |kn=Knda |ko=Kore |kok=Deva |kpe=Latn |kpg=Latn |kpy=Cyrl |kr=Latn |krc=Cyrl |krl=Latn |ks=ks-Arab |ks2=Deva |ksh=Latn |ksi=Latn |ktn=Latn |ku=Arab |ku2=Latn |kud=Latn |kum=Cyrl |kv=Cyrl |kw=Latn |ky=Cyrl |kyi=Latn |kyu=Kali |la=Latn |lad=Hebr |lad2=Latn |lb=Latn |lbe=Cyrl |ldi=Latn |lez=Cyrl |lfn=Latn |lg=Latn |li=Latn |lif=Limb |lij=Latn |liv=Latn |lkt=Latn |lld=Latn |lmo=Latn |ln=Latn |lng=Runr |lo=Laoo |loz=Latn |lre=Latn |lt=Latn |ltg=Latn |lu=Latn |lua=Latn |luo=Latn |luy=Latn |lv=Latn |lvk=Latn |lzz=Geor |lzz2=Latn |mad=Latn |mai=Deva |mas=Latn |mco=Latn |mdf=Cyrl |men=Latn |men2=Mend |mer=Latn |meu=Latn |mez=Latn |mfe=Latn |mg=Latn |mga=Latn |mgh=Latn |mh=Latn |mi=Latn |mia=Latn |mic=Latn |miq=Latn |mk=Cyrl |ml=Mlym |mmg=Latn |mn=Cyrl |mnc=Mong |mnk=Latn |mns=Cyrl |mnw=Mymr |mo=Latn |mo2=Cyrl |mod=Latn |moe=Latn |moh=Latn |mpm=Latn |mps=Latn |mr=Deva |mrv=Latn |ms=Latn |mt=Latn |mth=Latn |mtm=Cyrl |mus=Latn |mvi=Kana |mvr=Latn |mwf=Latn |mwl=Latn |mwp=Latn |my=Mymr |myh=Latn |myp=Latn |myv=Cyrl |mzn=Arab |na=Latn |nah=Latn |nai-pic=Latn |nap=Latn |naq=Latn |nay=Latn |nb=Latn |nci=Latn |nd=Latn |nds=Latn |nds-nl=Latn |ne=Deva |new=Deva |ng=Latn |nha=Latn |nhg=Latn |nhx=Latn |nio=Cyrl |niu=Latn |niv=Cyrl |nl=Latn |nmn=Latn |nn=Latn |no=Latn |nod=Lana |nog=Cyrl |non=Latn |noo=Latn |nov=Latn |nr=Latn |nrn=Latn |nso=Latn |ntj=Latn |nv=Latn |nxn=Latn |ny=Latn |nys=Latn |obm=Phnx |obt=Latn |oc=Latn |och=Hani |odt=Latn |ofs=Latn |oge=Geor |oj=Cans |oj2=Latn |ojp=Jpan |oko=Kore |om=Latn |ood=Latn |or=Orya |orv=Cyrl |os=Cyrl |osc=Ital |osp=Latn |osx=Latn |ota=ota-Arab |owl=Latn |pa=pa-Arab |pa2=Guru |pad=Latn |pag=Latn |pal=Phli |pam=Latn |pap=Latn |pau=Latn |pcd=Latn |pcm=Latn |pdc=Latn |peo=Xpeo |pga=Arab |phn=Phnx |pi=Latn |pim=Latn |pis=Latn |pit=Latn |pjt=pjt-Latn |pl=Latn |pld=Latn |ple=Latn |plz=Latn |pms=Latn |pmt=Latn |pnb=Arab |pnw=Latn |pos=Latn |pot=Latn |pox=Latn |ppm=Latn |pqm=Latn |prg=Latn |ps=Arab |pt=Latn |pua=Latn |pwn=Latn |qu=Latn |quc=Latn |qxs=Latn |qya=Teng |raj=Deva |rap=Latn |rar=Latn |rm=Latn |rn=Latn |ro=Latn |roa-gal=Latn |roa-grn=Latn |roa-jer=Latn |roa-nor=Latn |roa-ptg=Latn |roa-tar=Latn |rom=Latn |roo=Latn |rop=Latn |rtm=Latn |ru=Cyrl |rue=Cyrl |ruo=Latn |rup=Latn |ruq=Latn |rut=Cyrl |rw=Latn |ryu=Jpan |sa=Deva |sac=Latn |sah=Cyrl |sat=Olck |saw=Latn |saz=Saur |saz2=Latn |saz3=Taml |saz4=Deva |sbf=Latn |sc=Latn |scn=Latn |sco=Latn |sd=Arab |sdc=Latn |sdn=Latn |se=Latn |see=Latn |sei=Latn |sem-amm=Phnx |seu=Latn |sg=Latn |sga=Latn |sgs=Latn |sh=Cyrl |sh2=Latn |shh=Latn |shi=Latn |shn=Mymr |shu=Arab |si=Sinh |sia=Latn |sjd=Cyrl |sje=Latn |sjk=Latn |sjt=Latn |sju=Latn |sjw=Latn |sk=Latn |sl=Latn |sm=Latn |sma=Latn |smj=Latn |smn=Latn |sms=Latn |sn=Latn |so=Latn |sov=Latn |spx=Ital |sq=Latn |sr=Cyrl |sr2=Latn |src=Latn |srn=Latn |sro=Latn |srq=Latn |srs=Latn |ss=Latn |st=Latn |sth=Latn |stp=Latn |stq=Latn |str=Latn |su=Latn |su2=Sund |sux=Xsux |sv=Latn |sva=Geor |sw=Latn |swb=Latn |swg=Latn |syc=Syrc |szl=Latn |ta=Taml |tab=Cyrl |tar=Latn |tay=Latn |tcs=Latn |tcy=Knda |te=Telu |tet=Latn |tew=Latn |tfn=Latn |tg=Cyrl |th=Thai |ti=Ethi |tig=Ethi |tiw=Latn |tix=Latn |tjs=Latn |tk=Latn |tk2=Cyrl |tkl=Latn |tkr=Cyrl |tl=Latn |tn=Latn |tna=Latn |tnq=Latn |to=Latn |tpi=Latn |tpn=Latn |tpw=Latn |tr=Latn |ts=Latn |tsg=Latn |tt=Cyrl |tum=Latn |tvl=Latn |tw=Latn |twf=Latn |ty=Latn |tyv=Cyrl |tzj=Latn |tzm=Tfng |uby=Latn |udi=Cyrl |udm=Cyrl |ug=Arab |ug2=Latn |ug3=Cyrl |uk=Cyrl |uga=Ugar |ulk=Latn |uln=Latn |umb=Latn |umu=Latn |und=Zyyy |unm=Latn |ur=ur-Arab |uz=Latn |uz2=Cyrl |vai=Vaii |ve=Latn |vec=Latn |vep=Latn |vi=Latn |vls=Latn |vma=Latn |vmb=Latn |vmk=Latn |vmw=Latn |vo=Latn |vot=Latn |vro=Latn |wa=Latn |wad=Latn |wam=Latn |waq=Latn |wba=Latn |wbb=Latn |wbp=Latn |wbw=Latn |wew=Latn |wgy=Latn |wim=Latn |win=Latn |wiv=Latn |wlm=Latn |wo=Latn |wrh=Latn |wrp=Latn |wuu=Hani |wyb=Latn |xal=Cyrl |xas=Cyrl |xav=Latn |xbc=Grek |xcl=Armn |xcr=Cari |xdm=Phnx |xeb=Xsux |xh=Latn |xhu=Xsux |xlc=Lyci |xld=Lydi |xmf=Geor |xmk=Grek |xno=Latn |xpg=Grek |xpm=Latn |xpo=Latn |xpr=Prti |xpu=Phnx |xrn=Latn |xsl=Latn |xsr=Tibt |xss=Latn |xta=Latn |xum=Ital |xur=Xsux |xvn=Latn |yap=Latn |yi=Hebr |yii=Latn |yij=Latn |ykg=Cyrl |ymm=Latn |yo=Latn |yoi=Kana |yrk=Cyrl |yua=Latn |yue=Hani |yuf=Latn |yur=Latn |yux=Cyrl |za=Latn |za2=Hani |zai=Latn |zav=Latn |zen=Latn |zko=Latn |zku=Latn |zlw-opl=Latn |zlw-slv=Latn |zmg=Latn |zpq=Latn |zro=Latn |zu=Latn |zun=Latn |zza=Latn
|#default=Xyzy

[edit]

Dokumentacija


Šis šablonas grąžina rašmenų (abėcėlės) kodą pagal kalbos kodą.

Panaudojimas[taisyti]

This template should be implemented into other templates, wherever an automatic script is necessary.

There are two foreseen instances where an automatic script code is used.

  • Organization.
    Example: Categorizing the English language as written in the Latin script.
  • Formatting.
    Example: Formatting Russian language characters with the appropriate Cyrillic fonts automatically.

Parameters[taisyti]

This template requires only one unnamed parameter.

  • When a language is written in only one script, the sole parameter is the language code.
  • When a language is written in two or more scripts, the sole parameter is the language code to return a standard script; or, the language code closely followed by a number to return other scripts.

Examples[taisyti]

  1. English
    The English language is written in the Latin script.
    The English language is represented by the code en.
    The Latin script is represented by the code Latn.
    Therefore, {{Kalbos rašmenys|en}} returns Latn.
  2. Portuguese
    The Portuguese language is written in the Latin script.
    The Portuguese language is represented by the code pt.
    The Latin script is represented by the code Latn.
    Therefore, {{Kalbos rašmenys|pt}} returns Latn.
  3. Russian
    The Russian language is written in the Cyrillic script.
    The Russian language is represented by the code ru.
    The Cyrillic script is represented by the code Cyrl.
    Therefore, {{Kalbos rašmenys|ru}} returns Cyrl.
  4. Serbo-Croatian
    The Serbo-Croatian language is written in the Cyrillic and the Latin scripts.
    The Serbo-Croatian language is represented by the code sh.
    The Cyrillic script is represented by the code Cyrl.
    The Latin script is represented by the code Latn.
    Therefore, {{Kalbos rašmenys|sh}} returns Cyrl and {{Kalbos rašmenys|sh2}} returns Latn.

Mechanics[taisyti]

This template uses a simple {{#switch:}} parser function to handle language codes and script codes.

EXAMPLES:

1. English language written in Latin script.
|en=Latn

2. Serbo-Croatian language written in both Cyrillic and Latin scripts.
|sh=Cyrl
|sh2=Latn

3. Urdu language, written in Arabic script but using a particular script template called "ur-Arab".
|ur=ur-Arab

When a language is written in more than one script, please place the most used first, so it will be recognized by other templates as the default script of that language.