Šablonas:Kalbos šeima/doc
Šis šablonas gražina kalbos šeimą pagal kalbos kodą.
Panaudojimas[taisyti]
Usually, this template is automatically added to other templates.
Parameters[taisyti]
The template uses only the parameter 1
to call the language family.
1
: Kalbos kodas. Žr. Kalbų sąrašas.
Examples[taisyti]
( 1 ) en
{{Kalbos šeima|en}}
Rezultatas: anglų
( 2 ) es
{{Kalbos šeima|es}}
Rezultatas: vakarų romanų
( 3 ) ja
{{Kalbos šeima|ja}}
Rezultatas: japonų
Mechanics[taisyti]
This template uses the parser function #switch to list languages and their families, organized as following:
1. No language family. |mul=nėra 2. Language isolate. |ett=izoliuota 3. Unclassified family. |gdm=neklasifikuota 4. Creole or pidgin (cp). A parameter for basis language is optional but encouraged. |hwc=cp |hwc_from=en 5. Constructed languages. |eo=dirbtinė |sjn=dirbtinė 6. Any other value specifies the language family. |en=vakarų germanų |pt=romanų