Jump to content

మూస:langfamily/doc

విక్షనరీ నుండి
Documentation for మూస:langfamily. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.
Alternative name:
{{language code to family code}}

This template returns a family code from a language code.

Usually, this template is automatically added to other templates.

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

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

( 1 ) en

{{langfamily|en}}

Result: gmw


( 2 ) es

{{langfamily|es}}

Result: మూస:es/family


( 3 ) ja

{{langfamily|ja}}

Result: మూస:ja/family

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


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