మూస:langfamily

విక్షనరీ నుండి
Jump to navigation Jump to search

The following documentation is located at Template:langfamily/doc. [edit]
Note: Please move the documentation subpage to Template:langfamily/documentation.
Alternative name:
{{language code to family code}}

This template returns a family code from a language code.

Usage[<small>మార్చు</small>]

Usually, this template is automatically added to other templates.

Parameters[<small>మార్చు</small>]

The template uses only one parameter to call the language family.

{{{1}}}: The language code. See WT:LANGCODE.

Examples[<small>మార్చు</small>]

( 1 ) en

{{langfamily|en}}

Result: gmw


( 2 ) es

{{langfamily|es}}

Result: మూస:es/family


( 3 ) ja

{{langfamily|ja}}

Result: మూస:ja/family

Mechanics[<small>మార్చు</small>]

This template uses the parser function #switch to list languages and their families.

The codes and their results are organized as follows.

1. No language family.
|mul=qfa-not

2. Language isolate.
|ett=qfa-iso

3. Unclassified family.
|gdm=qfa-und

4. Creole or pidgin (crp).
Parameters for basis languages, formatted with "_from", are optional but encouraged.
(Please do not use the original ISO codes "cpe", "cpf" and "cpp" to determine the base language.)
|gcf=crp
|gcf_from=fr
|hwc=crp
|hwc_from=en
|crp-rsn=crp
|crp-rsn_from=no
|crp-rsn_from2=ru

5. Constructed languages. See WT:CFI#Constructed languages.
"art" if definitions are supposed to be in entries.
"art-app" if definitions are supposed to be only in appendices.
|eo=art
|sjn=art-app

6. Reconstructed languages. Simply use "qfa-pro".
In the first example, the "Proto-Germanic" language (code: gem) is a member of the "Germanic" family (code: "gem").
In the second example, the "Proto-Semitic" language (code: gem) is a member of the "Semitic" family (code: "gem").
|gem=qfa-pro
|sem=qfa-pro

7. Any other value simply specifies the family code.
In the first example, the "English" language (code: en) is a member of the "West Germanic" family (code: "gmw").
In the second example, the "Portuguese" language (code: pt) is a member of the "Romance" family (code: "roa").
|en=gmw
|pt=roa

See also[<small>మార్చు</small>]

"https://te.wiktionary.org/w/index.php?title=మూస:langfamily&oldid=282281" నుండి వెలికితీశారు