మూస:langfamily/doc
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>Supplementary templates [edit]
Contents, text, tables:
- caps (returns a particular letter, either in upper or lower cases)
- str len (returns the number of characters of a string)
- theordinal (returns "first" from 1, "second" from 2, etc.)
- theplural (returns "suffixes" from suffix, "verbs" from verb, etc.)
- navbox (generates a collapsible box)
- ! (returns a vertical pipe: |)
- !! (returns two vertical pipes: ||)
- (! (returns a left brace followed by a vertical pipe: {|)
- !) (returns a vertical pipe followed by a right brace: |})
- !- (returns a vertical pipe followed by a dash: |-)
Languages, families and scripts:
- langname (same as above, but also returns a language name from the same language name)
- languagex (returns the language name from any language code)
- langnamex (same as above, but also returns a language name from the same language name)
- langrev (returns the language code of a given language name)
- languageshift (differentiates between "American Sign Language" and "American Sign Language language", among other related languages)
- langfamily (returns the language family from a language code)
- family (returns the family from a subfamily)
- script (returns a script name from a script code)
- scriptrev (returns a script code from a script name)
Pages:
- langprefix (returns the prefix, like conl:, of a language template)
- catlangcode (returns the name of a topical category, notably by never displaying the code en:)
- catlangname (returns the name of a lexical or other category similarly named)
- deftempboiler (generates a definition template)
- edit (generates an "edit" button)